[PyQt] pkg_resources error....
John Hackett
john.hackett at icon-is.co.uk
Mon Nov 16 14:37:07 GMT 2015
Ilya,
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.
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.
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.
Can you able to estimate when either you or Phil would be able to implement/integrate this function? Is there a workaround?
Many, many thanks for your work on this.
--
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
----- Original Message -----
> From: "Ilya Kulakov" <kulakov.ilya at gmail.com>
> To: "John Hackett" <john.hackett at icon-is.co.uk>
> Cc: pyqt at riverbankcomputing.com
> Sent: Monday, 16 November, 2015 2:02:56 PM
> Subject: Re: [PyQt] pkg_resources error....
> I don't think the line you pointed to causes the error.
> 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.
> Best Regards
> Ilya Kulakov
> On 16 нояб. 2015 г., at 5:21, John M. Hackett < john.hackett at icon-is.co.uk >
> wrote:
> > 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
>
> > _______________________________________________
>
> > PyQt mailing list PyQt at riverbankcomputing.com
>
> > https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151116/86c8883d/attachment-0001.html>
More information about the PyQt
mailing list