I'm trying to install a program written in Python / -->http://code.google.com/p/amphetype/<-- /
I did subversion checkout
svn checkout http://amphetype.googlecode.com/svn/trunk/ amphetype-read-only
and tried to setup / run the program, but I am seeing ImportErrors like that:
pm@machina-pm:/home/pn/amphetype-read-only$ python setup.py
Traceback (most recent call last):
File "setup.py", line 5, in <module>
import py2exe
ImportError: No module named py2exe
and:
pm@machina-pm:/home/pn/amphetype-read-only$ python Amphetype.py
Traceback (most recent call last):
File "Amphetype.py", line 10, in <module>
from Config import Settings
File "/home/pn/amphetype-read-only/Config.py", line 5, in <module>
from QtUtil import *
File "/home/pn/amphetype-read-only/QtUtil.py", line 4, in <module>
from PyQt4.QtCore import *
ImportError: No module named PyQt4.QtCore
EDIT:
installing python-qt (sudo apt-get install python-qt4
) helped in getting rid of the second ImportError.
However program still doesn't start, now it says:
pm@machina-pm:/home/pn/amphetype$ python Amphetype.py
No protocol specified
No protocol specified
Amphetype.py: cannot connect to X server :0
PS. readme.txt that goes with the source code sadly doesn't get me very far (author says that it was developed under windows, and the whole project seems to be abandoned now). I used to use that software on Windows and I like it a lot, and would love to get it running on Linux.
EDIT 2:
Ufff...
It works at last, moving the amphetype directory from ~/amphetype
to /etc/amphetype
did the trick, although I'm not sure why...