Orange Forum • View topic - How to use orange as a Python module under OS X?

How to use orange as a Python module under OS X?

A place to ask questions about methods in Orange and how they are used and other general support.

Postby sam » Fri Jun 12, 2009 8:49

Mitar wrote:Which version have you downloaded? Please try with both, stable and daily-build, preferably with daily-build.

Can you open Console application (it comes with Mac OS X) after Orange fails to start and under "Console Messages" you will see if Orange returned any error and reason why it exited. Can you copy/paste it here?




this is what it says when i tried opening the app directly from the mounted dmg file (daily-build)

raceback (most recent call last):
File "/Volumes/Orange/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/OrangeCanvas/orngCanvas.pyw", line 6, in <module>
import sys, os, cPickle, orngRegistry, orngEnviron, OWGUI
File "/Volumes/Orange/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/OrangeCanvas/orngRegistry.py", line 5, in <module>
from orngSignalManager import OutputSignal, InputSignal
File "/Volumes/Orange/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/OrangeCanvas/orngSignalManager.py", line 7, in <module>
import orange
ImportError: dlopen(/Volumes/Orange/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/orange.so, 2): Symbol not found: _fputs$UNIX2003
Referenced from: /Volumes/Orange/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/orange.so
Expected in: /usr/lib/libSystem.B.dylib



and this when i tried it after "installing" it in the applications folder

Traceback (most recent call last):
File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/OrangeCanvas/orngCanvas.pyw", line 6, in <module>
import sys, os, cPickle, orngRegistry, orngEnviron, OWGUI
File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/OrangeCanvas/orngRegistry.py", line 5, in <module>
from orngSignalManager import OutputSignal, InputSignal
File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/OrangeCanvas/orngSignalManager.py", line 7, in <module>
import orange
ImportError: dlopen(/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/orange.so, 2): Symbol not found: _fputs$UNIX2003
Referenced from: /Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/orange.so
Expected in: /usr/lib/libSystem.B.dylib


Anything missing?

Postby Mitar » Sun Jun 14, 2009 8:58

Please try a new version of bundle from our download page which has a fix for this regression. Please report back in any case - whether it works for you or not.

Thanks for reporting this.

Postby Guest » Sun Jun 14, 2009 10:01

Mitar wrote:Please try a new version of bundle from our download page which has a fix for this regression. Please report back in any case - whether it works for you or not.

Thanks for reporting this.


here is the error message with the new stable version

File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/orange/OrangeCanvas/orngCanvas.pyw", line 5, in <module>
from qt import *
ImportError: dlopen(/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/qt.so, 2): Symbol not found: _AECreateDesc
Referenced from: /Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/../../../../../../../Resources/Qt3/lib/libqt.3.dylib
Expected in: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices

Postby Mitar » Sun Jun 14, 2009 10:27

What about the daily snapshot version?

Postby Mitar » Sun Jun 14, 2009 10:41

Can you open a Terminal application and copy me the output of this command:

nm /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices | grep _AECreateDesc

(Maybe there will be no output.)

You use PPC or Intel Mac?

Postby Mitar » Wed Jul 15, 2009 23:05

So daily snapshot version does work on 10.4. And for old stable version it seems it will be unsupported on 10.4 as required libraries do not compile properly on 10.5 system with 10.4 compatibility. And we do not have any 10.4 system around anymore.

So please use daily snapshot version. Stable version is heavily outdated.

Previous

Return to Questions & Support