[Bug 1619840] Re: pyqt5's pyuic module import doesn't work

2016-09-04 Thread Dmitry Shachnev
You are right, this is what I said in my first comment: > The error message is there, and if that file is called as __main__ it gets printed. Thanks for your work on fixing QGIS! ** Changed in: pyqt5 (Ubuntu) Status: Incomplete => Invalid -- You received this bug notification because yo

[Bug 1619840] Re: pyqt5's pyuic module import doesn't work

2016-09-04 Thread Mathieu Pellerin
Dmitry, ok, I understand what's happening now. Prior to PyQt5 version 5.7, importing pyuic would run the code, whereas as of version 5.7, the code is put under a main() function, which is called here: if __name__ == '__main__': main() The PyQt5 author must have had his reason(s) to do so. I'l

[Bug 1619840] Re: pyqt5's pyuic module import doesn't work

2016-09-04 Thread Mathieu Pellerin
Dmitry, I'm not familiar with the rational as to why QGIS (and I have to assume other projects) have settled on going through this method to invoke pyuic5. That said, this method used to work just fine when building QGIS under Ubuntu 16.04, with pyqt5 5.5.1. The regression highlighted here results

[Bug 1619840] Re: pyqt5's pyuic module import doesn't work

2016-09-03 Thread Dmitry Shachnev
What is the point of that one-line script? Why can't you use pyuic5 executable from pyqt5-dev-tools package? Or, if you (for some reason) really want main() to be called, call it explicitly: from PyQt5.uic import pyuic pyuic.main() -- You received this bug notification because you are a member

[Bug 1619840] Re: pyqt5's pyuic module import doesn't work

2016-09-03 Thread Mathieu Pellerin
Execute this python script by typing: python pyqt4.py dialogAbout.ui This will successfully output the python generated code for the .ui file. ** Attachment added: "pyqt4.py" https://bugs.launchpad.net/ubuntu/+source/pyqt5/+bug/1619840/+attachment/4733899/+files/pyqt4.py -- You received th

[Bug 1619840] Re: pyqt5's pyuic module import doesn't work

2016-09-03 Thread Mathieu Pellerin
Test .ui file, instructions coming in a separate post. ** Attachment added: "dialogAbout.ui" https://bugs.launchpad.net/ubuntu/+source/pyqt5/+bug/1619840/+attachment/4733898/+files/dialogAbout.ui -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscrib

[Bug 1619840] Re: pyqt5's pyuic module import doesn't work

2016-09-03 Thread Mathieu Pellerin
Execute this python script by typing: python3 pyqt5.py dialogAbout.ui This will fail to output any python generated code for the .ui file. ** Attachment added: "pyqt5.py" https://bugs.launchpad.net/ubuntu/+source/pyqt5/+bug/1619840/+attachment/4733900/+files/pyqt5.py -- You received this b

[Bug 1619840] Re: pyqt5's pyuic module import doesn't work

2016-09-03 Thread Mathieu Pellerin
(actually, you can run python pyqt5.py dialogAbout.ui to see the module fail too, that eliminates the problem being python3-related) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619840 Title: pyqt

[Bug 1619840] Re: pyqt5's pyuic module import doesn't work

2016-09-03 Thread Mathieu Pellerin
Dmitry, normally, having a python script that simply has: from PyQt5.uic import pyuic would trigger the error message when run without an argument (which the imported pyuic module needs to trigger a .ui to .py output). ATM, under 16.10: - a python 2 script with this simple line: from PyQt4.uic i

[Bug 1619840] Re: pyqt5's pyuic module import doesn't work

2016-09-03 Thread Dmitry Shachnev
Hi, What exactly are you trying to achieve here? The error message is there, and if that file is called as __main__ it gets printed. When the module gets just imported, it is not printed — which looks like the correct behavior to me. ** Changed in: pyqt5 (Ubuntu) Status: New => Incomplete