Open bchretien opened 8 years ago
Please run with -v and post the output.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/rtshell/rtcon.py", line 117, in main
connect_ports(paths, options, tree=tree)
File "/usr/lib/python2.7/site-packages/rtshell/rtcon.py", line 66, in connect_ports
props=options.properties)
File "/usr/lib/python2.7/site-packages/rtctree/ports.py", line 316, in connect
props=new_props)
File "/usr/lib/python2.7/site-packages/rtctree/ports.py", line 115, in connect
props = utils.dict_to_nvlist(props)
File "/usr/lib/python2.7/site-packages/rtctree/utils.py", line 166, in dict_to_nvlist
result.append(SDOPackage.NameValue(item, omniORB.any.to_any(dict[item])))
AttributeError: 'module' object has no attribute 'any'
rtcon: 'module' object has no attribute 'any'
I use omniorb 4.1.7 and omniorbpy 3.7. The source of the error seems to be that commit.
I have met the very same problem on Windows.
C:\Users\masutani>rtcon -v /localhost/masutani-desk.host_cxt/ConsoleIn0.rtc:out /localhost/masutani-desk.host_cxt/ConsoleOut0.rtc:in Traceback (most recent call last): File "C:\Python27\lib\site-packages\rtshell\rtcon.py", line 117, in main connect_ports(paths, options, tree=tree) File "C:\Python27\lib\site-packages\rtshell\rtcon.py", line 66, in connect_ports props=options.properties) File "C:\Python27\lib\site-packages\rtctree\ports.py", line 316, in connect props=new_props) File "C:\Python27\lib\site-packages\rtctree\ports.py", line 115, in connect props = utils.dict_to_nvlist(props) File "C:\Python27\lib\site-packages\rtctree\utils.py", line 166, in dict_to_nvlist result.append(SDOPackage.NameValue(item, omniORB.any.to_any(dict[item]))) AttributeError: 'module' object has no attribute 'any' rtcon: 'module' object has no attribute 'any'
Please help ...
I fixed the problem by changing "import omniORB" into "import omniORB.any" in rtctree/utils.py.
After upgrading
rtctree
/rtshell
to 4.1.0,rtcon
fails with the following error:Tested with Python 2.7.10 on Arch Linux.