You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running into issues with appdirs 1.4.1, which appears to have been released today. Am getting the issue below. More details can be found in this log. Issues exist for other Python versions as well.
FileNotFoundError: [Errno 2] No such file or directory: '/home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/appdirs-1.4.1.dist-info/METADATA'
Reacted by Mike Moore, Bence Nagy, Bob Whitelock, Zeb Palmer, dm03514, Jonas Trappenberg, Dan Klaffenbach, Zach Riggle, Hildeberto Mendonca, Leonid Logvinov and 15 more
FWIW I *think* this occurs when attempting to downgrade appdirs to 1.4.0 if
1.4.1 is previously installed... the pip uninstall of 1.4.1 fails with this
error.
Indeed, I think this is actually a consequence of setuptools choosing to no longer vendor their dependencies, but require them instead. As appdirs is one of them, it looks like this is somehow breaking setuptools when it gets removed.
I have a quick work around. The appdirs is a dependency of other third party apps in my project, but I have find out that if I execute the following command:
$ pip install appdirs --upgrade
just before my regular
$ pip install -r requirements.txt --upgrade
It works like a charm. Maybe that will help someone.
P.S. I in the third party app the dependency to appdirs is defined as appdirs>=1.4.0
Reacted by VYRNACH, Arbaz, Sasha Zhgut, Nouranology, Zach Riggle, Francesco Fantauzzi, Daniel Harms, Dylan Fox, Jose Echavez M, Quentin Pradet and 23 more
Reacted by Zach Riggle, Daniel Harms, Antoine L., Jussi Lind, nishuk0007 and Renuka Prasadh
Reacted by Zach Riggle, Daniel Harms, Doug Harris, Jussi Lind and nishuk0007
Reacted by Zach Riggle, Daniel Harms, Alexandre Macabies, Jussi Lind, nishuk0007 and Walker
Collecting appdirs>=1.4.0 (from setuptools->pypandoc->pwntools==3.6.0.dev0)
Downloading appdirs-1.4.2-py2.py3-none-any.whl
Requirement already up-to-date: pycparser in /home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography>=1.1->paramiko>=1.15.2->pwntools==3.6.0.dev0)
Installing collected packages: pwntools, appdirs, setuptools
Found existing installation: pwntools 3.6.0.dev0
Uninstalling pwntools-3.6.0.dev0:
Successfully uninstalled pwntools-3.6.0.dev0
Running setup.py develop for pwntools
Found existing installation: appdirs 1.4.0
Uninstalling appdirs-1.4.0:
Successfully uninstalled appdirs-1.4.0
Rolling back uninstall of appdirs
Exception:
Traceback (most recent call last):
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pip/wheel.py", line 247, in move_wheel_files
prefix=prefix,
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pip/locations.py", line 140, in distutils_scheme
d = Distribution(dist_args)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/setuptools/dist.py", line 320, in __init__
_Distribution.__init__(self, attrs)
File "/opt/python/2.7.9/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/setuptools/dist.py", line 386, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2324, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 862, in resolve
new_requirements = dist.requires(req.extras)[::-1]
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2568, in requires
dm = self._dep_map
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2815, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2824, in _compute_dependencies
for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2806, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1468, in get_metadata
value = self._get(self._fn(self.egg_info, name))
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1577, in _get
with open(path, 'rb') as stream:
IOError: [Errno 2] No such file or directory: '/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/appdirs-1.4.0.dist-info/METADATA'
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2813, in _dep_map
return self.__dep_map
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2624, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2804, in _parsed_pkg_info
return self._pkg_info
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2624, in __getattr__
raise AttributeError(attr)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/wheel.py", line 247, in move_wheel_files
prefix=prefix,
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/locations.py", line 140, in distutils_scheme
d = Distribution(dist_args)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 320, in __init__
_Distribution.__init__(self, attrs)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 386, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2324, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 862, in resolve
new_requirements = dist.requires(req.extras)[::-1]
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2568, in requires
dm = self._dep_map
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2815, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2824, in _compute_dependencies
for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2806, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1468, in get_metadata
value = self._get(self._fn(self.egg_info, name))
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1577, in _get
with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/appdirs-1.4.0.dist-info/METADATA'```
Fabric is running into issues that I think may be associated with this: Posting in the hope it provides some help?...
[server] out: Uninstalling appdirs-1.4.0:
[server] out: Successfully uninstalled appdirs-1.4.0
[server] out: Rolling back uninstall of appdirs
[server] out: Exception:
[server] out: Traceback (most recent call last):
[server] out: File "/home/ubuntu/.virtualenvs/my-website/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
[server] out: status = self.run(options, args)
[server] out: File "/home/ubuntu/.virtualenvs/my-website/local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
I was also facing issue some like above i.e.
==> app: IOError: [Errno 2] No such file or directory: '/env/lib/python2.7/site-packages/appdirs-1.4.2.dist-info/METADATA'
I fixed this issue by installing "requests[security]" instead of "requests == x.xx.x"
The workaround I've used is to install pip from the pypa/pip#4264 hotfix branch, which has now been merged to master, so if you use the unreleased pip from master, that may serve as a workaround.
Activity
alimanfoo commentedon Feb 23, 2017
jakirkham commentedon Feb 23, 2017
Indeed, I think this is actually a consequence of
setuptoolschoosing to no longer vendor their dependencies, but require them instead. Asappdirsis one of them, it looks like this is somehow breakingsetuptoolswhen it gets removed.xref: pypa/setuptools#933
jakirkham commentedon Feb 23, 2017
@jaraco, are you able to make more sense out of what is going on here?
zoofood commentedon Feb 23, 2017
Sounds like this is related to the circular dependency problem that came up recently in item #87? I will get a release out tonight for this.
jaraco commentedon Feb 23, 2017
Without the full traceback, it's hard to tell, but I suspect this issue lies in pypa/pip#4264, for which there's an open PR to address the issue.
jakirkham commentedon Feb 23, 2017
The full traceback is in the log link in the OP.
jaraco commentedon Feb 23, 2017
Aah, yes, pip 4264 is relevant there.
akszydelko commentedon Feb 24, 2017
I have a quick work around. The appdirs is a dependency of other third party apps in my project, but I have find out that if I execute the following command:
just before my regular
It works like a charm. Maybe that will help someone.
P.S. I in the third party app the dependency to appdirs is defined as
appdirs>=1.4.0zachriggle commentedon Feb 25, 2017
I'm also seeing this when upgrading to 1.4.2, in Gallopsled/pwntools#921
pomeo92 commentedon Feb 26, 2017
Looks like we got similar problem. Traceback is by the link http://logs.openstack.org/29/437829/1/check/gate-rally-dsvm-cli/c2e7383/console.html#_2017-02-24_16_00_21_386120
axsapronov commentedon Feb 27, 2017
+1, I have this error.
Lamadros commentedon Mar 2, 2017
pip install appdirs --upgradehelp me.
Also i add to requirements.txt :
appdirs==1.4.2nooperpudd commentedon Mar 4, 2017
thebalaa commentedon Mar 5, 2017
Fix:
pip install appdirs --upgrade && pip install -r requirements.txtddoshiopenstack commentedon Mar 7, 2017
appdir 1.4.2 uninstall still has issue. Will it be fixed soon? any update on bug?
Thanks
zoofood commentedon Mar 7, 2017
I believe this is upstream of appdirs (see above pypa/pip#4264). If I am mistaken please someone point me in the right direction to where I can help.
jackappleby commentedon Mar 7, 2017
Fabric is running into issues that I think may be associated with this: Posting in the hope it provides some help?...
...etc
rm appdirs req
jarcane commentedon Mar 8, 2017
I am having this issue on 1.4.3 as well. The aforementioned work around doesn't seem to work for me either.
Output:
thebalaa commentedon Mar 9, 2017
Unpinning setuptools requirements is a potential workaround. See https://github.com/alimanfoo/zarr/pull/126
nauman3128 commentedon Mar 9, 2017
I was also facing issue some like above i.e.
==> app: IOError: [Errno 2] No such file or directory: '/env/lib/python2.7/site-packages/appdirs-1.4.2.dist-info/METADATA'
I fixed this issue by installing "requests[security]" instead of "requests == x.xx.x"
I am not sure whether this will help or not...
underyx commentedon Mar 13, 2017
cryptographydepends onsetuptoolsso if we runpip-compile, it pins theappdirsversion.If you then try to use tox to run anything, it will
setuptoolsandappdirswith broken uninstallationappdirsversion pinned, triggering an uninstall and breaking everythingRather annoying.
jaraco commentedon Mar 13, 2017
The workaround I've used is to install pip from the pypa/pip#4264 hotfix branch, which has now been merged to master, so if you use the unreleased pip from master, that may serve as a workaround.
zoofood commentedon Mar 31, 2017
Closing as issue was upstream.
Should fix issue #89 with appdirs
Setting appdirs to release 1.4.2 (in response to ActiveState/appdirs#89)
upgrade appdirs to 1.4.2+
upgrade appdirs to 1.4.2+