You are not logged in.

#1 2017-01-26 13:42:32

odrec
Member
Registered: 2016-09-08
Posts: 17

[SOLVED] Error with python2-numpy while upgrading AUR packages

I have two python installations. One local for python 3.5 and one global for python 2.7. I'm using yaourt to upgrade my AUR packages after a general system upgrade that I already did. Yaourt gives me an error while trying to upgrade theano and keras libraries. The error is this

==> Building and installing package
==> Install or build missing dependencies for python-keras:
resolving dependencies...
looking for conflicting packages...

Packages (4) cython2-0.25.2-2  python2-h5py-2.6.0-3  python2-numpy-1.11.3-1  python2-scipy-0.18.1-2

Total Installed Size:  76.26 MiB

:: Proceed with installation? [Y/n]
(4/4) checking keys in keyring                                 [##################################] 100%
(4/4) checking package integrity                               [##################################] 100%
(4/4) loading package files                                    [##################################] 100%
(4/4) checking for file conflicts                              [##################################] 100%
error: failed to commit transaction (conflicting files)
python2-numpy: /usr/lib/python2.7/site-packages/numpy/_globals.py exists in filesystem
python2-numpy: /usr/lib/python2.7/site-packages/numpy/_globals.pyc exists in filesystem
python2-numpy: /usr/lib/python2.7/site-packages/numpy/tests/test_reloading.py exists in filesystem
Errors occurred, no packages were upgraded.

I had a similar error when I was upgrading the regular packages with pacman but I got rid of it by uninstalling python2-numpy which I wasn't using but I guess some other program installed it during the upgrade process.

So I tried to do the same thing now but it says the python2-numpy package doesn't exist.

$ sudo pacman -Rs python2-numpy
error: target not found: python2-numpy

But when I look for the package using pacman it exists

$ pacman -Ss python2-numpy
extra/python2-numpy 1.11.3-1
    Scientific tools for Python

Any idea to fix this?

Last edited by odrec (2017-01-26 16:02:17)

Offline

#2 2017-01-26 13:56:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Error with python2-numpy while upgrading AUR packages

1.  Stop using yaourt now.  You clearly have no idea how pacman or the AUR works, likely as a direct result of allowing yaourt to hide all of that from you.

The error you posted is not from yaourt, it is from pacman which is called by makepkg to install dependencies of the AUR package you are trying to build.  Pacman does not install the needed dependency (hence te message "no packages were upgraded").

You then tried to remove the package that had not been installed, so of course it was not installed on your system.

Then you searched the repos and found that the package does exist in the repos (which is already obvious given pacman just tried to install it from the repos).

The actual error is covered in the pacman wiki page.  Follow the instruction there.  You must either install python2-numpy, or ditch (or modify) the AUR package that depends on it.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-01-26 16:01:48

odrec
Member
Registered: 2016-09-08
Posts: 17

Re: [SOLVED] Error with python2-numpy while upgrading AUR packages

Thanks! I found the solution on the wiki

Offline

Board footer

Powered by FluxBB