Code Monkey home page Code Monkey logo

Comments (23)

akszydelko avatar akszydelko commented on August 28, 2024 50

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

from appdirs.

jarcane avatar jarcane commented on August 28, 2024 4

I am having this issue on 1.4.3 as well. The aforementioned work around doesn't seem to work for me either.

Output:

~/p/site-authentication (master|✔) $ vf new -p (which python3) site-auth
Running virtualenv with interpreter /usr/local/bin/python3
Using base prefix '/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/johnberry/.virtualenvs/site-auth/bin/python3.6
Also creating executable in /Users/johnberry/.virtualenvs/site-auth/bin/python
Installing setuptools, pip, wheel...done.
(site-auth) ~/p/site-authentication (master|✔) $ pip3 install appdirs --upgrade
Requirement already up-to-date: appdirs in /Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages
(site-auth) ~/p/site-authentication (master|✔) $ 
pip3 install -r requirements.txt --upgrade
Collecting appdirs==1.4.0 (from -r requirements.txt (line 1))
  Using cached appdirs-1.4.0-py2.py3-none-any.whl
Collecting awscli==1.11.19 (from -r requirements.txt (line 2))
  Using cached awscli-1.11.19-py2.py3-none-any.whl
Collecting bcrypt==3.1.1 (from -r requirements.txt (line 3))
Collecting blinker==1.4 (from -r requirements.txt (line 4))
Collecting boto3==1.4.3 (from -r requirements.txt (line 5))
  Using cached boto3-1.4.3-py2.py3-none-any.whl
Collecting botocore==1.4.76 (from -r requirements.txt (line 6))
  Using cached botocore-1.4.76-py2.py3-none-any.whl
Collecting cffi==1.9.1 (from -r requirements.txt (line 7))
  Using cached cffi-1.9.1-cp36-cp36m-macosx_10_6_intel.whl
Collecting click==6.7 (from -r requirements.txt (line 8))
  Using cached click-6.7-py2.py3-none-any.whl
Collecting colorama==0.3.7 (from -r requirements.txt (line 9))
  Using cached colorama-0.3.7-py2.py3-none-any.whl
Collecting coverage==4.2 (from -r requirements.txt (line 10))
Collecting cryptography==1.7.1 (from -r requirements.txt (line 11))
  Using cached cryptography-1.7.1-cp36-cp36m-macosx_10_10_x86_64.whl
Collecting datadog==0.14.0 (from -r requirements.txt (line 12))
Collecting decorator==4.0.10 (from -r requirements.txt (line 13))
  Using cached decorator-4.0.10-py2.py3-none-any.whl
Collecting docutils==0.12 (from -r requirements.txt (line 14))
  Using cached docutils-0.12-py3-none-any.whl
Collecting driftwood==1.1.21 (from -r requirements.txt (line 15))
Collecting flake8==3.2.1 (from -r requirements.txt (line 16))
  Using cached flake8-3.2.1-py2.py3-none-any.whl
Collecting Flask==0.12 (from -r requirements.txt (line 17))
  Using cached Flask-0.12-py2.py3-none-any.whl
Obtaining Flask_Inputs from git+https://github.com/waltsu/flask-inputs.git@295fab3a887deebedbe154652c0a4382bf08eff0#egg=Flask_Inputs (from -r requirements.txt (line 18))
  Cloning https://github.com/waltsu/flask-inputs.git (to 295fab3a887deebedbe154652c0a4382bf08eff0) to /Users/johnberry/.virtualenvs/site-auth/src/flask-inputs
  Could not find a tag or branch '295fab3a887deebedbe154652c0a4382bf08eff0', assuming commit.
Collecting Flask-Limiter==0.9.3 (from -r requirements.txt (line 19))
Collecting future==0.16.0 (from -r requirements.txt (line 20))
Collecting gunicorn==19.6.0 (from -r requirements.txt (line 21))
  Using cached gunicorn-19.6.0-py2.py3-none-any.whl
Collecting httplib2==0.9.2 (from -r requirements.txt (line 22))
Collecting idna==2.2 (from -r requirements.txt (line 23))
  Using cached idna-2.2-py2.py3-none-any.whl
Collecting itsdangerous==0.24 (from -r requirements.txt (line 24))
Collecting Jinja2==2.9.4 (from -r requirements.txt (line 25))
  Using cached Jinja2-2.9.4-py2.py3-none-any.whl
Collecting jmespath==0.9.0 (from -r requirements.txt (line 26))
  Using cached jmespath-0.9.0-py2.py3-none-any.whl
Collecting libnacl==1.4.3 (from -r requirements.txt (line 27))
Collecting limits==1.2.0 (from -r requirements.txt (line 28))
Collecting MarkupSafe==0.23 (from -r requirements.txt (line 29))
Collecting mccabe==0.5.2 (from -r requirements.txt (line 30))
  Using cached mccabe-0.5.2-py2.py3-none-any.whl
