Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pycairo 1.17.0's equivilent of PycairoContext_FromContext #169

Closed
dreerr opened this issue May 11, 2018 · 7 comments
Closed

Support pycairo 1.17.0's equivilent of PycairoContext_FromContext #169

dreerr opened this issue May 11, 2018 · 7 comments
Labels

Comments

@dreerr
Copy link

dreerr commented May 11, 2018

Dear all,

I updated my Python install to 2.7.15 and created a new virtualenv for shoebot to test it. The diagnose comes up with the following:

import gi                   [success] : [...]
import gi.repository.Pango  [success] : [...]
import pgi                  [failed]
import vext                 [success] : [...]
import pubsub               [success] : [...]
import meta                 [success] : [...]
import shoebot              [success] :[...]
shoebot - standard module example:
Traceback (most recent call last):
[...]
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 384, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x7fc8dd1ba740, PycairoContext_FromContext): symbol not found
[failed]

Any idea how to solve this? Never had this error before. My pip freeze looks good to:

cairocffi==0.7.2
cffi==1.11.5
fuzzywuzzy==0.5.0
meta===-
numpy==1.14.3
Pillow==5.1.0
planar==0.4
pubsub==0.1.1
pycparser==2.18
PySoundCard==0.5.2
ruamel.ordereddict==0.4.13
ruamel.yaml==0.15.37
shoebot==1.2.2
vext==0.7.0
vext.gi==0.6.8

Thank you for your help!

@stuaxo
Copy link
Contributor

stuaxo commented May 11, 2018

I've hit a lot of issues around PycairoContext_FromContext over the years.
I can't look at it now, but will have a look later.

You can try various combinations of installing / uninstalling cairocffi and pycairo.

I would try the latest versions of both first and see if it helps.

@dreerr
Copy link
Author

dreerr commented May 11, 2018

Sadly no combination worked out yet. Also changing back to Python 2.7.14 didn‘t help. Any other direction you could point me in?

EDIT: got it to work with pip install pycairo==1.16.3 so everything back to normal!

@dreerr dreerr closed this as completed May 11, 2018
@stuaxo
Copy link
Contributor

stuaxo commented May 11, 2018

I @dreerr does it work with pycairo 1.16.3 and die with newer ones like 1.17 ?

If that's the issue, it may be an issue on pycairo, and I'd like to be able to isolate it (I'm glad it's fixed for you, but I've seen this tricky bug come up before).

@stuaxo stuaxo reopened this May 11, 2018
@stuaxo stuaxo changed the title Installing Issues with Python 2.7.15 PycairoContext_FromContext issue with certain versions of pycairo May 11, 2018
@dreerr
Copy link
Author

dreerr commented May 11, 2018

I checked now to be sure and 1.17.0 is not working, while 1.16.3 is working

@stuaxo
Copy link
Contributor

stuaxo commented May 11, 2018

Upstream bug - pygobject/pycairo#113

@stuaxo
Copy link
Contributor

stuaxo commented May 12, 2018

The solution in this thread needs to be implemented ..

pygobject/pycairo#59 (comment)

No reason we can't support both until 1.17.0 is old enough to be everywhere.

@stuaxo stuaxo changed the title PycairoContext_FromContext issue with certain versions of pycairo Support pycairo 1.17.0 equivilent of PycairoContext_FromContext May 12, 2018
@stuaxo stuaxo changed the title Support pycairo 1.17.0 equivilent of PycairoContext_FromContext Support pycairo 1.17.0's equivilent of PycairoContext_FromContext May 12, 2018
@stuaxo stuaxo added the bug label May 12, 2018
@stuaxo stuaxo added the pgi label Jan 26, 2019
@stuaxo
Copy link
Contributor

stuaxo commented Mar 18, 2019

Should be fixed in master.

@stuaxo stuaxo closed this as completed Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants