Numpy Error

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
wubster
Posts: 1
Joined: Fri Oct 25, 2019 11:13 am

Numpy Error

Post by wubster »

Hey! (Note: I'm not very farmiliar with dockers) I'm working with setting up faceswap on a linux server by building the docker image and setting up an interactive session. I just wanted to check that everything worked ok in there, however I encountered some problems with numpy.

python
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.

and when I try to do what the error message tells me I get:

pip uninstall numpy
Uninstalling numpy-1.16.2:
Would remove:
/usr/local/bin/f2py
/usr/local/bin/f2py3
/usr/local/bin/f2py3.5
/usr/local/lib/python3.5/dist-packages/numpy-1.16.2.dist-info/*
/usr/local/lib/python3.5/dist-packages/numpy/*
Would not remove (might be manually added):
/usr/local/lib/python3.5/dist-packages/numpy/.libs/libopenblasp-r0-8dca6697.3.0.dev.so
/usr/local/lib/python3.5/dist-packages/numpy/import_tools.py
/usr/local/lib/python3.5/dist-packages/numpy/add_newdocs.py
/usr/local/lib/python3.5/dist-packages/numpy/core/multiarray.cpython-35m-x86_64-linux-gnu.so
/usr/local/lib/python3.5/dist-packages/numpy/core/umath.cpython-35m-x86_64-linux-gnu.so
/usr/local/lib/python3.5/dist-packages/numpy/distutils/environment.py
/usr/local/lib/python3.5/dist-packages/numpy/testing/
private/pytesttester.py
Proceed (y/n)? y
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.5/shutil.py", line 538, in move
os.rename(src, real_dst)
OSError: [Errno 18] Invalid cross-device link: '/usr/local/bin/f2py' -> '/tmp/pip-uninstall-2sv6h1yo/f2py'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/base_command.py", line 153, in main
status = self.run(options, args)
File "/usr/local/lib/python3.5/dist-packages/pip/
internal/commands/uninstall.py", line 79, in run
auto_confirm=options.yes, verbose=self.verbosity > 0,
File "/usr/local/lib/python3.5/dist-packages/pip/internal/req/req_install.py", line 755, in uninstall
uninstalled_pathset.remove(auto_confirm, verbose)
File "/usr/local/lib/python3.5/dist-packages/pip/
internal/req/req_uninstall.py", line 394, in remove
moved.stash(path)
File "/usr/local/lib/python3.5/dist-packages/pip/internal/req/req_uninstall.py", line 283, in stash
renames(path, new_path)
File "/usr/local/lib/python3.5/dist-packages/pip/
internal/utils/misc.py", line 338, in renames
shutil.move(old, new)
File "/usr/lib/python3.5/shutil.py", line 553, in move
os.unlink(src)
OSError: [Errno 30] Read-only file system: '/usr/local/bin/f2py'

Any helpers?

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: Numpy Error

Post by bryanlyon »

Docker is not a recommended install. That said, your install of numpy has become corrupted. You should follow the directions the error gave you and/or seek help from numpy as we can't solve their problems.

Locked