[cairo] Installing py2cairo: PyThreadState_Get: no current thread
Nick Eubank
nickeubank at gmail.com
Thu Jan 8 12:45:25 PST 2015
Top lines of Crash Report (if it helps -- whole report too large for this
list):
Process: Python [29949]
Path:
/Users/USER/Library/Enthought/*/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 2.7.6 (2.7.6)
Code Type: X86-64 (Native)
Parent Process: python.noapp [29820]
Responsible: bash [29814]
User ID: 501
Date/Time: 2015-01-08 12:28:20.646 -0800
OS Version: Mac OS X 10.10.1 (14B25)
Report Version: 11
Anonymous UUID: C31616B5-ACF7-0BF8-668D-F82563980E54
Sleep/Wake UUID: FC5CB9B2-921D-4F34-A22A-63EDCED729FB
Time Awake Since Boot: 170000 seconds
Time Since Wake: 6500 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff982dc282 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff9081cb73 abort + 129
2 org.python.python 0x0000000119b54811 Py_FatalError + 49
3 org.python.python 0x0000000119b53bac PyThreadState_Get + 28
4 org.python.python 0x0000000119b5000e Py_InitModule4_64 + 62
5 _cairo.so 0x0000000111e01851 init_cairo + 657
6 org.python.python 0x00000001000e2351
_PyImport_LoadDynamicModule + 177
7 org.python.python 0x00000001000e0a4b import_submodule + 315
8 org.python.python 0x00000001000e0eea load_next + 234
9 org.python.python 0x00000001000e11e0
PyImport_ImportModuleLevel + 336
10 org.python.python 0x00000001000be5d3 builtin___import__ +
131
11 org.python.python 0x000000010000fe02 PyObject_Call + 98
12 org.python.python 0x00000001000bf7b7
PyEval_CallObjectWithKeywords + 87
13 org.python.python 0x00000001000c4c65 PyEval_EvalFrameEx +
16885
14 org.python.python 0x00000001000c8fb9 PyEval_EvalCodeEx +
2137
On Thu Jan 08 2015 at 12:32:25 PM Nick Eubank <nickeubank at gmail.com> wrote:
> 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/9506b14b/attachment.html>
More information about the cairo
mailing list