Public bug reported:
I'm trying to snap pithos, a python3 client for Pandora.
I've had to hack around a problem with snapcraft creating the wrong
PYTHONPATH (lp:1594059) already.
Now, when I run the pithos command, I get the following traceback:
Traceback (most recent call last):
File "/snap/pithos/x3/usr/bin/pithos", line 9, in <module>
load_entry_point('pithos==1.1.1', 'gui_scripts', 'pithos')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in
load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569,
in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229,
in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235,
in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/snap/pithos/x3/usr/share/pithos/pithos/pithos.py", line 34, in <module>
import gi
ImportError: No module named 'gi'
Note all the paths. the pithos command is in /snap/pithos/.../... but
the python files are all in /usr/lib/python3/
Now, after I change the pithos launcher shebang to "#!/usr/bin/env
python3", I get a different traceback, but all the paths have now
changed to /snap/.../...
Traceback (most recent call last):
File "/snap/pithos/x4/usr/bin/pithos", line 9, in <module>
load_entry_point('pithos==1.1.1', 'gui_scripts', 'pithos')()
File
"/snap/pithos/x4/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File
"/snap/pithos/x4/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
2569, in load_entry_point
return ep.load()
File
"/snap/pithos/x4/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
2229, in load
return self.resolve()
File
"/snap/pithos/x4/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
2235, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/snap/pithos/x4/usr/share/pithos/pithos/pithos.py", line 35, in <module>
gi.require_version('Gst', '1.0')
File "/snap/pithos/x4/usr/lib/python3/dist-packages/gi/__init__.py", line
102, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gst not available
** Affects: snapcraft (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1613515
Title:
different paths depending on how python3 is initiated
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/1613515/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs