Giter Site home page Giter Site logo

Comments (4)

kliment avatar kliment commented on July 19, 2024

Thank you! Can you update the readme file and send me a pull request?

Kliment

On 10/05/2011 04:29 AM, Al Jigen Billings wrote:

The Readme says that you don't need to worry about 32 vs 64-bit mode on OS X Lion. This is incorrect. If the user runs it in 64-bit mode, WX gives an error (and this is with the Carbon version):

python ./pronterface.py
WX is not installed. This program requires WX to run.
Traceback (most recent call last):
File "./pronterface.py", line 13, in
import wx
File "/usr/local/lib/wxPython-2.9.2.4/lib/python2.7/site-packages/wx-2.9.2-osx_carbon/wx/init.py", line 45, in
from wx._core import *
File "/usr/local/lib/wxPython-2.9.2.4/lib/python2.7/site-packages/wx-2.9.2-osx_carbon/wx/_core.py", line 4, in
import core
ImportError: /usr/local/lib/wxPython-2.9.2.4/lib/python2.7/site-packages/wx-2.9.2-osx_carbon/wx/core.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)


If the following is used and pronterface is run again, the UI comes up:

export VERSIONER_PYTHON_PREFER_32_BIT=yes

from printrun.

kliment avatar kliment commented on July 19, 2024

Fixed.

from printrun.

CaptainChemist avatar CaptainChemist commented on July 19, 2024

I am also having this issue running OS X Lion, Apple's Python 2.7.2, wxPython 2.9.2.4 carbon. Typing this in terminal: export VERSIONER_PYTHON_PREFER_32_BIT=yes doesn't seem to fix anything. Thanks a lot for your help!

$ python ./pronterface.py
WX is not installed. This program requires WX to run.
Traceback (most recent call last):
File "./pronterface.py", line 14, in
import wx
File "/usr/local/lib/wxPython-2.9.2.4/lib/python2.7/site-packages/wx-2.9.2-osx_carbon/wx/init.py", line 45, in
from wx._core import *
File "/usr/local/lib/wxPython-2.9.2.4/lib/python2.7/site-packages/wx-2.9.2-osx_carbon/wx/_core.py", line 4, in
import core
ImportError: dlopen(/usr/local/lib/wxPython-2.9.2.4/lib/python2.7/site-packages/wx-2.9.2-osx_carbon/wx/core.so, 2): no suitable image found. Did find:
/usr/local/lib/wxPython-2.9.2.4/lib/python2.7/site-packages/wx-2.9.2-osx_carbon/wx/core.so: no matching architecture in universal wrapper

edit- I found a workaround. If I load it using: $ python2.7-32 pronterface.py It works fine.

from printrun.

evilB avatar evilB commented on July 19, 2024

I've had similar problems with the same error codes on the following system:

Mac OS X 10.6.8

export VERSIONER_PYTHON_PREFER_32_BIT=yes
instead of defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
solved my issues

from printrun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.