python plugin doesn't work for namespace packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
High
|
Unassigned |
Bug Description
snapcraft version: commit dbdaf36a43c7e56
snap: github.
When testing the above bug fix, I started hitting the following issue. Note: the above commit did fix the issue reported in that bug.
The snap installs successfully now. However, python dependencies aren't fully getting installed. I don't hit these issues on 2.22.
For example, after installing the snap, running a command from the snap I hit this: http://
And /snap/keystone/
'touch /snap/keystone/
Then starting a daemon 'sudo systemctl restart snap.keystone.api' I hit: http://
Once again, 'touch /snap/keystone/
It seems that the cause of this problem may be due to: https:/
tags: | added: openstack plugin |
Changed in snapcraft: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in snapcraft: | |
milestone: | none → 2.29 |
Changed in snapcraft: | |
milestone: | 2.29 → 2.30 |
Changed in snapcraft: | |
milestone: | 2.30 → none |
I don't see that error, but I had to make modifications to your snapcraft.yaml -> http:// paste.ubuntu. com/24327782/
the environment entries are currently broken in snapd. You also want to use a fixed python (the one in the snap to get the correct sitecustomize which gets PYTHONPATH just right).
What is missing here is the fact that you are not compiling your own python and are creating a classic snap. This will cause issues.
I'll mark this bug as invalid for now, but feel free to reopen or open a new one, but .pth files seem to work.
snapper@ snap-testing: ~$ $SNAP/usr/ bin/python2
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from paste import deploy
>>>
^-- no exception ;-)