Collecting mock==2.0.0 (from -r requirements.txt (line 31))
  Using cached mock-2.0.0-py2.py3-none-any.whl
Collecting mockredispy==2.9.3 (from -r requirements.txt (line 32))
Collecting mongoengine==0.10.6 (from -r requirements.txt (line 33))
Collecting mongomock==3.7.0 (from -r requirements.txt (line 34))
  Using cached mongomock-3.7.0-py2.py3-none-any.whl
Collecting newrelic==2.74.0.54 (from -r requirements.txt (line 35))
Collecting oauth2client==4.0.0 (from -r requirements.txt (line 36))
  Using cached oauth2client-4.0.0-py2.py3-none-any.whl
Requirement already up-to-date: packaging==16.8 in /Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages (from -r requirements.txt (line 37))
Collecting pbr==1.10.0 (from -r requirements.txt (line 38))
  Using cached pbr-1.10.0-py2.py3-none-any.whl
Collecting phonenumbers==8.0.1 (from -r requirements.txt (line 39))
  Using cached phonenumbers-8.0.1-py2.py3-none-any.whl
Collecting py==1.4.31 (from -r requirements.txt (line 40))
  Using cached py-1.4.31-py2.py3-none-any.whl
Collecting pyasn1==0.1.9 (from -r requirements.txt (line 41))
  Using cached pyasn1-0.1.9-py2.py3-none-any.whl
Collecting pyasn1-modules==0.0.8 (from -r requirements.txt (line 42))
  Using cached pyasn1_modules-0.0.8-py2.py3-none-any.whl
Collecting pycodestyle==2.2.0 (from -r requirements.txt (line 43))
  Using cached pycodestyle-2.2.0-py2.py3-none-any.whl
Collecting pycountry==1.20 (from -r requirements.txt (line 44))
Collecting pycparser==2.17 (from -r requirements.txt (line 45))
Collecting pyflakes==1.3.0 (from -r requirements.txt (line 46))
  Using cached pyflakes-1.3.0-py2.py3-none-any.whl
Collecting PyJWT==1.4.2 (from -r requirements.txt (line 47))
  Using cached PyJWT-1.4.2-py2.py3-none-any.whl
Collecting pymongo==3.4.0 (from -r requirements.txt (line 48))
Collecting pyparsing==2.1.10 (from -r requirements.txt (line 49))
  Using cached pyparsing-2.1.10-py2.py3-none-any.whl
Collecting PySocks==1.6.6 (from -r requirements.txt (line 50))
Collecting pytest==3.0.4 (from -r requirements.txt (line 51))
  Using cached pytest-3.0.4-py2.py3-none-any.whl
Collecting pytest-cov==2.4.0 (from -r requirements.txt (line 52))
  Using cached pytest_cov-2.4.0-py2.py3-none-any.whl
Collecting python-dateutil==2.6.0 (from -r requirements.txt (line 53))
  Using cached python_dateutil-2.6.0-py2.py3-none-any.whl
Collecting pytz==2016.7 (from -r requirements.txt (line 54))
  Using cached pytz-2016.7-py2.py3-none-any.whl
Collecting PyYAML==3.12 (from -r requirements.txt (line 55))
Collecting redis==2.10.5 (from -r requirements.txt (line 56))
  Using cached redis-2.10.5-py2.py3-none-any.whl
Collecting requests==2.12.3 (from -r requirements.txt (line 57))
  Using cached requests-2.12.3-py2.py3-none-any.whl
Collecting rsa==3.4.2 (from -r requirements.txt (line 58))
  Using cached rsa-3.4.2-py2.py3-none-any.whl
Collecting s3transfer==0.1.9 (from -r requirements.txt (line 59))
  Using cached s3transfer-0.1.9-py2.py3-none-any.whl
Collecting sentinels==1.0.0 (from -r requirements.txt (line 60))
Collecting simplejson==3.10.0 (from -r requirements.txt (line 61))
Requirement already up-to-date: six==1.10.0 in /Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages (from -r requirements.txt (line 62))
Collecting statsd==3.2.1 (from -r requirements.txt (line 63))
  Using cached statsd-3.2.1-py2.py3-none-any.whl
Collecting twilio==5.7.0 (from -r requirements.txt (line 64))
Collecting Werkzeug==0.11.15 (from -r requirements.txt (line 65))
  Using cached Werkzeug-0.11.15-py2.py3-none-any.whl
