[PyQt] pyqtdeploy and site-packeages problem...
John Hackett
john.hackett at icon-is.co.uk
Fri Nov 13 12:27:17 GMT 2015
Thanks Phil,
So now the .egg directories are in the resources directory and it contains .pyo files rather than the .pyc ones in the site-packages one - so clearly something has happened. But I still get the same error after building and making....
--
Regards,
John Hackett
Icon Information Systems
74 Gibsons Hill, Norbury, London, SW16 3JS
t: 020 8764 2663
f: 020 8711 3370
m: 07801-231118
e: john.hackett at icon-is.co.uk
w: www.icon-is.co.uk
skype: john_hackett
twitter: @iconinfosys
----- Original Message -----
> From: "Phil Thompson" <phil at riverbankcomputing.com>
> To: "John Hackett" <john.hackett at icon-is.co.uk>
> Cc: pyqt at riverbankcomputing.com
> Sent: Friday, 13 November, 2015 12:07:16 PM
> Subject: Re: [PyQt] pyqtdeploy and site-packeages problem...
> On 13 Nov 2015, at 11:45 a.m., John M. Hackett <john.hackett at icon-is.co.uk>
> wrote:
> >
> > I think I am nearly there but some modules are still missing in the final
> > build....
> >
> > My Python (2.7.6) code imports various standard modules as well as some
> > that have been installed into site-packages. In particular there is
> > ipaddress, ntlm (python_ntlm-1.1.0-py2.7.egg) and apscheduler
> > (APScheduler-3.0.4-py2.7.egg).
> >
> > The script runs correctly in my IDE (PyCharm) using a virtualenv.
> >
> > When I build then run qmake it all appears to compile correctly but when I
> > run the binary i get:
> >
> > (ENV1)root at ubuntu14:~/plogin_build2# ./ProtexLoginApp
> > Traceback (most recent call last):
> > File "xxxxxxxxxxxx.py", line 54, in <module>
> > ImportError: No module named ntlm
> >
> > the "import ipaddress" line comes before this and so imports correctly.
> > Also the resources directory includes "ipaddress.pyo".
> >
> > If I reverse the order of the ntlm and apscheuler statements I get another
> > No Module Named error but this time for the apscheduler module. Is the
> > fact that both these are .egg files relevant? Are eggs a problem for
> > pyqtdeploy?
> >
> > So the question is how do I get these two modules to compile correctly?
> >
> > NOTE: I am starting pyqtdeploy form within the virtualenv - is that
> > correct? Does it make any difference?
> Eggs should be added to sys.path on the Application Source page.
> Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151113/cab91d45/attachment.html>
More information about the PyQt
mailing list