New issue 66 by b3811...@uggsrock.com: Problems when installing trash-cli
in Ubuntu/Kubuntu 11.04
http://code.google.com/p/trash-cli/issues/detail?id=66
-------- Problems when installing trash-cli in Ubuntu/Kubuntu 11.04 --------
______________________________________________________________________________
What steps will reproduce the problem?
1. sudo apt-get install python-setuptools
2. sudo easy_install pip
3. sudo pip install trash-cli
______________________________________________________________________________
What is the expected output?
It should install trash-cli without problems.
______________________________________________________________________________
What do you see instead?
The output is the one quoted in the "1-install.txt" file attached.
Also the file ~/.pip/pip.log is attached.
______________________________________________________________________________
Thanks!
Attachments:
1-install.txt 5.8 KB
2-pip.log 24.8 KB
If this command is executed
ls -l /usr/local/man
the result is
lrwxrwxrwx 1 root root 9 2011-06-02 09:44 /usr/local/man -> share/man
Maybe this can help, also. If
sudo pip uninstall trash-cli
is then executed, it says:
Cannot uninstall requirement trash-cli, not installed
Storing complete log in /home/to/.pip/pip.log
And the content of that file is:
------------------------------------------------------------
/usr/local/bin/pip run on Mon Jun 6 21:18:26 2011
Cannot uninstall requirement trash-cli, not installed
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-1.0.1-py2.7.egg/pip/basecommand.py",
line 126, in main
self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-1.0.1-py2.7.egg/pip/commands/uninstall.py",
line 40, in run
requirement_set.uninstall(auto_confirm=options.yes)
File "/usr/local/lib/python2.7/dist-packages/pip-1.0.1-py2.7.egg/pip/req.py",
line 856, in uninstall
req.uninstall(auto_confirm=auto_confirm)
File "/usr/local/lib/python2.7/dist-packages/pip-1.0.1-py2.7.egg/pip/req.py",
line 406, in uninstall
raise UninstallationError("Cannot uninstall requirement %s, not
installed" % (self.name,))
UninstallationError: Cannot uninstall requirement trash-cli, not installed
I think this has to do with Debian based systems installing manpages to
/usr/share/man and /usr/local/share/man I had to apply the following to
install cleanly on Debian:
Index: trash-cli-0.11.3-r315/setup.py
===================================================================
--- trash-cli-0.11.3-r315.orig/setup.py 2011-10-31 14:29:58.842836388 -0400
+++ trash-cli-0.11.3-r315/setup.py 2011-10-31 14:29:58.874836703 -0400
@@ -78,7 +78,7 @@
'trash-empty = trashcli.cli.empty:main'
]
},
- data_files = [('man/man1', ['man/man1/trash-empty.1',
+ data_files = [('share/man/man1', ['man/man1/trash-empty.1',
'man/man1/trash-list.1',
'man/man1/trash-restore.1',
'man/man1/trash-put.1'])],
On Ubuntu 10.10 works.