Collecting WTForms==2.1 (from -r requirements.txt (line 66))
Requirement already up-to-date: setuptools>=11.3 in /Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages (from cryptography==1.7.1->-r requirements.txt (line 11))
Installing collected packages: appdirs, python-dateutil, jmespath, docutils, botocore, s3transfer, PyYAML, pyasn1, rsa, colorama, awscli, pycparser, cffi, bcrypt, blinker, boto3, click, coverage, idna, cryptography, requests, decorator, simplejson, datadog, driftwood, mccabe, pycodestyle, pyflakes, flake8, itsdangerous, Werkzeug, MarkupSafe, Jinja2, Flask, WTForms, Flask-Inputs, limits, Flask-Limiter, future, gunicorn, httplib2, libnacl, pbr, mock, mockredispy, pymongo, mongoengine, sentinels, mongomock, newrelic, pyasn1-modules, oauth2client, phonenumbers, py, pycountry, PyJWT, pyparsing, PySocks, pytest, pytest-cov, pytz, redis, statsd, twilio
  Found existing installation: appdirs 1.4.3
    Uninstalling appdirs-1.4.3:
      Successfully uninstalled appdirs-1.4.3
  Rolling back uninstall of appdirs
Exception:
Traceback (most recent call last):
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2813, in _dep_map
    return self.__dep_map
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/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 "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2804, in _parsed_pkg_info
    return self._pkg_info
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/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 "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pip/wheel.py", line 247, in move_wheel_files
    prefix=prefix,
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pip/locations.py", line 140, in distutils_scheme
    d = Distribution(dist_args)
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/setuptools/dist.py", line 320, in __init__
    _Distribution.__init__(self, attrs)
  File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 281, in __init__
    self.finalize_options()
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/setuptools/dist.py", line 386, in finalize_options
    ep.require(installer=self.fetch_build_egg)
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pkg_resources/__init__.py", line 862, in resolve
    new_requirements = dist.requires(req.extras)[::-1]
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2568, in requires
    dm = self._dep_map
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2815, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2824, in _compute_dependencies
    for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2806, in _parsed_pkg_info
    metadata = self.get_metadata(self.PKG_INFO)
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1468, in get_metadata
    value = self._get(self._fn(self.egg_info, name))
  File "/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1577, in _get
    with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/johnberry/.virtualenvs/site-auth/lib/python3.6/site-packages/appdirs-1.4.3.dist-info/METADATA'

from appdirs.

zachriggle avatar zachriggle commented on August 28, 2024 2

I'm also seeing this when upgrading to 1.4.2, in Gallopsled/pwntools#921

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'

from appdirs.

Lamadros avatar Lamadros commented on August 28, 2024 2

pip install appdirs --upgrade
help me.

Also i add to requirements.txt :

appdirs==1.4.2

from appdirs.

zoofood avatar zoofood commented on August 28, 2024 2

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.

from appdirs.

jaraco avatar jaraco commented on August 28, 2024 1

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.

from appdirs.

jakirkham avatar jakirkham commented on August 28, 2024 1

The full traceback is in the log link in the OP.

from appdirs.

jaraco avatar jaraco commented on August 28, 2024 1

Aah, yes, pip 4264 is relevant there.

from appdirs.

thebalaa avatar thebalaa commented on August 28, 2024 1

Fix: pip install appdirs --upgrade && pip install -r requirements.txt

from appdirs.

nauman3128 avatar nauman3128 commented on August 28, 2024 1

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...

from appdirs.

alimanfoo avatar alimanfoo commented on August 28, 2024

from appdirs.

jakirkham avatar jakirkham commented on August 28, 2024

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.

xref: pypa/setuptools#933

from appdirs.

jakirkham avatar jakirkham commented on August 28, 2024

@jaraco, are you able to make more sense out of what is going on here?

from appdirs.

zoofood avatar zoofood commented on August 28, 2024

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.

from appdirs.

pomeo92 avatar pomeo92 commented on August 28, 2024

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

from appdirs.

axsapronov avatar axsapronov commented on August 28, 2024

+1, I have this error.

from appdirs.

nooperpudd avatar nooperpudd commented on August 28, 2024
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'```

from appdirs.

ddoshiopenstack avatar ddoshiopenstack commented on August 28, 2024

appdir 1.4.2 uninstall still has issue. Will it be fixed soon? any update on bug?

Thanks

from appdirs.

jackappleby avatar jackappleby commented on August 28, 2024

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

...etc

from appdirs.

thebalaa avatar thebalaa commented on August 28, 2024

Unpinning setuptools requirements is a potential workaround. See https://github.com/alimanfoo/zarr/pull/126

from appdirs.

underyx avatar underyx commented on August 28, 2024

cryptography depends on setuptools so if we run pip-compile, it pins the appdirs version.

If you then try to use tox to run anything, it will

  1. Get the latest setuptools and appdirs with broken uninstallation
  2. Try to install our requirements which have a non-latest appdirs version pinned, triggering an uninstall and breaking everything

Rather annoying.

from appdirs.

jaraco avatar jaraco commented on August 28, 2024

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.

from appdirs.

zoofood avatar zoofood commented on August 28, 2024

Closing as issue was upstream.

from appdirs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.