[PyQt] py3qt5 system path

Ritesh Raj Sarraf rrs at researchut.com
Wed Jun 28 08:47:25 BST 2017

On Wed, 2017-06-28 at 08:21 +0200, Vincent Vande Vyvre wrote:
> Then, you have to write: from apt_offline_gui import resources.rc

I think you put a typo there. It should be resources_rc.

I tried it but that did not work. I think the problem lies with pyuic4, which
generates the .py files from the .ui files. Because my exception lies in there.

rrs at learner:~/rrs-home/devel/apt-offline/apt-offline (master)$ ./apt-offline-
Traceback (most recent call last):
  File "./apt-offline-gui", line 29, in <module>
    from apt_offline_gui import AptOfflineQtMain
  File "/media/SSHD/rrs-home/devel/apt-offline/apt-
offline/apt_offline_gui/AptOfflineQtMain.py", line 4, in <module>
    from apt_offline_gui.Ui_AptOfflineQtMain import Ui_AptOfflineMain
  File "/media/SSHD/rrs-home/devel/apt-offline/apt-
offline/apt_offline_gui/Ui_AptOfflineQtMain.py", line 155, in <module>
    import resources_rc
ImportError: No module named 'resources_rc'
2017-06-28 / 13:29:55 ♒♒♒  ☹  => 1  

The bug I see is, that the user is not supposed to hand-update the generated files.
That's why I asked here is this is a bug.

Given the large number of mailing lists I follow, I request you to CC
me in replies for quicker response
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170628/281f2a72/attachment-0001.sig>

More information about the PyQt mailing list