Nic0 / tyrs

Twitter and Identica client using curses
http://tyrs.nicosphere.net
61 stars 10 forks source link

Installation with Ubuntu #92

Open Nic0 opened 12 years ago

Nic0 commented 12 years ago

Report from an email:

Installé avec pip (que je ne connais pas, donc je ne sais pas trop ce qu'il a fait) Il a fallu un sudo pour que ça passe (ça semble normal pour une installation) J'ai dû aussi installer python-distutils-extra. Et à l'exec, il semble qu'il ne sache pas où se trouvent les modules python à ouvrir. Comme moi non plus je ne sais pas où il les a mis ...

$/usr/bin$ python tyrs Traceback (most recent call last): File "tyrs", line 11, in from src.tyrs import main ImportError: No module named src.tyrs

Une idée ?

Nic0 commented 12 years ago

Mon avis serait que l'installation ne s'est pas bien effectué, Je vais regarder de plus près ce soir, en virtualbox avec Ubuntu, voir si l'installation se passe toujours bien ici.

thomasleveil commented 12 years ago

Same report here on Ubuntu 11.10 oneiric Linux 2.6.38.2-xxxx-std-ipv6-64-hz1000 #2 SMP Thu Aug 25 16:45:28 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

$ tyrs
Traceback (most recent call last):
  File "/usr/bin/tyrs", line 11, in <module>
    from src.tyrs import main
ImportError: No module named src.tyrs

more info

$ locate tyrs
/usr/bin/tyrs
/usr/lib/python2.7/site-packages/tyrs-0.5.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/src/tyrs.py
/usr/lib/python2.7/site-packages/src/tyrs.pyc
/usr/lib/python2.7/site-packages/tyrs-0.5.0-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/tyrs-0.5.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/tyrs-0.5.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/tyrs-0.5.0-py2.7.egg-info/installed-files.txt
/usr/lib/python2.7/site-packages/tyrs-0.5.0-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/tyrs-0.5.0-py2.7.egg-info/top_level.txt
/usr/share/locale/es/LC_MESSAGES/tyrs.mo
/usr/share/locale/fr/LC_MESSAGES/tyrs.mo
 $ python
Python 2.7.2+ (default, Oct  4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tyrs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named tyrs
>>>
Nic0 commented 12 years ago

Thanks for noticing it. Hopefully I'll find time before the week end for this.

laanwj commented 12 years ago

It installs into /usr/lib/pythonX.X/site-packages/ which is not used for Debian-esque linuxes. Local packages should go into /usr/local/lib/pythonX.X/dist-packages/.

I have no idea how to make it do this though... some packages like oauth, twitter.py do manage to automatically go to the right directory.