[PyQt] pkg_resources error....

John M. Hackett john.hackett at icon-is.co.uk
Mon Nov 16 10:21:48 GMT 2015


I'm not sure if this is aPyQt/Qt, python, or pyqtdeploy issue... 

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 ( apscheduler) it get this traceback: 



Traceback (most recent call last): 

File "PythonLogin_v1.03.py", line 1342, in <module> 

File "PythonLogin_v1.03.py", line 573, in __init__ 

File ":/apscheduler/schedulers/base.pyo", line 61, in __init__ 

File ":/apscheduler/schedulers/base.pyo", line 95, in configure 

File ":/apscheduler/schedulers/base.pyo", line 576, in _configure 

File ":/tzlocal/unix.pyo", line 122, in get_localzone 

File ":/tzlocal/unix.pyo", line 61, in _get_localzone 

File ":/pytz/__init__.pyo", line 173, in timezone 

File ":/pytz/lazy.pyo", line 150, in _lazy 

File ":/pytz/lazy.pyo", line 97, in _lazy 

File ":/pytz/__init__.pyo", line 1074, in <genexpr> 

File ":/pytz/__init__.pyo", line 102, in resource_exists 

File ":/pytz/__init__.pyo", line 95, in open_resource 

File ":/pkg_resources.pyo", line 942, in resource_stream 

File ":/pkg_resources.pyo", line 1346, in get_resource_stream 

File ":/pkg_resources.pyo", line 1349, in get_resource_string 

File ":/pkg_resources.pyo", line 1427, in _get 

NotImplementedError: Can't perform this operation for loaders without 'get_data()' 




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). 




The actual line in my code generating the error (line 573) is 




self.myTimer = QtScheduler() 




so it seems there is something between QtScheduler and getting the local timezone which is breaking pkg_resources. 




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. 




Has anyone come across this and/or can suggest a fix? 


-- 
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/20151116/eead1477/attachment.html>


More information about the PyQt mailing list