> > 1. Orbit-python problem (newbie)
>
> ----------------------------------------------------------------------
>
> Subject: Orbit-python problem (newbie)
> From: "Sergio Millich" <millichs@i...>
> Date: Sun, 7 Apr 2002 17:32:27
> X-Message-Number: 1
>
> I've installed the orbit-python package as described, either by gnorpm or
> through configure-make-make-install, I have the following message when I
> run the server Python program (Chapter 20): "import CORBA ImportError:
No
> module named CORBA". Is something wrong with my environment ? I use SuSE
> Linux 7.3 and the orbit-python package did not come with the
distribution.
> Can someone help? Thanks in advance.
>
> Sergio Millich
If you have installed a orbit-python package (the one described in
Chapter 20 has been replaced by a new one, so the examples don't work
anymore :-( ), you should be able to do "import CORBA."
Your first problem certainly seems to be with the CORBA module
installation. Take a look in
/usr/lib/python[version-installed]/site-lisp. You should find the file
CORBAmodule.so, which is, I believe, what Python is going to try to
import.
Take a look at what the RPM package has in it; if it hasn't that .so
file, then it's likely you have something missing.
Big caveat after that: the orbit-python described in Chapter 20 has been
replaced by something newer with the same name that hasn't quite the
same API.
from the Debian README for python-orbit:
python-orbit for Debian
----------------------
This package used to contain PyOrbit. However, since that project
seems abandoned upstream, it was replaced with ORBit-Python. Both
modules are Python bindings for ORBit, but the API might have changed.
Please read the examples.
-- Roland Mas <lolando@d...>, Sun, 28 Jan 2001 16:58:19 +0100
--
(concatenate 'string "cbbrowne" "@canada.com")
http://www3.sympatico.ca/cbbrowne/unix.html
"what would we do without C? we would have PASAL, BASI, OBOL, and
Ommon Lisp." -- #Erik
Thanks for the tip. In fact under Suse Linux 7.3 the shared libraries were
installed in the wrong directory (/usr/lib/python2.1/site-packages instead
of /usr/local/lib/python2.1/site-packages where the other libs are). I
just copied the two *.so files to the right place and that fixed the
import problem. But there still remains the change in the API, when I run
the program I get a an unknown attribute error on CORBA.Load_IDL. Is there
a way to adapt the code easily?
Sergio Millich