Discussion:
[PyQt] ModuleNotFoundError: No module named 'PyQt5.sip'
Patrick Stinson
2018-10-07 20:00:18 UTC
Permalink
Is anyone else seeing this error when building Python, sip-5.11.3, and PyQt5-5.11.2 from source on MacOSX (Mojave)? I am using Python-3.6.4.

turin:pkdiagram patrick$ python -c "import PyQt5.QtCore"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt5.sip'

Thanks!
-Patrick
Kyle Altendorf
2018-10-07 20:38:56 UTC
Permalink
Post by Patrick Stinson
Is anyone else seeing this error when building Python, sip-5.11.3, and
PyQt5-5.11.2 from source on MacOSX (Mojave)? I am using Python-3.6.4.
turin:pkdiagram patrick$ python -c "import PyQt5.QtCore"
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt5.sip'
Did you see the new build instructions?

http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip

Cheers,
-kyle
_______________________________________________
PyQt mailing list ***@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/l
Patrick Stinson
2018-10-07 20:53:11 UTC
Permalink
That did help. However, now I’m getting the following error for pyrcc5:

turin:pkdiagram patrick$ make run
pyrcc5 pkdiagram/resources/pkdiagram.qrc -o pkdiagram/resources.py
Traceback (most recent call last):
File "/Users/patrick/dev/vendor/sysroot-dev/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Users/patrick/dev/vendor/sysroot-dev/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/patrick/dev/vendor/sysroot-dev/lib/python3.6/site-packages/PyQt5/pyrcc_main.py", line 23, in <module>
from .pyrcc import *
ModuleNotFoundError: No module named 'PyQt5.pyrcc'

I don’t see another entry in those build docs for this...
Post by Kyle Altendorf
Post by Patrick Stinson
Is anyone else seeing this error when building Python, sip-5.11.3, and
PyQt5-5.11.2 from source on MacOSX (Mojave)? I am using Python-3.6.4.
turin:pkdiagram patrick$ python -c "import PyQt5.QtCore"
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt5.sip'
Did you see the new build instructions?
http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip
Cheers,
-kyle
Patrick Stinson
2018-10-07 20:58:35 UTC
Permalink
Well, the second error went away for me after running male install a few times. No idea what that’s about. Maybe a concurrency problem in the makefiles. Anyway, cheers.
Post by Patrick Stinson
turin:pkdiagram patrick$ make run
pyrcc5 pkdiagram/resources/pkdiagram.qrc -o pkdiagram/resources.py
File "/Users/patrick/dev/vendor/sysroot-dev/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Users/patrick/dev/vendor/sysroot-dev/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/patrick/dev/vendor/sysroot-dev/lib/python3.6/site-packages/PyQt5/pyrcc_main.py", line 23, in <module>
from .pyrcc import *
ModuleNotFoundError: No module named 'PyQt5.pyrcc'
I don’t see another entry in those build docs for this...
Post by Kyle Altendorf
Post by Patrick Stinson
Is anyone else seeing this error when building Python, sip-5.11.3, and
PyQt5-5.11.2 from source on MacOSX (Mojave)? I am using Python-3.6.4.
turin:pkdiagram patrick$ python -c "import PyQt5.QtCore"
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt5.sip'
Did you see the new build instructions?
http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip
Cheers,
-kyle
Patrick Stinson
2018-10-07 23:38:48 UTC
Permalink
In trying to build a sysroot for iOS I noticed that pyqtdeploy-sysroot 2.2 seems not to honor this new option. And “configure_options” is not a valid option for sip in sysroot.json


Thoughts?
Post by Patrick Stinson
Well, the second error went away for me after running male install a few times. No idea what that’s about. Maybe a concurrency problem in the makefiles. Anyway, cheers.
Post by Patrick Stinson
turin:pkdiagram patrick$ make run
pyrcc5 pkdiagram/resources/pkdiagram.qrc -o pkdiagram/resources.py
File "/Users/patrick/dev/vendor/sysroot-dev/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Users/patrick/dev/vendor/sysroot-dev/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/patrick/dev/vendor/sysroot-dev/lib/python3.6/site-packages/PyQt5/pyrcc_main.py", line 23, in <module>
from .pyrcc import *
ModuleNotFoundError: No module named 'PyQt5.pyrcc'
I don’t see another entry in those build docs for this...
Post by Kyle Altendorf
Post by Patrick Stinson
Is anyone else seeing this error when building Python, sip-5.11.3, and
PyQt5-5.11.2 from source on MacOSX (Mojave)? I am using Python-3.6.4.
turin:pkdiagram patrick$ python -c "import PyQt5.QtCore"
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt5.sip'
Did you see the new build instructions?
http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip <http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#downloading-sip>
Cheers,
-kyle
Loading...