← Back to issue list

python plugin "No module named site"

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1631057
Type
issue
State
closed
Author
~blake-rouse
Labels
plugin
Created
Updated
Closed

Current evaluation

Closed without resolution. The python plugin triggered a missing site module error during snap builds when fetching bzr dependencies, but no fix or follow-up was provided.

Suggested action:

No scores available.

Issue body

With the new python plugin I can no longer build my MAAS snap. The issue is that in my requirements.txt file I use bzr to grab some dependencies. This worked fine with the python3 plugin, but I think some of the environment variable you are setting are causing this issue. What is wierd is that site is a core python module, its very strange for it to be missing. Collecting curtin from bzr+lp:curtin#egg=curtin (from -r /home/blake/Code/maas/maas-snap-early/parts/maas/src/requirements.txt (line 29)) Checking out lp:curtin to /tmp/pip-build-ihsfwbyx/curtin ImportError: No module named site Command "bzr branch -q lp:curtin /tmp/pip-build-ihsfwbyx/curtin" failed with error code 1 in None Command '['/bin/sh', '/tmp/tmp27a9nbp2', 'pip', 'download', '--disable-pip-version-check', '--dest', '/home/blake/Code/maas/maas-snap-early/parts/maas/packages', '--requirement', '/home/blake/Code/maas/maas-snap-early/parts/maas/src/requirements.txt']' returned non-zero exit status 1

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. The python plugin triggered a missing site module error during snap builds when fetching bzr dependencies, but no fix or follow-up was provided.
qwen/qwen3.6-35b-a3b Python plugin environment variables caused a missing site module error during snap builds. The report was closed without comments or resolution, indicating abandonment.
qwen/qwen3.6-35b-a3b Closed without comments or resolution. The python plugin environment variable conflict causing a missing core module error was likely abandoned or superseded by plugin updates.
qwen3.6-35b-a3b-mtp-q6 Python plugin environment variables triggered a missing site module error during snap builds. The report was closed without comments or resolution, indicating abandonment after over nine years of inactivity.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1841861 Python plugins fails to build a snap when some parts depends on unpublished modules snapcraft (launchpad) closed Closed without resolution. The Python plugin fails to build snaps when parts depend on unpublished local modules because pip download fails to locate them on PyPI. No fix was implemented.
72%