tyrs icon indicating copy to clipboard operation
tyrs copied to clipboard

Installation with Ubuntu

Open Nic0 opened this issue 14 years ago • 4 comments

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 avatar Nov 07 '11 11:11 Nic0

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.

Nic0 avatar Nov 07 '11 11:11 Nic0

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

  • Installed with sudo pip install tyrs
  • got an error telling me to install python-distutils-extra which I did
  • retried sudo pip install tyrs => OK
  • Running tyrs gives the error below :
$ 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
>>>

thomasleveil avatar Nov 08 '11 16:11 thomasleveil

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

Nic0 avatar Nov 08 '11 20:11 Nic0

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.

laanwj avatar Dec 23 '11 16:12 laanwj