[Pyxpcomext] ImportError with _Py_ZeroStruct in C extension
wcauchois at gmail.com
Wed Feb 10 17:02:10 PST 2010
That works perfectly, thank you so much Todd!!
I actually tried this before, but I didn't know you had to export PYTHONHOME
and LD_LIBRARY_PATH like that, so it didn't work for me.
This is great. Thanks again.
On Mon, Feb 8, 2010 at 5:36 PM, Todd Whiteman <twhitema at yahoo.com.au> wrote:
> Try building numpy with the actual Python in the PyhtonExt extension, i.e.
> use the following numpy build/install steps:
> pythonext at mozdev.org/python
> export LD_LIBRARY_PATH=$PYTHONHOME/lib
> cd numpy-src
> chmod 700 $PYTHONHOME/bin/python2.6
> $PYTHONHOME/bin/python2.6 setup.py build
> $PYTHONHOME/bin/python2.6 setup.py install
> Which will install numpy into the site-packages dir:
> Does that one work any differently?
> On 10-02-08 04:26 PM, William Cauchois wrote:
>> Its interesting that you're having the same issue as me, with a
>> completely different module.
>> I just tried running my software on another system, and it worked
>> On Mon, Feb 8, 2010 at 2:45 AM, Elias Showk <elias.showk at iscpif.fr
>> <mailto:elias.showk at iscpif.fr>> wrote:
>> Hi Todd and Bill,
>> I experience the same problems, since my previous thread
>> Following Todd's advice to import python packages with extensions
>> (numpy, bssdb3) into the xulrunner+python app (by the way,
>> http://github.com/jbilcke/tinasoft.desktop), I used a UCS2 Python
>> 2.6.4 (in fact an ActivePython-184.108.40.206-linux-x86_64).
>> Although it resolved the original issues (undefined _Py_ZeroStruct
>> from import bsddb3 and undefined Py_Unicode from import numpy), I
>> still have another import error from numpy :
>> undefined symbol: _Py_ZeroStruct"
>> Finally, I found no 32-bit builts into the entire source code
>> directory (nothing returned by $ find . | xargs file | grep ".*: .*
>> If anyone has an idea, or an advice, it could help a lot.
>> If I found something, I'll post it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pyxpcomext