Re: wont run on win 7 64bit
John Pote <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
Carsten,
I removed my PYTHONPATH and as expected import wx fails (ImportError: No module named wx). I 'installed' wxPython ver 2.8 by copying it from my old XP box. (wxPython ver 2.8 is not available at www.wxpython.org - only ver 3.0 is) It is located at "D:\Apps\Python\2_7\Lib\site-packages\wx-2.8-msw-unicode".
So I moved up the wx and wxPython subdirectories to ...\ site-packages directory. "import wx" now starts to run but fails with the same exception as before,
>>python
Python 2.7.7 (default, Jun 1 2014, 14:21:57) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Apps\Python\2_7\Lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py", line 45, in <module>
from wx._core import *
File "D:\Apps\Python\2_7\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 4, in <module>
import _core_
ImportError: DLL load failed: %1 is not a valid Win32 application.
>>>
The problem is the "_core_.pyd" file in ... \site-packages\wx. Could the problem be it was (presumably) compiled for a 32 bit XP box and I've copied it to my Win7 64 bit box? If that is the problem them I'll have to get a copy of wxPython for 64 bit Win7. Any ideas where this may be found?
Thanks for the help,
John
-----Original Message-----
From: Carsten Grohmann [mailto:[email protected]]
Sent: 22 July 2014 05:45
To: John Pote
Cc: wxglade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [wxGlade] wont run on win 7 64bit
Hi John,
Am 21.07.2014 11:56 schrieb John Pote <[email protected]>:
> So I removed the SAE version and downloaded "wxGlade-0.6.8.zip",
> extracted all the files and put them in D:\Apps\wxGlade-0.6.8, added
> "D:\Apps\Python\2_7\Lib\site-packages\wx-2.8-msw-unicode" to
> PYTHONPATH.
[..]
> "D:\Apps\Python\2_7\Lib\site-packages\wx-2.8-msw-unicode\wx\__init__.p
> y", line 45, in <module> from wx._core import * File
> "D:\Apps\Python\2_7\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
> line 4, in <module> import _core_ ImportError: DLL load failed: %1 is
> not a valid Win32 application. ---------
Extending the PYTHONPATH shouldn't be necessary. Please try two test:
1) Open a command window, start your python (resp. python2) interpreter and call "import wx". I expect this step runs fine without trouble.
2) Open a command window, change into th wxGlade installation directory and execute python wxglade.py and report the result.
Don't set PYTHONPATH in both cases.
Regards,
Carsten
THIS MESSAGE IS CONFIDENTIAL AND/OR MAY BE PRIVILEGED INFORMATION, and is intended for a particular recipient(s) only. If you have received this message by mistake please notify us by return email then delete it from your system. This message has not been encrypted. It may therefore be liable to compromise. It is your responsibility to scan this message for viruses. Viruses and compromises of security are inherent risks in relation to email. To the extent permitted by law we do not accept any liability for any virus infection and/or external compromise of security in relation to transmissions by email. Any personal views expressed in this message are not necessarily the views of Integrated System Technologies Ltd, its directors or employees. Please note that contracts may NOT be concluded
on behalf of Integrated System Technologies Ltd by email
PATENTS: IST considers innovation as key to LED technology development and invests heavily in R&D to keep our customers ahead of their competitors. Our growing intellectual property portfolio enables the next generation of LED lighting to occur and already has key patents granted worldwide as follows: UK Patent No(s): 2,499,220; 2,340,215; 2,369,730; 2,408,315; 1,433,363; 0720488.6; 0814255.6; 2433091; 2,491,550 - CHINA Patent No: Int Pat App PCT/GB2009/001923, 200980139063.2; CN102177395A - JAPAN Patent No: 4445082 - US Patent No(s): 6,422,718; 6,963,175; 11/912 098; 12/738 750; PCT/GB2009/001923; 7 923 935, US-2011-0140633-A1; 13/351 001 - AUSTRALIA Patent No(s): 2002321596; 2009278992; 2012200252 - CZECH REPUBLIC Patent No: 1,433,363 - DENMARK Patent No: 1,433,363 - FRANCE Patent No:
1,433,363 - GERMANY Patent No: 602 31 418.6 - IRELAND Patent No: 1,433,363 - ITALY Patent No: 1,433,363 - LUXEMBOURG Patent No: 1,433,363 - MONACO Patent No: 1,433,363 - SWITZERLAND Patent No: 1,433,363 - THE NETHERLANDS Patent No: 1,433,363 - SWEDEN Patent No: 1,433,363 - EUROPEAN Patent Application No(s): 05735894.7; 08750475.9; 2324280; Euro Pat App 2 218 304; 12151464.0; PCT Patent Application No: PCT/GB2009/001923 - US Patent No. 8 659 237; 8 664 882
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds