Mailing List Archive

problem with Fnorb and module new
I just tried installing Fnorb on HP-UX 10.20... the install went
smoothly, but when I tried stepping through the Hello World example,
python complained about not being able to find module new. The
complaint
is certainly valid -- I can't find new.py anywhere either. Anyone know
what's going on here?

$ fnidl HelloWorld.idl
Traceback (innermost last):
File
"/users/jbkerr/python/Python-1.5.1/site-packages/Fnorb/script/fnidl",
line 2, in ?
import sys; from Fnorb.script import fnidl;
sys.exit(fnidl.main(sys.argv))
File
"/users/jbkerr/python/Python-1.5.1/site-packages/Fnorb/script/fnidl.py",
line 41, in ?
from Fnorb.orb import CORBA, Util
File
"/users/jbkerr/python/Python-1.5.1/site-packages/Fnorb/orb/CORBA.py",
line 38, in ?
import fnorb_thread, TypeManager, Util
File
"/users/jbkerr/python/Python-1.5.1/site-packages/Fnorb/orb/Util.py",
line 38, in ?
import keyword, new, string, UserList
ImportError: No module named new

--
Jim Kerr
Hewlett-Packard
Santa Rosa Systems Division
1400 Fountaingrove Pkwy, MS 3USZ
Santa Rosa, CA 95403
Phone: 707-577-5575
Telnet: 577-5575
problem with Fnorb and module new [ In reply to ]
I don't think that "new" is part of the default build.
It shows up in the Windows build.

--
--Darrell
Jim Kerr <jbkerr@sr.hp.com> wrote in message
news:377A8D17.9B4D17C8@sr.hp.com...
> I just tried installing Fnorb on HP-UX 10.20... the install went
> smoothly, but when I tried stepping through the Hello World example,
> python complained about not being able to find module new. The
> complaint
> is certainly valid -- I can't find new.py anywhere either. Anyone know
> what's going on here?
>
> $ fnidl HelloWorld.idl
> Traceback (innermost last):
> File
> "/users/jbkerr/python/Python-1.5.1/site-packages/Fnorb/script/fnidl",
> line 2, in ?
> import sys; from Fnorb.script import fnidl;
> sys.exit(fnidl.main(sys.argv))
> File
> "/users/jbkerr/python/Python-1.5.1/site-packages/Fnorb/script/fnidl.py",
> line 41, in ?
> from Fnorb.orb import CORBA, Util
> File
> "/users/jbkerr/python/Python-1.5.1/site-packages/Fnorb/orb/CORBA.py",
> line 38, in ?
> import fnorb_thread, TypeManager, Util
> File
> "/users/jbkerr/python/Python-1.5.1/site-packages/Fnorb/orb/Util.py",
> line 38, in ?
> import keyword, new, string, UserList
> ImportError: No module named new
>
> --
> Jim Kerr
> Hewlett-Packard
> Santa Rosa Systems Division
> 1400 Fountaingrove Pkwy, MS 3USZ
> Santa Rosa, CA 95403
> Phone: 707-577-5575
> Telnet: 577-5575
problem with Fnorb and module new [ In reply to ]
> I just tried installing Fnorb on HP-UX 10.20... the install went
> smoothly, but when I tried stepping through the Hello World example,
> python complained about not being able to find module new. The
> complaint is certainly valid -- I can't find new.py anywhere either.
> Anyone know what's going on here?

it's a C module, not a Python module:
http://www.python.org/doc/FAQ.html#4.70

and it's not built by default in 1.5.1. you have
to rebuild Python with this module enabled (look
for newmodule.c in the Modules/Setup file).

or you can upgrade to 1.5.2...

</F>