Re: 4.0.0b2 -- undefined symbol: _Py_ZeroStruct
mattip <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday, 28 November 2017 23:36:44 UTC+2, Erik Johnson wrote: > > I'm trying to update my Python package to (finally) use Python 3+, coming > from 2.7. I wasn't the one who set up our environment originally, but by > word of mouth I've heard we used the apt-get approach to install wxPython > previously. > > ... > ImportError: /usr/local/lib/python3.5/dist-packages/wx/_ > core.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: _Py_ZeroStruct > > > There is no such beast as _Py_ZeroStruct in Python3, which means your so was built incorrectly. You must somehow be getting the python2 headers into your build. Maybe you have an explicit INCLUDE path in your environment at the time you invoke the compiler, either from your shell or from some python startup script? Sometimes when this happens to me I force an error into the header files, "#error crash and burn" so that building the so will fail, you would need to find all the boolobject.h Python2 headers in your system and add that line to them -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.