GrahamDumpleton / wrapt

A Python module for decorators, wrappers and monkey patching.
BSD 2-Clause "Simplified" License
2.06k stars 231 forks source link

FileNotFoundError while installing wrapt #118

Closed zairahms closed 6 years ago

zairahms commented 6 years ago

Hi, I am trying to install wrapt on a remote Linux machine and get the following error.


12:13:56   Downloading wrapt-1.10.11.tar.gz
12:13:56 Installing collected packages: wrapt
12:13:56   Running setup.py install for wrapt: started
12:13:57     Running setup.py install for wrapt: finished with status 'done'
12:13:57 Exception:
12:13:57 Traceback (most recent call last):
12:13:57   File "/usr/local/lib/python3.5/dist-packages/pip/basecommand.py", line 215, in main
12:13:57     status = self.run(options, args)
12:13:57   File "/usr/local/lib/python3.5/dist-packages/pip/commands/install.py", line 342, in run
12:13:57     prefix=options.prefix_path,
12:13:57   File "/usr/local/lib/python3.5/dist-packages/pip/req/req_set.py", line 784, in install
12:13:57     **kwargs
12:13:57   File "/usr/local/lib/python3.5/dist-packages/pip/req/req_install.py", line 922, in install
12:13:57     with open(inst_files_path, 'w') as f:
12:13:57 FileNotFoundError: [Errno 2] No such file or directory: 'target/lib/python3.5/site-packages/wrapt-1.10.11.egg-info/installed-files.txt'```
GrahamDumpleton commented 6 years ago

Ensure you are using latest pip version, and if working in a Python virtual environment, and your Python installation was updated since the virtual environment was created, try recreating the Python virtual environment. This is going to be an issue somewhere with the packaging tools or the Python installation.

GrahamDumpleton commented 6 years ago

Was this issue solved?

zairahms commented 6 years ago

Hi, Thanks for the follow up. Yes it got solved. The issue was with some permissions. Nothing on wrapt's side :)