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

John M. Hackett john.hackett at icon-is.co.uk
Fri Nov 13 11:45:00 GMT 2015


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? 
-- 
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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151113/4851bad3/attachment.html>


More information about the PyQt mailing list