Problems running paint program Gogh on Ubuntu

I’ve downloaded Gogh to the home directory of my Ubuntu computer.
While in the sub directory Gogh-0.1.2.1, I gave the ./gogh command in order to run the program. This did not work. The following error was given.
ImportError: No module named ext
The complete response from the command line is shown below.

Doe anybody understand this?

tony@xp:~/Gogh-0.1.2.1$ ./gogh
Traceback (most recent call last):
File “./gogh”, line 31, in <module>
from goghmain import GoghWindow
File “/home/tony/Gogh-0.1.2.1/goghmain.py”, line 35, in <module>
from brushmanager import BrushManager
File “/home/tony/Gogh-0.1.2.1/brushmanager.py”, line 30, in <module>
from settingmanager import *
File “/home/tony/Gogh-0.1.2.1/settingmanager.py”, line 27, in <module>
import xml.dom.ext
ImportError: No module named ext

It seems as if there is some Python libraries missing? Something to do with XML or such?

How can I check whether some Python libraries are missing or not?

Why should XML be involved?

I would guess that since “settingsmanager.py” is wanting XML, the settings for the software is stored in an XML file. I run Arch, so I don’t know exactly how to tell you to check for the right stuff in Ubuntu, but maybe you could run the package manager (is it called Synaptics?) and search for all Python stuff, then make sure all XML libs are installed.

Try http://blog.mypapit.net/2008/05/ubuntu-hardy-python-xml-error.html .

I found an interesting thread at the Ubuntuforums .

Rather at the end it says:
I found a solution! Whoo! There was indeed a problem in the Python XML code in Gogh. To fix it, open up settingsmanager.py.

My question is how do I open up settingsmanager.py?

Well, the file is here:

File “/home/tony/Gogh-0.1.2.1/settingmanager.py”, line 27, in <module>

An editor you should have is gedit, so the command to open it could be:


gedit /home/tony/Gogh-0.1.2.1/settingmanager.py

Or open a text editor and navigate to that directory.

problem solved!

thanks guys.