Thread: [Orbit-python-list] import CORBA question
Status: Inactive
Brought to you by:
tack
From: Gil H. <gi...@sy...> - 2002-07-26 20:12:14
|
Hi, I downloaded and installed orbit-python as per the instructions (as far as I know :) When I run python and use the command import CORBA I get an error telling my that it cannot find the module, as below: >>> import CORBA Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: No module named CORBA >>>=20 Can anyone tell me what other package needs to be installed? Thanks, Gil |
From: Christian R. <ki...@as...> - 2002-07-26 22:41:59
|
On Fri, Jul 26, 2002 at 04:11:29PM -0400, Gil Hauer wrote: > > When I run python and use the command > import CORBA > > I get an error telling my that it cannot find the module, as below: > > >>> import CORBA > Traceback (innermost last): > File "<stdin>", line 1, in ? > ImportError: No module named CORBA > >>> > > Can anyone tell me what other package needs to be installed? Running that through python -v would help us find out what package is broken. How did you install o-p; from the source, or from an RPM? Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL |
From: Gil H. <gi...@sy...> - 2002-07-29 12:37:39
|
Hi Christian, I build that package from the source tar-ball -- here is the python -v outp= ut. Thanks for the help, Gil [gilh@giantclam orbit-python-0.3.1]$ python -v # /usr/lib/python1.5/exceptions.pyc matches /usr/lib/python1.5/exceptions.p= y import exceptions # precompiled from /usr/lib/python1.5/exceptions.pyc # /usr/lib/python1.5/site.pyc matches /usr/lib/python1.5/site.py import site # precompiled from /usr/lib/python1.5/site.pyc # /usr/lib/python1.5/os.pyc matches /usr/lib/python1.5/os.py import os # precompiled from /usr/lib/python1.5/os.pyc import posix # builtin # /usr/lib/python1.5/posixpath.pyc matches /usr/lib/python1.5/posixpath.py import posixpath # precompiled from /usr/lib/python1.5/posixpath.pyc # /usr/lib/python1.5/stat.pyc matches /usr/lib/python1.5/stat.py import stat # precompiled from /usr/lib/python1.5/stat.pyc # /usr/lib/python1.5/UserDict.pyc matches /usr/lib/python1.5/UserDict.py import UserDict # precompiled from /usr/lib/python1.5/UserDict.pyc Python 1.5.2 (#1, Jul 5 2001, 03:02:19) [GCC 2.96 20000731 (Red Hat Linux= 7.1 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam import readline # dynamically loaded from /usr/lib/python1.5/lib-dynload/re= adline.so >>> import CORBA Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: No module named CORBA >>>=20 On Fri, 2002-07-26 at 18:41, Christian Reis wrote: > On Fri, Jul 26, 2002 at 04:11:29PM -0400, Gil Hauer wrote: > >=20 > > When I run python and use the command > > import CORBA > >=20 > > I get an error telling my that it cannot find the module, as below: > >=20 > > >>> import CORBA > > Traceback (innermost last): > > File "<stdin>", line 1, in ? > > ImportError: No module named CORBA > > >>>=20 > >=20 > > Can anyone tell me what other package needs to be installed? >=20 > Running that through python -v would help us find out what package is > broken. How did you install o-p; from the source, or from an RPM? >=20 > Take care, > -- > Christian Reis, Senior Engineer, Async Open Source, Brazil. > http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Orbit-python-list mailing list > Orb...@li... > https://lists.sourceforge.net/lists/listinfo/orbit-python-list |
From: Gustavo C. <gj...@in...> - 2002-07-29 10:21:52
|
On Fri, 2002-07-26 at 21:11, Gil Hauer wrote: > Hi, >=20 > I downloaded and installed orbit-python as per the instructions (as far > as I know :) >=20 > When I run python and use the command > import CORBA >=20 > I get an error telling my that it cannot find the module, as below: >=20 > >>> import CORBA > Traceback (innermost last): > File "<stdin>", line 1, in ? > ImportError: No module named CORBA > >>>=20 >=20 > Can anyone tell me what other package needs to be installed? >=20 You may need to define PYTHONPATH. Example: export PYTHONPATH=3D/opt/gnome/lib/python2.2/site-packages:/usr/lib/python2= .2/site-packages > Thanks, > Gil >=20 >=20 --=20 Gustavo Jo=E3o Alves Marques Carneiro <gj...@in...> <gu...@us...> |
From: Christian R. <ki...@as...> - 2002-07-29 13:02:36
|
On Mon, Jul 29, 2002 at 08:37:29AM -0400, Gil Hauer wrote: > Hi Christian, > > I build that package from the source tar-ball -- here is the python -v output. > > Thanks for the help, > Gil > > [gilh@giantclam orbit-python-0.3.1]$ python -v > Python 1.5.2 (#1, Jul 5 2001, 03:02:19) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > import readline # dynamically loaded from /usr/lib/python1.5/lib-dynload/readline.so > >>> import CORBA > Traceback (innermost last): > File "<stdin>", line 1, in ? > ImportError: No module named CORBA > >>> This says o-p wasn't installed into /usr/lib/python1.5/site-packages/ which is possible if it uses as a default prefix /usr/local, I now surmise. Try configure --prefix=/usr ; make ; make install instead to see if it works. And if it does, clean up /usr/local/python1.5/ If it doesn't, run strace -eopen python 2> python-log and try importing CORBA so we see where it is looking for CORBAmodule.so Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL |
From: Gil H. <gi...@sy...> - 2002-07-29 13:12:42
|
That did the trick. Thank you very much for the help! Cheers Gil On Mon, 2002-07-29 at 09:02, Christian Reis wrote: > On Mon, Jul 29, 2002 at 08:37:29AM -0400, Gil Hauer wrote: > > Hi Christian, > >=20 > > I build that package from the source tar-ball -- here is the python -v = output. > >=20 > > Thanks for the help, > > Gil > >=20 > > [gilh@giantclam orbit-python-0.3.1]$ python -v > > Python 1.5.2 (#1, Jul 5 2001, 03:02:19) [GCC 2.96 20000731 (Red Hat L= inux 7.1 2 on linux-i386 > > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > > import readline # dynamically loaded from /usr/lib/python1.5/lib-dynloa= d/readline.so > > >>> import CORBA > > Traceback (innermost last): > > File "<stdin>", line 1, in ? > > ImportError: No module named CORBA > > >>>=20 >=20 > This says o-p wasn't installed into /usr/lib/python1.5/site-packages/ > which is possible if it uses as a default prefix /usr/local, I now > surmise. >=20 > Try configure --prefix=3D/usr ; make ; make install instead to see if it > works. And if it does, clean up /usr/local/python1.5/=20 >=20 > If it doesn't, run strace -eopen python 2> python-log and try importing > CORBA so we see where it is looking for CORBAmodule.so >=20 > Take care, > -- > Christian Reis, Senior Engineer, Async Open Source, Brazil. > http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL |