Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

"apt-get install robot-viewer" returns a syntax error #5

Open
francois-keith opened this issue Jul 12, 2012 · 0 comments
Open

"apt-get install robot-viewer" returns a syntax error #5

francois-keith opened this issue Jul 12, 2012 · 0 comments

Comments

@francois-keith
Copy link

Hi,

I tried installing robot-viewer via the binary package placed on ppa:dang-duong/ppa
on my Ubuntu 10.04 (32 bits).
I tried on 3 machines and obtained the following error message:

$ apt-get install robot-viewer
...
Compiling /usr/lib/pymodules/python2.6/robotviewer/legacy.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/robotviewer/legacy.py', 19, 31, 'def parse_config(self, config)\n'))

If I launch the command a second time

apt-get install robot-viewer

then it ends correctly.

Yet, when I run robotviewer, I obtain the following error if the file .robotviewer/config does not exist

  File "/usr/lib/pymodules/python2.6/robotviewer/kinematic_server.py", line 225, in parse_configLegacy
    legacy.parse_config(self, config)
NameError: global name 'legacy' is not defined

Note also that the folder .robotviewer and the symbolic links it includes are only defined after I run the command robotviewer once.

Francois

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant