You are not logged in.
Pages: 1
Just installed pyzo. Upon running it I get: ModuleNotFoundError: No module named 'PySide'.
From python, I get:
>>> import PySide
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PySide'
I have installed:
[2019-03-17 18:32] [PACMAN] Running 'pacman -S pyzo'
[2019-03-17 18:32] [ALPM] transaction started
[2019-03-17 18:32] [ALPM] installed python-shiboken2 (5.12.1-1)
[2019-03-17 18:32] [ALPM] installed pyside2 (5.12.1-1)
[2019-03-17 18:32] [ALPM] installed pyzo (4.7.0-1)
[2019-03-17 18:32] [ALPM] transaction completed
Last edited by tpfkanep (2019-03-20 13:22:34)
Offline
what about
import PySide2
?
Offline
As a sanity check, how did you install it? As a821 indicated, the package in community has a dependency on pyside2.
Last edited by ewaller (2019-03-18 14:08:31)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Installed using pacman.
[2019-03-17 18:32] [PACMAN] Running 'pacman -S pyzo'
[2019-03-17 18:32] [ALPM] transaction started
[2019-03-17 18:32] [ALPM] installed python-shiboken2 (5.12.1-1)
[2019-03-17 18:32] [ALPM] installed pyside2 (5.12.1-1)
[2019-03-17 18:32] [ALPM] installed pyzo (4.7.0-1)
[2019-03-17 18:32] [ALPM] transaction completed
running
import PySide2
from python works.
Running "pyzo" I get
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/pyzo/util/qt/__init__.py", line 166, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
Last edited by tpfkanep (2019-03-18 14:03:11)
Offline
That line is under a try block that would give a different error message. Are you using any custom repos? What's in your pacman.conf?
What's the output of the following:
sha1sum /usr/lib/python3.7/site-packages/pyzo/util/qt/__init__.py
type python
Last edited by Trilby (2019-03-18 14:05:30)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
No custom repos.
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg = libsystemd systemd systemd-sysvcompat
#IgnoreGroup =
#NoUpgrade =
NoExtract=usr/bin/linguist-qt4 usr/bin/assistant-qt4 usr/bin/designer-qt4 usr/share/doc/arch-wiki/html/* !usr/share/doc/arch-wiki/html/File* !usr/share/doc/arch-wiki/html/ArchWikiO* !usr/share/doc/arch-wiki/html/en/* usr/lib/opera/opera_auto*
# Misc options
#UseSyslog
Color
TotalDownload
#CheckSpace
VerbosePkgLists
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist
#[multilib]
#Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
sha1sum = 4a8914141a00e7333199e5b2c867c5b89f60cd10
type python = python is /usr/bin/python
Last edited by tpfkanep (2019-03-18 14:08:34)
Offline
Post the output of
python -c "import sys; print(sys.path)"
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
in addition, did you use pip to install modules? did you install anaconda (or similar)?
Offline
sys.path
['', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/lib/python3.7/site-packages', '/usr/lib/python3.7/site-packages/linkgrammar']
Never used pip. Did not install anaconda.
Offline
And `env | grep -i api`?
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
And
which pyzo
macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }
Offline
env | grep -i api = no result
which pyzo = /usr/bin/pyzo
Offline
Saw another update. Updated pyzo to 4.7.1-1
Started pyzo. Got same error.
Installed optional python-pyqt5 package
Depends On : python pyside2
Optional Deps : python-pyqt5: to use PyQt5 as backend instead of PySide
And I get the pyzo main screen.
Offline
Pages: 1