Orange Forum • View topic - error importing orange - any idea ?

error importing orange - any idea ?

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

error importing orange - any idea ?

Postby ita » Fri Jun 25, 2004 13:33

Hello - i have installed orange on linux - the compilation went fine but the following error occurs when i try to run orange programs.

Python 2.3.4 (#2, May 29 2004, 03:31:27)
[GCC 3.3.3 (Debian 20040417)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import orange
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: /mnt/hda4/home/knoppix/ORANGE/orange.so: undefined symbol: _ZTI23TDistanceMapConstructor

Any idea on how to solve this one (except reinstalling python from source).

Thanks

Postby Janez » Fri Jul 02, 2004 7:04

The problem is certainly not in Python, the missing link you refer to is a part of Orange, but it should be there. See if you have any old .px or .ppp files around (I guess they should be in source/px and source/ppp), remove them and try compiling again. (Also, don't forget to download and compile gsl library, if you don't have it already.)

Janez

same error ..

Postby Guest » Mon Jul 05, 2004 16:05

i have updated both gcc and python, retried with the last release of orange and with a cvs version (rm -rf'ed everytime before building orange again), with gsl 1.4 and 1.5, but the following error still occurs :

knoppix@ahem1:~/ORANGE$ python
Python 2.3.5a0 (#2, Jul 3 2004, 18:39:53)
[GCC 3.3.4 (Debian 1:3.3.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import orange
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: ./orange.so: undefined symbol: _ZTI23TDistanceMapConstructor

the symbol is really missing from the library :

knoppix@ahem1:~/ORANGE$ nm orange.so |grep DistanceMap
0044fe91 D DistanceMapConstructor_doc
00450e20 D DistanceMapConstructor_methods
00450d20 D DistanceMap_methods
004e1d40 B PyOrDistanceMapConstructor_Type
00450e40 D PyOrDistanceMapConstructor_Type_inh
004e1c60 B PyOrDistanceMap_Type
00450d60 D PyOrDistanceMap_Type_inh
00224830 T _Z14cc_DistanceMapP7_objectPv
002249b0 T _Z15ccn_DistanceMapP7_objectPv
002220d0 T _Z21DistanceMap_getBitmapP7_objectS0_S0_
00224b30 T _Z25cc_DistanceMapConstructorP7_objectPv
00224cb0 T _Z26ccn_DistanceMapConstructorP7_objectPv
00221b20 T _Z27DistanceMapConstructor_callP7_objectS0_S0_
00222460 T _Z28DistanceMap_getCellIntensityP7_objectS0_S0_
00221e90 T _Z32DistanceMapConstructor_getLegendP7_objectS0_
00222690 T _Z33DistanceMap_getPercentileIntervalP7_objectS0_S0_
00224a60 T _Z42DistanceMapConstructor_default_constructorP11_typeobject
U _ZN12TDistanceMap21getPercentileIntervalERKfS1_RfS2_
U _ZN23TDistanceMapConstructorC1E5GCPtrI10TSymMatrixE
U _ZN23TDistanceMapConstructorclERKfRfS2_
00245e50 W _ZN5GCPtrI7TOrangeEC1I23TDistanceMapConstructorEEPT_P11_typeobject
U _ZNK12TDistanceMap16getCellIntensityERKiS1_
U _ZNK12TDistanceMap18distanceMap2stringERKiS1_RKfS3_S3_bS1_Ri
U _ZNK23TDistanceMapConstructor9getLegendERKiS1_RKfRi
U _ZTI12TDistanceMap
U _ZTI23TDistanceMapConstructor
00423360 r _ZZN5GCPtrI7TOrangeEC1I23TDistanceMapConstructorEEPT_P11_typeobjectE19__PRETTY_FUNCTION__


any other idea ?
:?

Re: same error ..

Postby mhaberkorn » Mon Jul 12, 2004 13:27

Hi @ All,

I have the same problem with Orange 0.9.5 and also with the daily snapshot.
I'm running on Debian Sarge.
I had no problems with Orange 0.9!

Any comments would be appreciated - many thanks!

Here is the console output:
-------- cut ---------
user142@muse:~# python
Python 2.3.4 (#2, Jul 5 2004, 09:15:05)
[GCC 3.3.4 (Debian 1:3.3.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import orange
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: ./orange.so: undefined symbol: _ZTI23TDistanceMapConstructor
-------- cut ---------

Anonymous wrote:i have updated both gcc and python, retried with the last release of orange and with a cvs version (rm -rf'ed everytime before building orange again), with gsl 1.4 and 1.5, but the following error still occurs :

knoppix@ahem1:~/ORANGE$ python
Python 2.3.5a0 (#2, Jul 3 2004, 18:39:53)
[GCC 3.3.4 (Debian 1:3.3.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import orange
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: ./orange.so: undefined symbol: _ZTI23TDistanceMapConstructor

the symbol is really missing from the library :

knoppix@ahem1:~/ORANGE$ nm orange.so |grep DistanceMap
0044fe91 D DistanceMapConstructor_doc
00450e20 D DistanceMapConstructor_methods
00450d20 D DistanceMap_methods
004e1d40 B PyOrDistanceMapConstructor_Type
00450e40 D PyOrDistanceMapConstructor_Type_inh
004e1c60 B PyOrDistanceMap_Type
00450d60 D PyOrDistanceMap_Type_inh
00224830 T _Z14cc_DistanceMapP7_objectPv
002249b0 T _Z15ccn_DistanceMapP7_objectPv
002220d0 T _Z21DistanceMap_getBitmapP7_objectS0_S0_
00224b30 T _Z25cc_DistanceMapConstructorP7_objectPv
00224cb0 T _Z26ccn_DistanceMapConstructorP7_objectPv
00221b20 T _Z27DistanceMapConstructor_callP7_objectS0_S0_
00222460 T _Z28DistanceMap_getCellIntensityP7_objectS0_S0_
00221e90 T _Z32DistanceMapConstructor_getLegendP7_objectS0_
00222690 T _Z33DistanceMap_getPercentileIntervalP7_objectS0_S0_
00224a60 T _Z42DistanceMapConstructor_default_constructorP11_typeobject
U _ZN12TDistanceMap21getPercentileIntervalERKfS1_RfS2_
U _ZN23TDistanceMapConstructorC1E5GCPtrI10TSymMatrixE
U _ZN23TDistanceMapConstructorclERKfRfS2_
00245e50 W _ZN5GCPtrI7TOrangeEC1I23TDistanceMapConstructorEEPT_P11_typeobject
U _ZNK12TDistanceMap16getCellIntensityERKiS1_
U _ZNK12TDistanceMap18distanceMap2stringERKiS1_RKfS3_S3_bS1_Ri
U _ZNK23TDistanceMapConstructor9getLegendERKiS1_RKfRi
U _ZTI12TDistanceMap
U _ZTI23TDistanceMapConstructor
00423360 r _ZZN5GCPtrI7TOrangeEC1I23TDistanceMapConstructorEEPT_P11_typeobjectE19__PRETTY_FUNCTION__


any other idea ?
:?

Postby Janez » Tue Jul 13, 2004 19:54

Sorry for not replying earlier, I took a week off. It's fixed now, you can download the newest snapshot. Please tell me if you still have any problems.

Janez

it does work now

Postby Guest » Thu Jul 15, 2004 15:46

Thanks :D

(snapshot of 15/07/2004)

importing Orange .. ?

Postby Matthieu » Fri Oct 14, 2005 14:33

when I type in Python

>>> import orange

Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named orange


what should I do ?

I installed the .dmg file for macosX , Orange seems to run well in GUI mode bu in python... ? I'm running on MacOSX Tiger, on a Powermac G5..

thanks for your reply

Postby tomaz » Mon Oct 17, 2005 8:51

The .dmg "installation" that we are providing on Mac for now is not system-wide, but it is a so called "bundle application." Everything needed by the application (Python, qt and other modules are all included in this case) is packed into a directory structure named Orange.app (the icon you see and launch to use Canvas). Thus the "systemâ€


Return to Bugs



cron