[PyQt] pyqtdeploy and site-packeages problem...

Phil Thompson phil at riverbankcomputing.com
Fri Nov 13 12:07:16 GMT 2015


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



More information about the PyQt mailing list