← Back to issue list

catkin part error when built after python part

View original Launchpad issue

Metadata

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

Current evaluation

Closed without resolution. The catkin plugin failed when built after a Python part due to incorrect path validation in is_setup() and generate_sitecustomize(), which checked the stage and install directories respectively.

Suggested action:

No scores available.

Issue body

When snapping the attached example with the snapcraft master branch (currently https://github.com/snapcore/snapcraft/tree/52e03e5e46d88809f706fb4f45e6556710d576ba), it fails with the error: Unable to find user site packages: /home/ruddick/Downloads/snapcraft_ros_example/parts/ros-project/install/lib/python2*/site-packages The cause is the following new code since 2.34: https://github.com/snapcore/snapcraft/blob/52e03e5e46d88809f706fb4f45e6556710d576ba/snapcraft/plugins/catkin.py#L652-L657 It fails because self._pip.is_setup() uses stage to see if pip is installed, which it was in the pip-install part, but _python.generate_sitecustomize() operates on parts/ros-project/install, which does not have any python code or site-packages directory.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. The catkin plugin failed when built after a Python part due to incorrect path validation in is_setup() and generate_sitecustomize(), which checked the stage and install directories respectively.
qwen/qwen3.6-35b-a3b Abandoned. A snapcraft bug caused catkin parts built after python parts to fail when locating site-packages in the wrong directory. No fix was implemented.
qwen/qwen3.6-35b-a3b Closed without resolution. A path resolution bug in generate_sitecustomize() caused catkin builds to fail when built after python parts. No fix or discussion was provided.
qwen3.6-35b-a3b-mtp-q6 Closed without stated resolution. A snapcraft catkin plugin bug was identified where site-packages path resolution fails when building after a python part, caused by incorrect pip setup checks.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1663385 Catkin plugin: Staging area not suitable for building other parts snapcraft (launchpad) closed Closed without resolution. The Catkin plugin staging area issue, where hardcoded installdir paths break dependent parts, was abandoned due to prolonged inactivity. No fix or workaround was implemented.
73%
#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.
70%