<html><body><div style="font-family: Arial; font-size: 10pt; color: #000000"><div>Ignore last email - I had an incorrect path in sys.path .... almost there ...</div><div><br></div><div><span name="x"></span>-- <br>Regards,<br><div><br></div>John Hackett<br>Icon Information Systems<br>74 Gibsons Hill, Norbury, London, SW16 3JS<br>t: 020 8764 2663<br>f: 020 8711 3370<br>m: 07801-231118<br>e: john.hackett@icon-is.co.uk<br>w: www.icon-is.co.uk<br>skype: john_hackett<br>twitter: @iconinfosys<span name="x"></span><br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"John Hackett" <john.hackett@icon-is.co.uk><br><b>To: </b>pyqt@riverbankcomputing.com<br><b>Sent: </b>Friday, 13 November, 2015 12:27:17 PM<br><b>Subject: </b>Re: [PyQt] pyqtdeploy and site-packeages problem...<br><div><br></div><div style="font-family: Arial; font-size: 10pt; color: #000000" data-mce-style="font-family: Arial; font-size: 10pt; color: #000000;"><div>Thanks Phil,</div><div><br></div><div>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....</div><div><br></div><div><span></span>-- <br>Regards,<br><div><br></div>John Hackett<br>Icon Information Systems<br>74 Gibsons Hill, Norbury, London, SW16 3JS<br>t: 020 8764 2663<br>f: 020 8711 3370<br>m: 07801-231118<br>e: john.hackett@icon-is.co.uk<br>w: www.icon-is.co.uk<br>skype: john_hackett<br>twitter: @iconinfosys<span></span><br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Phil Thompson" <phil@riverbankcomputing.com><br><b>To: </b>"John Hackett" <john.hackett@icon-is.co.uk><br><b>Cc: </b>pyqt@riverbankcomputing.com<br><b>Sent: </b>Friday, 13 November, 2015 12:07:16 PM<br><b>Subject: </b>Re: [PyQt] pyqtdeploy and site-packeages problem...<br><div><br></div>On 13 Nov 2015, at 11:45 a.m., John M. Hackett <john.hackett@icon-is.co.uk> wrote:<br>> <br>> I think I am nearly there but some modules are still missing in the final build....<br>> <br>> 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).<br>> <br>> The script runs correctly in my IDE (PyCharm) using a virtualenv.<br>> <br>> When I build then run qmake it all appears to compile correctly but when I run the binary i get:<br>> <br>> (ENV1)root@ubuntu14:~/plogin_build2# ./ProtexLoginApp <br>> Traceback (most recent call last):<br>> File "xxxxxxxxxxxx.py", line 54, in <module><br>> ImportError: No module named ntlm<br>> <br>> the "import ipaddress" line comes before this and so imports correctly. Also the resources directory includes "ipaddress.pyo".<br>> <br>> 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?<br>> <br>> So the question is how do I get these two modules to compile correctly?<br>> <br>> NOTE: I am starting pyqtdeploy form within the virtualenv - is that correct? Does it make any difference?<br><div><br></div>Eggs should be added to sys.path on the Application Source page.<br><div><br></div>Phil<br><div><br></div></blockquote><div><br></div></div></blockquote><div><br></div></div></body></html>