← Back to issue list

catkin plugin _Catkin.find always fails

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1696014
Type
issue
State
closed
Author
~mrjogo
Labels
Created
Updated
Closed

Current evaluation

Closed. Abandoned without official resolution. A contributor identified a missing PYTHONPATH entry causing _Catkin.find to fail and proposed a patch to include the correct dist-packages directory.

Suggested action:

No scores available.

Issue body

I'm experimenting with underlays, but the catkin plugin is pulling the deb for the package despite it being present in the underlay. From stepping through snapcraft with pdb, it appears that the issue is that the script that _Catkin.find runs always fails, which the plugin interprets as the package not found in the underlay. When I changed https://github.com/snapcore/snapcraft/blob/9e8e336deb406cbecdda11e5ca7a25c329454e98/snapcraft/plugins/catkin.py#L911 to: subprocess.check_output(['/bin/bash', f.name, 'catkin_find'] + arguments).decode('utf8').strip() The stderr showed the following: Traceback (most recent call last): File "/home/ruddick/Desktop/ros_underlay/parts/my-msgs/catkin/install/opt/ros/kinetic/bin/catkin_find", line 11, in <module> from catkin.find_in_workspaces import find_in_workspaces ImportError: No module named catkin.find_in_workspaces It looks like /home/ruddick/Desktop/ros_underlay/parts/my-msgs/catkin/install/opt/ros/kinetic/lib/python2.7/dist-packages needs to be added to the PYTHONPATH in the temp script (currently it's only /home/ruddick/Desktop/ros_underlay/parts/my-msgs/catkin/install/usr/lib/python2.7/dist-packages)

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed. Abandoned without official resolution. A contributor identified a missing PYTHONPATH entry causing _Catkin.find to fail and proposed a patch to include the correct dist-packages directory.
qwen/qwen3.6-35b-a3b Closed without resolution. The report identified a missing PYTHONPATH causing catkin_find import failures in the snapcraft catkin plugin. With zero comments and no follow-up, the issue was abandoned due to inactivity.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1354 catkin plugin: fix pythonpath for catkin_find snapcraft closed Closed and abandoned. The author clarified the fix only resolved a highly specific local setup issue and was no longer relevant. The underlying problem persisted, prompting further troubleshooting on the forum instead of merging the changes.
84%