>
> On Mon, Oct 21, 2002 at 01:52:12PM -0700, Ngo, Quang wrote:
> > It works now by uninstalling the old version. But now I am trying to
> > build a plugins but it gives me python errors that I can't really figure
> > it out. The error as:
> >
> > >omniidl -pv ./ -b ethereal_be quoter.idl
> > 'import site' failed; use -v for traceback
> > Traceback (innermost last):
> > File "<string>", line 1, in ?
> > File "C:\Python22\Lib\os.py", line 38
> > return [n for n in dir(module) if n[0] != '_']
> > ^
Hi,
You normally get this when the version of python that
omniidl attempts to use is different from what is installed/found.
I had this very same problem whn I upgraded my RH box to R7.3
where I had python and python2 installed.
Please note RH7.3 ships with /usr/bin/python as 1.5
and /usr/bin/python2 as 2.2
eg:
[frank@cray frank]$ ll /usr/bin/python*
-rwxr-xr-x 2 root root 411244 Apr 3 2002 /usr/bin/python
-rwxr-xr-x 2 root root 411244 Apr 3 2002 /usr/bin/python1.5
-rwxr-xr-x 2 root root 875272 Apr 12 2002 /usr/bin/python2
-rwxr-xr-x 2 root root 875272 Apr 12 2002 /usr/bin/python2.2
And according to one of the omniorb authors I spoke with
some time back..
"The problem is that the omniidlrun.py script in omniORB 3 is hardcoded
to run "python", so it is finding Python 1.5.2, not 2.2. omniORB 4 has
a configure script that rewrites the omniidl command to use the
version of Python you configure it with.
If you want to stick with omniORB 3's omniidl, you can either manually
edit omniidlrun.py, or put a link to Python 2.2 with the name "python"
somewhere on your path."
I chose to rebuild the latest omniorb 4 beta distro.
So I grabbed omniorb4 beta tarball and you can use
./configure PYTHON=/usr/bin/python2.2 prior to make && make install
and all is well.
This instructs python2.2 to be used instead of python1.5
There is a note about it in the omniorb4 README.unix for
./configure options.
Good luck..
Regards / Frank
--
EUS/SV/Z Frank Singleton ASO Americas BSS
Office : +1 972 583 3251 ECN 800 33251
Mobile : +1 214 228 0874 Amateur Radio: VK3FCS/KM5WS
Email : frank.singleton@xxxxxxxxxxxx
Hardware: HP Omnibook 4150 running Redhat Linux 7.3 (2.4.18-5 kernel).