Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
wxpython on osx
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kim  
View profile  
 More options Aug 7 2012, 8:34 pm
From: Kim <ksa...@gmail.com>
Date: Tue, 7 Aug 2012 17:34:35 -0700 (PDT)
Local: Tues, Aug 7 2012 8:34 pm
Subject: wxpython on osx

Hi,

Trying to get wxpython working on osx 10.7.4

Demo's work fine when launched from the icon, but if I make a script in
gedit and doubleclick, it just opens in gedit.

If I run from terminal I get this:

arch -i386 /usr/bin/python wx1.py

Traceback (most recent call last):
  File "wx1.py", line 5, in <module>
    import wx
  File
"/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2. 8-mac-unicode/wx/__init__.py",
line 45, in <module>
    from wx._core import *
  File
"/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2. 8-mac-unicode/wx/_core.py",
line 4, in <module>
    import _core_
ImportError:
/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8 -mac-unicode/wx/_core_.so:
no appropriate 64-bit architecture (see "man python" for running in 32-bit
mode)

Please help. Sorry for noobness.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Dunn  
View profile  
 More options Aug 8 2012, 1:44 pm
From: Robin Dunn <ro...@alldunn.com>
Date: Wed, 08 Aug 2012 10:44:41 -0700
Local: Wed, Aug 8 2012 1:44 pm
Subject: Re: [wxPython-users] wxpython on osx
On 8/7/12 5:34 PM, Kim wrote:

> Hi,

> Trying to get wxpython working on osx 10.7.4

> Demo's work fine when launched from the icon, but if I make a script in
> gedit and doubleclick, it just opens in gedit.

Because .py files are considered documents by default, so opening them
causes the system to open the associated application and feed the
document to it.  There are ways around that, but my preference is to
just use the command line while in development, and then when it's ready
to deploy you can create a real application bundle for it using py2app.

Did you try the things shown in the python man page (run "man python")
for forcing it to run in 32-bit mode?  I thought they were still
supposed to work for Apple's Python.

OTOH, you will probably have better luck with the Python from python.org
instead of Apple's python in /usr/bin.  The python.org version will
install in a different location so it won't stomp on Apple's Python, and
they also provide a "python-32" command that will force it to run the
32-bit architecture.

Finally, a good alternative would be to install the 2.9.4.0 cocoa port
of wxPython instead of the 2.8.12.1 carbon port.  The cocoa port is able
to include the 64-bit architecture in the binaries and so you don't have
to mess with trying to force it to run only in 32-bit.

--
Robin Dunn
Software Craftsman
http://wxPython.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kim  
View profile  
 More options Aug 9 2012, 5:20 am
From: Kim <ksa...@gmail.com>
Date: Thu, 9 Aug 2012 02:20:31 -0700 (PDT)
Local: Thurs, Aug 9 2012 5:20 am
Subject: Re: [wxPython-users] wxpython on osx

Thanks for the info, worked perfectly


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wolfgang Keller  
View profile  
 More options Aug 12 2012, 3:08 pm
From: Wolfgang Keller <felip...@gmx.net>
Date: Sun, 12 Aug 2012 21:08:16 +0200
Local: Sun, Aug 12 2012 3:08 pm
Subject: Re: [wxPython-users] wxpython on osx

> Finally, a good alternative would be to install the 2.9.4.0 cocoa
> port of wxPython instead of the 2.8.12.1 carbon port.  The cocoa port
> is able to include the 64-bit architecture in the binaries and so you
> don't have to mess with trying to force it to run only in 32-bit.

How usable is wxPython 2.9.x already?

TIA,

Sincerely,

Wolfgang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Dunn  
View profile  
 More options Aug 13 2012, 2:47 am
From: Robin Dunn <ro...@alldunn.com>
Date: Sun, 12 Aug 2012 23:47:48 -0700
Local: Mon, Aug 13 2012 2:47 am
Subject: Re: [wxPython-users] wxpython on osx
On 8/12/12 12:08 PM, Wolfgang Keller wrote:

>> Finally, a good alternative would be to install the 2.9.4.0 cocoa
>> port of wxPython instead of the 2.8.12.1 carbon port.  The cocoa port
>> is able to include the 64-bit architecture in the binaries and so you
>> don't have to mess with trying to force it to run only in 32-bit.

> How usable is wxPython 2.9.x already?

Very.  Don't let the "development" or "unstable" tags scare you away.
It is much more capable and probably less buggy than 2.8.12.  "Unstable"
in this case only means that some incompatible changes are allowed to
happen, but in practice it doesn't happen very often.

--
Robin Dunn
Software Craftsman
http://wxPython.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »