ModuleNotFoundError: No module named 'PySide2'
machnic opened this issue · 2 comments
machnic commented
Executing pyside2-hello-world
results in ModuleNotFoundError: No module named 'PySide2'
user@host:~/PycharmProjects/pyside2-hello-world$ snapcraft
Using 'snap/snapcraft.yaml': Project assets will be searched for from the 'snap' directory.
Launching a VM.
Launched: snapcraft-pyside2-hello-world
2019-05-20T14:29:45Z INFO Waiting for restart...
core 16-2.38.1 from Canonical✓ installed
snapcraft 3.4.1 from Canonical✓ installed
core18 20190409 from Canonical✓ installed
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
Using 'snap/snapcraft.yaml': Project assets will be searched for from the 'snap' directory.
Pulling pyside2-hello-world
Building pyside2-hello-world
Staging pyside2-hello-world
Priming pyside2-hello-world
Snapping 'pyside2-hello-world' |
Snapped pyside2-hello-world_0.1_amd64.snap
user@host:~/PycharmProjects/pyside2-hello-world$ sudo snap install --dangerous ./pyside2-hello-world_0.1_amd64.snap
pyside2-hello-world 0.1 installed
user@host:~/PycharmProjects/pyside2-hello-world$ pyside2-hello-world
utils.go:684: cannot change mount namespace of snap "pyside2-hello-world" according to change mount (/var/lib/snapd/hostfs/usr/share/fonts /usr/share/fonts-2 none bind,ro 0 0): permission denied
Traceback (most recent call last):
File "/snap/pyside2-hello-world/x1/main.py", line 3, in <module>
from PySide2 import QtWidgets
ModuleNotFoundError: No module named 'PySide2'
jonata commented
The same here :(
albertosottile commented
Same here. I still have not found a way to build a snap based on PySide2...