[omniORB] omniORBpy and Python3

Michael Teske subscribe at teskor.de
Tue Mar 3 13:43:45 GMT 2020


Hi,

I have some problems getting omniORBpy4.2.3 to run with python3.8.2 on windows 10 64 bit.

After solving the typical Pythonpath problems I am now stuck with problems in the python code.

The first was
  File "C:\cygwin64\home\michael.teske\build\trader-branch\WINNT51_64\MSVC160\Release\lib\python\omniORB\__init__.py", 
line 595, in <module>
     import CORBA, tcInternal, omniPolicy
   File "C:\cygwin64\home\michael.teske\build\trader-branch\WINNT51_64\MSVC160\Release\lib\python\CORBA.py", line 3, in 
<module>
     import sys, omniORB.CORBA
   File "C:\cygwin64\home\michael.teske\build\trader-branch\WINNT51_64\MSVC160\Release\lib\python\omniORB\CORBA.py", 
line 275, in <module>
     import tcInternal
   File 
"C:\cygwin64\home\michael.teske\build\trader-branch\WINNT51_64\MSVC160\Release\lib\python\omniORB\tcInternal.py", line 
36, in <module>
     for k, v in c.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

this was easy to solve by just using items() instead.
but now I get stuck here:

    import omniORB
   File "C:\cygwin64\home\michael.teske\build\trader-branch\WINNT51_64\MSVC160\Release\lib\python\omniORB\__init__.py", 
line 595, in <module>
     import CORBA, tcInternal, omniPolicy
   File "C:\cygwin64\home\michael.teske\build\trader-branch\WINNT51_64\MSVC160\Release\lib\python\CORBA.py", line 3, in 
<module>
     import sys, omniORB.CORBA
   File "C:\cygwin64\home\michael.teske\build\trader-branch\WINNT51_64\MSVC160\Release\lib\python\omniORB\CORBA.py", 
line 364, in <module>
     class ORB(object):
   File "C:\cygwin64\home\michael.teske\build\trader-branch\WINNT51_64\MSVC160\Release\lib\python\omniORB\CORBA.py", 
line 505, in ORB
     _d_InvalidName  = (omniORB.tcInternal.tv_except, InvalidName,
AttributeError: partially initialized module 'omniORB' has no attribute 'tcInternal' (most likely due to a circular import)


omniORB alone works fine. Are there any fixes already? Do I need to use a 4.3 snapshot?
For now I have to go back to python 2.7 it seems...

Greetings,
   Michael



More information about the omniORB-list mailing list