Installing py2cairo: PyThreadState_Get: no current thread

Nick Eubank <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAFWQgO=6L_nuPCjWJVDHdRJ=OwBUtemVEnn7=cuAn7zY3KebKQ@mail.gmail.com>
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)

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.