Discussion:
[omniORB] omniORBpy-2.7 AttributeError
W T Meyer
2006-11-07 02:14:28 UTC
Permalink
I'm trying to install omniORBpy-2.7 on a new system running
Scientific Linux 3.0.7 on a Dell computr with an Intel
processor. I've already installed omniORB-4.07, and the echo example
works. After extracting omniORBpy-2.7 and running the configure
script, running 'make' works fine until it enters the COS directory,
where it fails. Any help is appreciated.

Here is the tail of the output:

make[2]: Entering directory `/usr/local/omniORBpy-2.7/build/python/COS'
/usr/local/bin/omniidl -p../../../omniidl_be \
-I/usr/local/share/idl/omniORB/COS -I/usr/local/share/idl/omniORB
-I/usr/local/idl/omniORB -I/usr/local/idl/omniORB/COS
-I../../../idl -I../../../idl/COS -I/usr/local/share/idl/omniORB
-I/usr/local/share/idl/omniORB/COS -bpython
/usr/local/share/idl/omniORB/COS/CosCollection.idl
Traceback (most recent call last):
File "/usr/local/bin/omniidl", line 105, in <module>
omniidl.main.main()
File "./main.py", line 497, in main
File "../../../omniidl_be/python.py", line 832, in run

File "./idlast.py", line 171, in accept
File "../../../omniidl_be/python.py", line 919, in visitAST
# Interface
File "./idlast.py", line 300, in accept
File "../../../omniidl_be/python.py", line 971, in visitModule
for c in node.callables():
File "./idlast.py", line 345, in accept
File "../../../omniidl_be/python.py", line 1074, in visitInterface
self.st.out(objref_methods, methods = methods)
File "../../../omniidl_be/python.py", line 2349, in operationToDescriptors
outf = open(tmpfile, "w")
AttributeError: 'module' object has no attribute 'containsValueType'
make[2]: *** [CosCollection_idl.py] Error 1
make[2]: Leaving directory `/usr/local/omniORBpy-2.7/build/python/COS'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/local/omniORBpy-2.7/build/python'
make: *** [all] Error 1
Duncan Grisby
2006-11-07 14:22:38 UTC
Permalink
I'm trying to install omniORBpy-2.7 on a new system running Scientific
Linux 3.0.7 on a Dell computr with an Intel processor. I've already
installed omniORB-4.07, and the echo example works. After extracting
omniORBpy-2.7 and running the configure script, running 'make' works
fine until it enters the COS directory, where it fails. Any help is
appreciated.
[...]
AttributeError: 'module' object has no attribute 'containsValueType'
You have somehow picked up the python back-end from omniORBpy 3.0, and
it's running against the omniidl from omniORB 4.0.7. The two don't work
together. Make sure you're using consistent versions of omniORB and
omniORBpy and it should be fine.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
W T Meyer
2006-11-13 21:03:10 UTC
Permalink
I tried completely removing both the omniORBpy-3.0 and omniORB-4.1
directory trees, then rebuilding omniORB-4.0.7 and omniORBpy-2.7 from
the tar file. The installation for omniORB-4.0.7 went fine, and the
echo examples work, but I still get the AttributeError message when I
try to make the omniORBpy files. There is something still pointing
to the 3.0 installation, what is it?

Would it be a good idea to add an 'uninstall' option to the Makefile?

Tom Meyer
Post by Duncan Grisby
I'm trying to install omniORBpy-2.7 on a new system running Scientific
Linux 3.0.7 on a Dell computr with an Intel processor. I've already
installed omniORB-4.07, and the echo example works. After extracting
omniORBpy-2.7 and running the configure script, running 'make' works
fine until it enters the COS directory, where it fails. Any help is
appreciated.
[...]
AttributeError: 'module' object has no attribute 'containsValueType'
You have somehow picked up the python back-end from omniORBpy 3.0, and
it's running against the omniidl from omniORB 4.0.7. The two don't work
together. Make sure you're using consistent versions of omniORB and
omniORBpy and it should be fine.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- http://www.grisby.org --
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20061113/f573a441/attachment.htm
Duncan Grisby
2006-11-16 17:09:19 UTC
Permalink
Post by W T Meyer
I tried completely removing both the omniORBpy-3.0 and omniORB-4.1
directory trees, then rebuilding omniORB-4.0.7 and omniORBpy-2.7 from
the tar file. The installation for omniORB-4.0.7 went fine, and the
echo examples work, but I still get the AttributeError message when I
try to make the omniORBpy files. There is something still pointing to
the 3.0 installation, what is it?
You'll have a file called python.py installed somewhere, which contains
the omniidl python back-end. If you run omniidl -v -bpython foo.idl, it
will tell you where it's picking the python back-end up from.
Post by W T Meyer
Would it be a good idea to add an 'uninstall' option to the Makefile?
Yes, but the makefiles are hairy and complex, and it's not trivial to
add an uninstall. If you want to produce a patch, I'll happily accept
it.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...