I have reproduced a similar bug on 10.04 (Lucid Lynx).
The problems with "gnatpsta.py" and "methods.py", as mentioned in the original bug report from 2008, appear to have been fixed.
However, after downloading the "gnat-gps" package and starting GPS (/usr/bin/gnat-gps), I still get the following error message:
[2010-07-20 19:04:01] Error while parsing /usr/share/gps/plug-ins/changelog.xml
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/share/gps/plug-ins/ada_support.py", line 15, in <module>
import os_utils, gnat_switches
ImportError: No module named gnat_switches
Welcome to GPS 4.3-5ubuntu1 (Debian) hosted on x86_64-linux-gnu
the GNAT Programming Studio
(c) 2001-2008 AdaCore
This error has not (so far) prevented me from building and running Ada programs in GPS, but its presence is not comforting and I'm wondering whether it will cause any future problems. :)
The Python ImportError can be made to go away by adding "gnat_switches.py" to /usr/share/gps/plug-ins/
I have reproduced a similar bug on 10.04 (Lucid Lynx).
The problems with "gnatpsta.py" and "methods.py", as mentioned in the original bug report from 2008, appear to have been fixed.
However, after downloading the "gnat-gps" package and starting GPS (/usr/bin/ gnat-gps) , I still get the following error message:
[2010-07-20 19:04:01] Error while parsing /usr/share/ gps/plug- ins/changelog. xml gps/plug- ins/ada_ support. py", line 15, in <module>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/share/
import os_utils, gnat_switches
ImportError: No module named gnat_switches
Welcome to GPS 4.3-5ubuntu1 (Debian) hosted on x86_64-linux-gnu
the GNAT Programming Studio
(c) 2001-2008 AdaCore
This error has not (so far) prevented me from building and running Ada programs in GPS, but its presence is not comforting and I'm wondering whether it will cause any future problems. :)
The Python ImportError can be made to go away by adding "gnat_switches.py" to /usr/share/ gps/plug- ins/
I attach the missing gnat_switches.py file to this post. It is taken from AdaCore's GNAT_GPL package, available from: libre.adacore. com/libre/ download/
http://
I am not sure how to resolve the "Error while parsing /usr/share/ gps/plug- ins/changelog. xml" message, or even what the cause of the parse error is.