I do not understand why I get the following:
[meeo@archasus ~]$ sudo yaourt -Ss python2-amqp aur/python2-amqp 1.0.11-1 (Out of Date) (3) Low-level AMQP client for Python (fork of amqplib) [meeo@archasus ~]$ sudo yaourt -R python2-amqp error: target not found: python2-amqp
Is there a way to solve it?
Thanks in advance.
Last edited by caneta (2013-07-18 12:14:38)
Hi and welcome to the forums. I'm sorry to see that you're having trouble. Please note that yaourt is an unofficial package and is not supported. It is certainly not required to remove packages. Verify that the package is actually installed via "pacman -Qs python2-amqp" (not "-Ss"; see the pacman man page for more information). If it is installed, do "sudo pacman -R python2-amqp".
Are you sure it is installed? In that case the output of yaourt -Ss would say "[installed]"
It's been a long time since I'd used yaourt, but from what I recall; you should not be using sudo yaourt foo bar as it should ask for elevated permissions when it needs it.
[meeo@archasus ~]$ pacman -Qs python2-amqp [meeo@archasus ~]$ sudo pacman -R python2-amqp [sudo] password for meeo: error: target not found: python2-amqp [meeo@archasus ~]$
I think I made some mess with yaourt and pip2, because this package is installable also with pip2 (with a more recent version):
[meeo@archasus ~]$ sudo pip2 list -o amqp (Current: 1.0.12 Latest: 1.2.0) [meeo@archasus ~]$ sudo pip2 install --upgrade amqp==1.2.0 Downloading/unpacking amqp==1.2.0 Running setup.py egg_info for package amqp Requested amqp==1.2.0, but installing version 1.0.12 Installing collected packages: amqp Found existing installation: amqp 1.0.12 Uninstalling amqp: Successfully uninstalled amqp Running setup.py install for amqp Successfully installed amqp Cleaning up... [meeo@archasus ~]$ sudo pip2 list ... amqp (1.0.12)
But in this situation I cannot get the latest 1.2.0 amqp release... is there a way to solve this?
Ok, solved: Yaourt doesn't find the package because it was not installed.
The "Out of date" message made me think that it was installed but to be upgraded: this is not true.
"Out of date" means that this package in the AUR is not the latest version available.
I solved cleaning the /tmp directory, where pip puts its stuff during installations.
Then I was able to install the latest amqp-1.2.0:
[meeo@archasus ~]$ sudo rm -fr /tmp/* [meeo@archasus ~]$ sudo pip2 install amqp ... [meeo@archasus ~]$ pip2 list amqp (1.2.0) ...
Thank you so much for the quickness of your answers!
Last edited by caneta (2013-07-18 12:15:10)
I'm glad you solved it. I would recommend, whenever possible, to install packages via Pacman/makepkg, rather than with language specific tools like easy_install/pip or whatever the Ruby gems command is. If there is a PKGBUILD available for it in the AUR, it's much more preferable to let Pacman keep track of it for you, to more conveniently handle installation, upgrades and removal.
I know jakobcreutzfeldt, I would like to use only pacman indeed.
But some package is present only inside AUR and so I use from time to time yaourt.
And for python packages, the are upgraded so frequently that a lot of them are not aligned with the latest release...
That's the problem with using yaourt: by treating the AUR as an actual repository, you are falsely dependent on the PKGBUILD maintainer for staying up-to-date. If you did things the manual way with makepkg, you can just update it yourself the moment a new version comes out. It's extremely simple to do.
Ok, I'm going deeper into this, thanks for your advice!