Hi Thomas,
Thanks for looking into this.
qt_backport can be found here: https://github.com/rwarren/qt_backport
I'm using the pyqtgraph branch from the qt_backport dev, found here:
https://github.com/rwarren/pyqtgraph/tree/develop/pyqtgraphThe file to
primarily look at is Qt.py:
https://github.com/rwarren/pyqtgraph/blob/develop/pyqtgraph/Qt.py
Here are the discussions about what's basically going on with qt_backport and
pyqtgraph:
https://github.com/pyqtgraph/pyqtgraph/pull/49https://github.com/pyqtgraph/pyqtgraph/pull/68
Thanks again,
Dan
Date: Fri, 12 Dec 2014 20:07:42 -0800
From: tak...@gmail.com
To: cx-freeze-users@lists.sourceforge.net
Subject: Re: [cx-freeze-users] Module is included on freeze, but not used
properly
Hi Daniel,
I would guess that qt_backport is trying to do something clever, that breaks in
a frozen application. Can you point to the source of pyqtgraph that uses it, so
we can see what that's doing? I found pyqtgraph on Github, but it doesn't
appear to use qt_backport.
Thomas
On 12 Dec 2014 16:09, "Daniel Galtieri" <daniel.galti...@gmail.com> wrote:
Hi All, I have written an application using PyQt5 along with pyqtgraph that
uses qt_backport to give pyqtgraph support for PyQt5, since pyqtgraph does not
currently support PyQt5. I am trying to use cx_Freeze to create an executable
for this application, but am running into the following error:Traceback (most
recent call last):File
"C:\Anaconda3\envs\pyqt5\lib\site-packages\cx_Freeze\initscripts\Console.py",
line 27, in <module> exec(code, m.__dict__)File "DataViewer.py", line 5, in
<module>File "C:\Program Files\Python34_64\lib\importlib\_bootstrap.py", line
2237, in _find_and_loadFile "C:\Program
Files\Python34_64\lib\importlib\_bootstrap.py", line 2226, in
_find_and_load_unlockedFile "C:\Program
Files\Python34_64\lib\importlib\_bootstrap.py", line 1191, in
_load_unlockedFile "C:\Program Files\Python34_64\lib\importlib\_bootstrap.py",
line 1161, in _load_backware_compatibleFile
"C:\Anaconda3\envs\pyqt5\lib\site-packages\pyqtgraph\__init__.py", line 15, in
<module> from .Qt import QtGuiFile "C:\Program
Files\Python34_64\lib\importlib\_bootstrap.py", line 2237, in
_find_and_loadFile "C:\Program Files\Python34_64\lib\importlib\_bootstrap.py",
line 2226, in _find_and_load_unlockedFile "C:\Program
Files\Python34_64\lib\importlib\_bootstrap.py", line 1191, in
_load_unlockedFile "C:\Program Files\Python34_64\lib\importlib\_bootstrap.py",
line 1161, in _load_backware_compatibleFile
"C:\Anaconda3\envs\pyqt5\lib\site-packages\pyqtgraph\Qt.py", line 71, in
<module> raise Exception(msg)Exception: PyQtGraph requires one of ('PySide',
'PyQt4'), but none of these could be imported. PyQt5 was detected, but to use
it you you must also install qt_backport.I ran into this a while back when I
first started using qt_backport because of some Python 3 incompatibilities,
which were subsequently fixed, allowing qt_backport to be used for emulating
PyQt5 - PyQt4. Which, the point being in mentioning that, is that this
exception is the result of qt_backport not being imported or called properly by
pyqtgraph's Qt.py The application works, though, so the issue is somewhere in
how the script is being frozen. My setup.py file includes qt_backport, but that
has not resolved the issue (nor did adding it to 'packages'). The qt_backport
folder is in the library zip, though, as are the files that are supposed to be
in that folder. The entire output from running setup.py can be found here:
http://pastebin.com/yDSvHULHAny help would be appreciated. Thanks,Dan
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users