Execution failure under Ubuntu Hardy

6 views
Skip to first unread message

Peter

unread,
Mar 25, 2009, 6:41:37 PM3/25/09
to Pwytter
I used the suggested commands:

$ sudo apt-get install python-tk python-imaging python-imaging-tk

which said I had python-imaging already, but installed blt, python-
imaging-tk, and python-tk OK.

$ cd pwytter-0.8
$ sudo python setup.py install

which installed setuptools and appeared to run OK. However, if I try
to run pwytter, I get the following. I've obviously misunderstood
something, but as a non-Pythonian, it's not clear what.

$ pwytter.py
Traceback (most recent call last):
File "/usr/bin/pwytter.py", line 5, in <module>
pkg_resources.run_script('pwytter==0.8', 'pwytter.py')
File "/usr/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/
pkg_resources.py", line 448, in run_script
File "/usr/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/
pkg_resources.py", line 1166, in run_script
File "/usr/lib/python2.5/site-packages/pwytter-0.8-py2.5.egg/EGG-
INFO/scripts/pwytter.py", line 29, in <module>
import pwSplashScreen
File "/usr/lib/python2.5/site-packages/pwytter-0.8-py2.5.egg/
pwSplashScreen.py", line 19, in <module>
from pwytter import __version__ as VERSION
File "/usr/bin/pwytter.py", line 5, in <module>
pkg_resources.run_script('pwytter==0.8', 'pwytter.py')
File "/usr/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/
pkg_resources.py", line 448, in run_script
File "/usr/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/
pkg_resources.py", line 1166, in run_script
File "/usr/lib/python2.5/site-packages/pwytter-0.8-py2.5.egg/EGG-
INFO/scripts/pwytter.py", line 30, in <module>
import twclient
File "/usr/lib/python2.5/site-packages/pwytter-0.8-py2.5.egg/
twclient/__init__.py", line 19, in <module>
import twitter
File "/usr/lib/python2.5/site-packages/pwytter-0.8-py2.5.egg/
twclient/twitter.py", line 14, in <module>
import simplejson
ImportError: No module named simplejson
$

I'm missing simplejson, presumably. Is there a repo/installer for
Python, like CPAN does for Perl?

///Peter

Aldous D. Penaranda

unread,
Mar 29, 2009, 10:47:16 AM3/29/09
to pwy...@googlegroups.com
On Thu, Mar 26, 2009 at 6:41 AM, Peter <angleb...@gmail.com> wrote:
> I'm missing simplejson, presumably. Is there a repo/installer for
> Python, like CPAN does for Perl?

You can first try adding the universe repository and install
python-simplejson from there. If you prefer not to install stuff from
universe, you can install python-setuptools and use easy_install.

--
http://aldous.penaranda.name/
GPG: 0xD6655C18
GCS/MU d- s+: a-- C++ U++ P+ L++ E W+++ N+ o? K- w--- O? M+ V- PS+ PE-
Y+ PGP+ t 5? X+ R tv b- DI D+ G e++ h! r++ !z+

Reply all
Reply to author
Forward
0 new messages