<html><body><div style="font-family: Arial; font-size: 10pt; color: #000000"><div>Ilya,</div><div><br></div><div>thanks for the quick reply. I'm new to pyqtdeploy so I assumed that as my code is relatively simple (a single script of about 2000 lines) using PyQy the pyqtdeploy would work with it.</div><div><br></div><div>If you have time can you just outline briefly (or point me to some docs) what I may be doing that requires "get_data()" to be implemented - on the face of it I'd have thought this was required in all deployments but I am probably (certainly!) missing something here.</div><div><span style="font-size: 10pt;"> </span></div><div>If I cross compile (the idea of using PyQt and pyqtdeploy was so I can compile it for linux, Mac, windows, iOs and Android) I assume I'll have the same problem.</div><div><br></div><div>Can you able to estimate when either you or Phil would be able to implement/integrate this function? Is there a workaround?</div><div><br></div><div>Many, many thanks for your work on this.</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>"Ilya Kulakov" <kulakov.ilya@gmail.com><br><b>To: </b>"John Hackett" <john.hackett@icon-is.co.uk><br><b>Cc: </b>pyqt@riverbankcomputing.com<br><b>Sent: </b>Monday, 16 November, 2015 2:02:56 PM<br><b>Subject: </b>Re: [PyQt] pkg_resources error....<br><div><br></div><div>I don't think the line you pointed to causes the error.</div><div><br></div><div>It's just pyqtdeploy's loader does not implement the get_data function defined by PEP 302. I can add this to my fork and hopefully Phil will integrate it.<br><div><br></div><div>Best Regards<div>Ilya Kulakov</div></div></div><div><br>On 16 нояб. 2015 г., at 5:21, John M. Hackett <<a href="mailto:john.hackett@icon-is.co.uk" target="_blank" data-mce-href="mailto:john.hackett@icon-is.co.uk">john.hackett@icon-is.co.uk</a>> wrote:<br><div><br></div></div><blockquote><div><div style="font-family: Arial; font-size: 10pt; color: #000000" data-mce-style="font-family: Arial; font-size: 10pt; color: #000000;"><div>I'm not sure if this is  aPyQt/Qt, python, or pyqtdeploy issue...</div><div><br></div><div>I have managed to get my app to build successfully and it all runs correctly within the IDE. When I run the binary the app start OK but when it tries to set up the scheduler (<span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">apscheduler) it get this traceback:</span></div><div><br></div><div><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">Traceback (most recent call last):</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File "PythonLogin_v1.03.py", line 1342, in <module></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File "PythonLogin_v1.03.py", line 573, in __init__</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/apscheduler/schedulers/base.pyo", line 61, in __init__</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/apscheduler/schedulers/base.pyo", line 95, in configure</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/apscheduler/schedulers/base.pyo", line 576, in _configure</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/tzlocal/unix.pyo", line 122, in get_localzone</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/tzlocal/unix.pyo", line 61, in _get_localzone</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/pytz/__init__.pyo", line 173, in timezone</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/pytz/lazy.pyo", line 150, in _lazy</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/pytz/lazy.pyo", line 97, in _lazy</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/pytz/__init__.pyo", line 1074, in <genexpr></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/pytz/__init__.pyo", line 102, in resource_exists</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/pytz/__init__.pyo", line 95, in open_resource</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/pkg_resources.pyo", line 942, in resource_stream</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/pkg_resources.pyo", line 1346, in get_resource_stream</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/pkg_resources.pyo", line 1349, in get_resource_string</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">  File ":/pkg_resources.pyo", line 1427, in _get</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">NotImplementedError: Can't perform this operation for loaders without 'get_data()'</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">It seems to be a known problem (for googling the error message) but what I have found does not seem to be very useful in terms of correcting the issue - any ideas? Is there a module missing? (both tzlocal and pytz are installed).</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">The actual line in my code generating the error (line 573) is </span></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;"><br></span></p><p class="p1" style="margin: 0px; padding-left: 30px;" data-mce-style="margin: 0px; padding-left: 30px;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">self.myTimer = QtScheduler()</span></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;"><br></span></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">so it seems there is something between QtScheduler and getting the local timezone which is breaking <span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">pkg_resources.</span></span></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;"><br></span></span></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;"><span style="font-size: 13.3333px;" data-mce-style="font-size: 13.3333px;">System info: ubuntu14.04, Python 2.7.6, Qt5.5. Target is the host system (i.e. not cross compiling). I have compiled both in the main environment and in a 2.7.6 virtualenv and get the same error in both cases.</span></span></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">Has anyone come across this and/or can suggest a fix?</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><br></p></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: <a href="mailto:john.hackett@icon-is.co.uk" target="_blank" data-mce-href="mailto:john.hackett@icon-is.co.uk">john.hackett@icon-is.co.uk</a><br>w: <a href="http://www.icon-is.co.uk" target="_blank" data-mce-href="http://www.icon-is.co.uk">www.icon-is.co.uk</a><br>skype: john_hackett<br>twitter: @iconinfosys<span></span><br></div><div><br></div></div></div></blockquote><blockquote><div><span>_______________________________________________</span><br><span>PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank" data-mce-href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a></span><br><span><a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank" data-mce-href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></span></div></blockquote></blockquote><div><br></div></div></body></html>