python 2.7 - "import wx" fails in PySCripter -
i have 64-bit windows 7 os installed arcgis 64-bit python 2.7. installed 64 pyscripter editor. when import wx python 2.7 ide no isse - this:
python 2.7.8 (default, jun 30 2014, 16:08:48) [msc v.1500 64 bit (amd64)] on win32 type "copyright", "credits" or "license()" more information. >>> ================================ restart ================================ >>> >>> import wx >>> > when import pyscripter - fails this:
*** python 2.7.8 (default, jun 30 2014, 16:08:48) [msc v.1500 64 bit (amd64)] on win32. *** >>> import wx traceback (most recent call last): file "<interactive input>", line 1, in <module> file "c:\python27\arcgisx6410.3\lib\site-packages\wx-3.0-msw\wx\__init__.py", line 45, in <module> wx._core import * file "c:\python27\arcgisx6410.3\lib\site-packages\wx-3.0-msw\wx\_core.py", line 4, in <module> import _core_ importerror: dll load failed: %1 not valid win32 application. >>> anybody can me this?
i think installing wrong location. when install python packages, installed c:\python27\lib\site-packages. somehow installed wxpython c:\python27\arcgisx6410.3\lib\site-packages. uninstall wxpython , when re-run wxpython installer, specify install it.
i should note wxpython works fine me on windows 7 when installed in correct location. can import wx both python's interpreter , in pyscripter.
Comments
Post a Comment