[cairo] Installing py2cairo: PyThreadState_Get: no current thread

Nick Eubank nickeubank at gmail.com
Thu Jan 8 12:32:25 PST 2015


Hi All,

Trying to install Py2Cairo into an Enthought Canopy installation. Seems to
work, but when I try to run "import cairo" I get "PyThreadState_Get: no
current thread" and python crashes.

Any suggestions? Configuration below:


CONFIGURE:

$ ./waf configure
--libdir=/users/Nick/Library/Enthought/Canopy_64bit/User/lib
--prefix=~/Library/Enthought/Canopy_64bit/User


CONFIGURE OUTPUT:
  ./options()

Setting top to                           :
/Users/Nick/Downloads/py2cairo-1.10.0

Setting out to                           :
/Users/Nick/Downloads/py2cairo-1.10.0/build_directory

  ./configure()

Checking for 'gcc' (c compiler)          : ok

Checking for program python              :
/Users/Nick/Library/Enthought/Canopy_64bit/User/bin/python

Checking for python version              : (2, 7, 6, 'final', 0)

Checking for library python2.7           : yes

Checking for program python2.7-config    : /opt/local/bin/python2.7-config

Checking for header Python.h             : yes

Checking for program pkg-config          : /opt/local/bin/pkg-config

Checking for 'cairo' >= 1.10.0           : yes

Configuration:

PREFIX                                   :
/Users/Nick/Library/Enthought/Canopy_64bit/User

LIBDIR                                   :
/users/Nick/Library/Enthought/Canopy_64bit/User/lib

'configure' finished successfully (3.032s)

DN51ss1e:py2cairo-1.10.0 Nick$ ./waf build

  ./options()

Waf: Entering directory
`/Users/Nick/Downloads/py2cairo-1.10.0/build_directory'

  ./build()

  src/build()

[1/9] subst: pycairo.pc.in -> pycairo.pc

Waf: Leaving directory
`/Users/Nick/Downloads/py2cairo-1.10.0/build_directory'

'build' finished successfully (0.094s)

INSTALL OUTPUT:

  ./options()

Waf: Entering directory
`/Users/Nick/Downloads/py2cairo-1.10.0/build_directory'

  ./build()

  src/build()

+ install
/Users/Nick/Library/Enthought/Canopy_64bit/User/include/pycairo/pycairo.h
(from src/pycairo.h)

+ install
/users/Nick/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/cairo/_cairo.so
(from build_directory/src/_cairo.so)

+ install
/users/Nick/Library/Enthought/Canopy_64bit/User/lib/pkgconfig/pycairo.pc
(from pycairo.pc)

Waf: Leaving directory
`/Users/Nick/Downloads/py2cairo-1.10.0/build_directory'

+ install
/users/Nick/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/cairo/__init__.py
(from src/__init__.py)

+ byte compiling
'/users/Nick/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/cairo/__init__.py'

'install' finished successfully (0.777s)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150108/68d4dfb9/attachment.html>


More information about the cairo mailing list