Module not importing PyQt5 modules

Rich Shepard rshepard at appl-ecosys.com
Thu Jun 3 14:16:43 BST 2021


On Thu, 3 Jun 2021, David Boddie wrote:

> pdb may be the problem:
> https://bugs.python.org/issue39052
> That issue contains a workaround you could try.

David,

Thank you very much for finding this. It applies to linux as well as
windows:

$ python datasource.py 
> /home/rshepard/development/business_tracker/datasource.py(7)<module>()
-> from PyQt5 import QtWidgets as qtw
(Pdb) s
--Call--
> /usr/lib64/python3.7/site-packages/PyQt5/__init__.py(1)<module>()
-> # Copyright (c) 2019 Riverbank Computing Limited <info at riverbankcomputing.com>
(Pdb) s
> /usr/lib64/python3.7/site-packages/PyQt5/__init__.py(1)<module>()
-> # Copyright (c) 2019 Riverbank Computing Limited <info at riverbankcomputing.com>
(Pdb) s
--Return--
> /usr/lib64/python3.7/site-packages/PyQt5/__init__.py(1)<module>()->None
-> # Copyright (c) 2019 Riverbank Computing Limited <info at riverbankcomputing.com>
(Pdb) n
--Call--
> /usr/lib64/python3.7/enum.py(283)__call__()
-> def __call__(cls, value, names=None, *, module=None, qualname=None, type=None, start=1):
(Pdb) n
> /usr/lib64/python3.7/enum.py(308)__call__()
-> if names is None:  # simple value lookup
(Pdb)

I'll add that patch to all modules and see how the application runs as I can
now continue to develop it.

Regards,

Rich


More information about the PyQt mailing list