Vista 64 + Python2.5 + wxpython 28 issue

Discussion in 'Python' started by simonroses@granisla.com, Jun 28, 2007.

  1. Guest

    Hello Guys,

    I have installed python 2.5 (AMD64) on Vista (64), also installed wx 2.8
    but I'm getting this error:

    """"
    Traceback (most recent call last):
    File "mymodule.py", line 39, in <module>
    import wx
    File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py",
    line 4
    5, in <module>
    from wx._core import *
    File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
    line 4, i
    n <module>
    import _core_
    ImportError: DLL load failed with error code 193
    """

    I have set python.exe to run under admin but that do not fix the problem.

    Any ideas ?

    Thanks!

    Sincerely,

    SRF
     
    , Jun 28, 2007
    #1
    1. Advertising

  2. > I have installed python 2.5 (AMD64) on Vista (64), also installed wx 2.8
    > but I'm getting this error:
    >
    > """"
    > Traceback (most recent call last):
    > File "mymodule.py", line 39, in <module>
    > import wx
    > File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py",
    > line 4
    > 5, in <module>
    > from wx._core import *
    > File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
    > line 4, i
    > n <module>
    > import _core_
    > ImportError: DLL load failed with error code 193
    > """
    >
    > I have set python.exe to run under admin but that do not fix the problem.
    >
    > Any ideas ?


    193 means ERROR_BAD_EXE_FORMAT. Could it be that you are using a
    32-bit extension DLL? How precisely did you "install" wx 2.8? Did
    you rebuild it from source?

    Regards,
    Martin
     
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=, Jun 28, 2007
    #2
    1. Advertising

  3. Hello Martin,

    I installed wxpython 2.8 using the installer
    (wxPython2.8-win32-unicode-2.8.4.0-py25.ex), yeah I assume is the 32 bits
    version.

    Is there any 64 version installer or do I need to build myself ?

    Thanks,

    SRF

    -----Original Message-----
    From: python-list-bounces+simonroses=
    [mailto:python-list-bounces+simonroses=] On Behalf Of
    "Martin v. Löwis"
    Sent: jueves, 28 de junio de 2007 22:08
    To:
    Subject: Re: Vista 64 + Python2.5 + wxpython 28 issue

    > I have installed python 2.5 (AMD64) on Vista (64), also installed wx 2.8
    > but I'm getting this error:
    >
    > """"
    > Traceback (most recent call last):
    > File "mymodule.py", line 39, in <module>
    > import wx
    > File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py",
    > line 4
    > 5, in <module>
    > from wx._core import *
    > File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
    > line 4, i
    > n <module>
    > import _core_
    > ImportError: DLL load failed with error code 193
    > """
    >
    > I have set python.exe to run under admin but that do not fix the problem.
    >
    > Any ideas ?


    193 means ERROR_BAD_EXE_FORMAT. Could it be that you are using a
    32-bit extension DLL? How precisely did you "install" wx 2.8? Did
    you rebuild it from source?

    Regards,
    Martin
    --
    http://mail.python.org/mailman/listinfo/python-list
     
    Simon Roses Femerling, Jun 28, 2007
    #3
  4. > Is there any 64 version installer or do I need to build myself ?

    There are hardly AMD64 versions of *anything* but the base Python
    distribution. I strongly advise to use the 32-bit version on AMD64
    (in fact, I see little reason to run Win64 at all unless you have
    more that 4GiB in the box, or unless you are developing a software
    product that you explicitly target for Win64).

    If you absolutely need to run 64-bit code, be prepared to compile
    everything for yourself, and be prepared that it won't work out
    of the box, and cost you many person days to fix and debug. Never
    forget to feed back the fixes you make to the respective authors
    of the open source software.

    Notice that you won't just need a 64-bit version of wxpython,
    but also such versions of all underlying libraries wxpython
    happens to be build on.

    Regards,
    Martin
     
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=, Jun 28, 2007
    #4
  5. Hello Martin,

    Thanks for your reply.

    There was no need for me to use 64 so I have switched back to 32 and works
    fine.

    Python is not ready for the 64 world yet ;)

    Sincerely,

    SRF

    -----Original Message-----
    From: "Martin v. Löwis" [mailto:]
    Sent: jueves, 28 de junio de 2007 23:25
    To: Simon Roses Femerling
    Cc:
    Subject: Re: Vista 64 + Python2.5 + wxpython 28 issue

    > Is there any 64 version installer or do I need to build myself ?


    There are hardly AMD64 versions of *anything* but the base Python
    distribution. I strongly advise to use the 32-bit version on AMD64
    (in fact, I see little reason to run Win64 at all unless you have
    more that 4GiB in the box, or unless you are developing a software
    product that you explicitly target for Win64).

    If you absolutely need to run 64-bit code, be prepared to compile
    everything for yourself, and be prepared that it won't work out
    of the box, and cost you many person days to fix and debug. Never
    forget to feed back the fixes you make to the respective authors
    of the open source software.

    Notice that you won't just need a 64-bit version of wxpython,
    but also such versions of all underlying libraries wxpython
    happens to be build on.

    Regards,
    Martin
     
    Simon Roses Femerling, Jun 29, 2007
    #5
  6. > There was no need for me to use 64 so I have switched back to 32 and works
    > fine.
    >
    > Python is not ready for the 64 world yet ;)


    It's a matter of standpoint. 64 bit is not ready for the world, yet.

    Regards,
    Martin
     
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=, Jun 29, 2007
    #6
  7. On Friday 29 June 2007, Martin v. Löwis wrote:
    > > There was no need for me to use 64 so I have switched back to 32 and
    > > works fine.
    > >
    > > Python is not ready for the 64 world yet ;)

    >
    > It's a matter of standpoint. 64 bit is not ready for the world, yet.
    >
    > Regards,
    > Martin


    I think you mean 64bit windows. 64bit linux has been working great. I use
    64bit python and zope every day and they work very well and the ability to
    use more memory then 4G is very handy for my tests.
     
    William Heymann, Jun 30, 2007
    #7
  8. Jorgen Grahn Guest

    On Fri, 29 Jun 2007 21:15:00 -0600, William Heymann <> wrote:
    > On Friday 29 June 2007, Martin v. Löwis wrote:
    >> > There was no need for me to use 64 so I have switched back to 32 and
    >> > works fine.
    >> >
    >> > Python is not ready for the 64 world yet ;)

    >>
    >> It's a matter of standpoint. 64 bit is not ready for the world, yet.

    >
    > I think you mean 64bit windows. 64bit linux has been working great.


    Put differently: when everybody has a C compiler and the C source code
    for things tends to be available, any change to the CPU architecture
    is mostly painless.

    /Jorgen

    --
    // Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
    \X/ snipabacken.dyndns.org> R'lyeh wgah'nagl fhtagn!
     
    Jorgen Grahn, Jul 3, 2007
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xavier
    Replies:
    0
    Views:
    439
    Xavier
    Aug 6, 2003
  2. Skip Montanaro
    Replies:
    1
    Views:
    452
    Thomas Heller
    Aug 7, 2003
  3. snacktime
    Replies:
    13
    Views:
    579
    Dan Sommers
    Feb 22, 2005
  4. Uwe Mayer

    changing from python2.3 to python2.4

    Uwe Mayer, Apr 8, 2005, in forum: Python
    Replies:
    1
    Views:
    314
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Apr 9, 2005
  5. Ksenia Marasanova
    Replies:
    2
    Views:
    369
    Mike Meyer
    Nov 17, 2005
Loading...

Share This Page