[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] pyqtdeploy and site-packeages problem...
From: "John M. Hackett" <john.hackett () icon-is ! co ! uk>
Date: 2015-11-13 13:21:52
Message-ID: 1595240935.119453.1447420912238.JavaMail.zimbra () icon-is ! co ! uk
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Ignore last email - I had an incorrect path in sys.path .... almost there ...
--
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@icon-is.co.uk
w: www.icon-is.co.uk
skype: john_hackett
twitter: @iconinfosys
----- Original Message -----
> From: "John Hackett" <john.hackett@icon-is.co.uk>
> To: pyqt@riverbankcomputing.com
> Sent: Friday, 13 November, 2015 12:27:17 PM
> Subject: Re: [PyQt] pyqtdeploy and site-packeages problem...
> 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@icon-is.co.uk
> w: www.icon-is.co.uk
> skype: john_hackett
> twitter: @iconinfosys
> ----- Original Message -----
> > From: "Phil Thompson" <phil@riverbankcomputing.com>
>
> > To: "John Hackett" <john.hackett@icon-is.co.uk>
>
> > Cc: pyqt@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@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@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
>
[Attachment #5 (text/html)]
<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>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic