Hi list. I seems to have built and installed a snapshot build of phoenix (wxPython_Phoenix-3.0.1.dev75841) without any errors that I noticed. When I fire up python (3.3) and import wx, I get the following error:
Python 3.3.2 (default, Dec 26 2013, 15:57:09)
[GCC 4.5.4] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import wx
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python3.3/site-packages/wx/init.py”, line 17, in
from wx.core import *
File “/usr/lib/python3.3/site-packages/wx/core.py”, line 6, in
from ._core import *
ImportError: dynamic module does not define init function (PyInit_siplib)
I’m sure I must have missed something simple, this seems far too basic an error to be anything subtle.
Hi list. I seems to have built and installed a snapshot build of phoenix
(wxPython_Phoenix-3.0.1.dev75841) without any errors that I noticed. When I
fire up python (3.3) and import wx, I get the following error:Python 3.3.2
(default, Dec 26 2013, 15:57:09) [GCC 4.5.4] on linuxType "help",
"copyright", "credits" or "license" for more information.>>> import
wxTraceback (most recent call last): File "<stdin>", line 1, in <module>
File "/usr/lib/python3.3/site-packages/wx/__init__.py", line 17, in
<module> from wx.core import * File "/usr/lib/python3.3/site-
packages/wx/core.py", line 6, in <module> from ._core import
*ImportError: dynamic module does not define init function
(PyInit_siplib)>>>
I'm sure I must have missed something simple, this seems far too basic an
error to be anything subtle.Mike
I too have this issue on Linux Mint. I was so happy when I got Phoenix to
build (ia32libs issue), and then I got the exact same problem. If I start
python3 while in the Phoenix directory (in which the wx directory is
contained), import wx does work. It has to be something that is not being
installed, the wrong library getting loaded or a path thing, I just don't
know how to run through the possibilities.
Hi list. I seems to have built and installed a snapshot build of phoenix
(wxPython_Phoenix-3.0.1.dev75841) without any errors that I noticed.
What build command(s) did you use?
When I fire up python (3.3) and import wx, I get the following error:
Python 3.3.2 (default, Dec 26 2013, 15:57:09)
[GCC 4.5.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.3/site-packages/wx/__init__.py", line 17, in
<module>
from wx.core import *
File "/usr/lib/python3.3/site-packages/wx/core.py", line 6, in <module>
from ._core import *
ImportError: dynamic module does not define init function
(PyInit_siplib)
>>>
I'm sure I must have missed something simple, this seems far too basic
an error to be anything subtle.
Let's see if we can figure out if it was a build problem or an install problem. So first remove everything from /usr/lib/python3.3/site-packages/wx, and then verify that there is no other wx by running:
python3.3 -c "import wx; print(wx.version())"
You should get an ImportError. Next, try to use Phoenix from the build folder and see if it works:
cd /path/to/your/Phoenix
PYTHONPATH=$PWD python3.3 samples/simple/hello.py
'build' finished successfully (5m22.245s)
------------ BUILD FINISHED ------------
To use wxPython from the build folder (without installing):
- Set your PYTHONPATH variable to /tmp/pip-rawcle-build.
- You may also need to set your (DY)LD_LIBRARY_PATH to /tmp/pip-rawcle-build/build/wxbld/lib, or wherever the wxWidgets libs have been installed.
Finished command: build_py (5m23.167s)
Finished command: build (7m55.849s)
Done!
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
/usr/bin/python3 -u build.py build
warning: no previously-included files matching '.svn' found under directory 'wx'
warning: no previously-included files matching '.git' found under directory 'wx'
warning: no previously-included files matching '*.pyc' found under directory 'wx'
warning: no previously-included files matching '__pycache__' found under directory 'wx'
building 'siplib' extension
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wno-unused-result -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -o build/lib.linux-x86_64-3.3/wx/siplib.cpython-33m.so
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_baseu_net-3.0.so.0 -> libwx_baseu_net-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_richtext-3.0.so.0 -> libwx_gtk2u_richtext-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_media-3.0.so.0 -> libwx_gtk2u_media-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_baseu_xml-3.0.so -> libwx_baseu_xml-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_baseu-3.0.so.0 -> libwx_baseu-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_ribbon-3.0.so.0 -> libwx_gtk2u_ribbon-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_adv-3.0.so -> libwx_gtk2u_adv-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_baseu_xml-3.0.so.0 -> libwx_baseu_xml-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_html-3.0.so.0 -> libwx_gtk2u_html-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_xrc-3.0.so -> libwx_gtk2u_xrc-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_webview-3.0.so.0 -> libwx_gtk2u_webview-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_core-3.0.so.0 -> libwx_gtk2u_core-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_html-3.0.so -> libwx_gtk2u_html-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_baseu_net-3.0.so -> libwx_baseu_net-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_ribbon-3.0.so -> libwx_gtk2u_ribbon-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_adv-3.0.so.0 -> libwx_gtk2u_adv-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_stc-3.0.so -> libwx_gtk2u_stc-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_core-3.0.so -> libwx_gtk2u_core-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_xrc-3.0.so.0 -> libwx_gtk2u_xrc-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_gl-3.0.so -> libwx_gtk2u_gl-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_gl-3.0.so.0 -> libwx_gtk2u_gl-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_propgrid-3.0.so.0 -> libwx_gtk2u_propgrid-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_richtext-3.0.so -> libwx_gtk2u_richtext-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_media-3.0.so -> libwx_gtk2u_media-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_baseu-3.0.so -> libwx_baseu-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_aui-3.0.so.0 -> libwx_gtk2u_aui-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_webview-3.0.so -> libwx_gtk2u_webview-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_propgrid-3.0.so -> libwx_gtk2u_propgrid-3.0.so.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_stc-3.0.so.0 -> libwx_gtk2u_stc-3.0.so.0.1.0
linking /usr/local/lib/python3.3/dist-packages/wx/libwx_gtk2u_aui-3.0.so -> libwx_gtk2u_aui-3.0.so.0
Installing pyshell script to /usr/local/bin
Installing helpviewer script to /usr/local/bin
Installing img2py script to /usr/local/bin
Installing img2png script to /usr/local/bin
Installing pyslices script to /usr/local/bin
Installing pyslicesshell script to /usr/local/bin
Installing pycrust script to /usr/local/bin
Installing img2xpm script to /usr/local/bin
Installing pywxrc script to /usr/local/bin
четверг, 13 февраля 2014 г., 17:14:43 UTC+4 пользователь allabo...@gmail.com написал:
Python 3.3.2 (default, Dec 26 2013, 15:57:09)
[GCC 4.5.4] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import wx
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python3.3/site-packages/wx/init.py”, line 17, in
from wx.core import *
File “/usr/lib/python3.3/site-packages/wx/core.py”, line 6, in
from ._core import *
ImportError: dynamic module does not define init function (PyInit_siplib)
I’m sure I must have missed something simple, this seems far too basic an error to be anything subtle.
Mike
Hi list. I seems to have built and installed a snapshot build of phoenix (wxPython_Phoenix-3.0.1.dev75841) without any errors that I noticed. When I fire up python (3.3) and import wx, I get the following error: