<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><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><br><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">john.hackett@icon-is.co.uk</a>> wrote:<br><br></div><blockquote type="cite"><div><div 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;"><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 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: <a 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">www.icon-is.co.uk</a><br>skype: john_hackett<br>twitter: @iconinfosys<span name="x"></span><br></div><div><br></div></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a></span><br><span><a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></span></div></blockquote></body></html>