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

cairo ImportError after upgrade to Ubuntu 18.04 #15

Closed
mtompkins opened this issue May 4, 2018 · 6 comments
Closed

cairo ImportError after upgrade to Ubuntu 18.04 #15

mtompkins opened this issue May 4, 2018 · 6 comments
Labels
bug crash: python libs crash caused by an upstream Python dependency upstream Involves an upstream library/API/service

Comments

@mtompkins
Copy link

mtompkins commented May 4, 2018

Variety no longer starts with:

variety
Traceback (most recent call last):
  File "/usr/bin/variety", line 38, in <module>
    import variety
  File "/usr/lib/python2.7/dist-packages/variety/__init__.py", line 111, in <module>
    from variety import VarietyWindow
  File "/usr/lib/python2.7/dist-packages/variety/VarietyWindow.py", line 74, in <module>
    from variety.QuoteWriter import QuoteWriter
  File "/usr/lib/python2.7/dist-packages/variety/QuoteWriter.py", line 17, in <module>
    import cairo
  File "/usr/lib/python2.7/dist-packages/cairo/__init__.py", line 1, in <module>
    from ._cairo import *  # noqa: F401,F403
ImportError: /usr/lib/python2.7/dist-packages/cairo/_cairo.x86_64-linux-gnu.so: undefined symbol: cairo_tee_surface_index

Installed by from generic and your PPA

@jlu5
Copy link
Member

jlu5 commented May 4, 2018

Hello,

Can you paste the output of this terminal command: apt-cache policy python-cairo libcairo2 variety

@mtompkins
Copy link
Author

You bet:

apt-cache policy python-cairo libcairo2 variety
python-cairo:
  Installed: 1.16.2-1
  Candidate: 1.16.2-1
  Version table:
 *** 1.16.2-1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
libcairo2:
  Installed: 1.15.10-2
  Candidate: 1.15.10-2
  Version table:
 *** 1.15.10-2 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
variety:
  Installed: 0.6.8~ppa646~ubuntu18.04.1
  Candidate: 0.6.8~ppa646~ubuntu18.04.1
  Version table:
 *** 0.6.8~ppa646~ubuntu18.04.1 500
        500 http://ppa.launchpad.net/peterlevi/ppa/ubuntu bionic/main amd64 Packages
        500 http://ppa.launchpad.net/peterlevi/ppa/ubuntu bionic/main i386 Packages
        100 /var/lib/dpkg/status
     0.6.7-1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages

@jlu5 jlu5 changed the title ImportError after upgrade to Ubuntu 18.04 cairo ImportError after upgrade to Ubuntu 18.04 May 7, 2018
@mtompkins
Copy link
Author

Is there any additional information I can provide to get this resolved? I really miss this little utility!!

@mtompkins
Copy link
Author

On a fluke, I tried to install Variety since opening the ticket. It seems some dependency that may have been the issue has been updated/resolved.

@jlu5 jlu5 removed the help wanted label Sep 13, 2018
@jlu5 jlu5 added upstream Involves an upstream library/API/service crash: python libs crash caused by an upstream Python dependency labels Feb 22, 2019
@mtompkins
Copy link
Author

FWIW - this problem has reared its head again on an upgrade to 19.10

@mtompkins mtompkins reopened this Nov 30, 2019
@mtompkins
Copy link
Author

Workaround (on Ubuntu)
Delete any existing ~/.cache/pip
Reinstall with pip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug crash: python libs crash caused by an upstream Python dependency upstream Involves an upstream library/API/service
Projects
None yet
Development

No branches or pull requests

2 participants