Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

"Directory not empty" for charset_normalizer dist-info installing atlascli

$
0
0

I am trying to install some python modules on a virtualenv that I have created/activated on MacOS.

One such dependency is atlascli.

So in my requirements.txt there is an entry:

atlascli==0.2.8

When running pip install -r requirements.txt (also with --force-reinstall and/or --no-cache-dir)

  Running setup.py clean for atlascli  error: subprocess-exited-with-error× python setup.py clean did not run successfully.│ exit code: 1╰─> [42 lines of output]      /Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.      !!              ********************************************************************************              Requirements should be satisfied by a PEP 517 installer.              If you are using pip, you can try `pip install --use-pep517`.              ********************************************************************************      !!        dist.fetch_build_eggs(dist.setup_requires)      Traceback (most recent call last):        File "<string>", line 2, in <module>        File "<pip-setuptools-caller>", line 34, in <module>        File "/private/var/folders/9l/1234567891011/T/pip-install-12345678920/atlascli_12345678910111213/setup.py", line 44, in <module>          setup(        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/setuptools/__init__.py", line 102, in setup          _install_setup_requires(attrs)        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/setuptools/__init__.py", line 75, in _install_setup_requires          _fetch_build_eggs(dist)        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/setuptools/__init__.py", line 80, in _fetch_build_eggs          dist.fetch_build_eggs(dist.setup_requires)        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/setuptools/dist.py", line 636, in fetch_build_eggs          return _fetch_build_eggs(self, requires)        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs          resolved_dists = pkg_resources.working_set.resolve(        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 813, in resolve          dist = self._resolve_dist(        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 849, in _resolve_dist          dist = best[req.key] = env.best_match(        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1119, in best_match          return self.obtain(req, installer)        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1130, in obtain          return installer(requirement) if installer else None        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/setuptools/installer.py", line 106, in _fetch_build_egg_no_warn          wheel.install_as_egg(dist_location)        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/setuptools/wheel.py", line 120, in install_as_egg          self._install_as_egg(destination_eggdir, zf)        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/setuptools/wheel.py", line 128, in _install_as_egg          self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)        File "/Users/myusername/path/to/project/main/.venv/lib/python3.9/site-packages/setuptools/wheel.py", line 173, in _convert_metadata          os.rename(dist_info, egg_info)      OSError: [Errno 66] Directory not empty: '/private/var/folders/9l/1234567891011/T/pip-install-12345678920/atlascli_12345678910111213/.eggs/charset_normalizer-3.3.2-py3.9-macosx-10.9-universal2.egg/charset_normalizer-3.3.2.dist-info' -> '/private/var/folders/9l/1234567891011/T/pip-install-12345678920/atlascli_12345678910111213/.eggs/charset_normalizer-3.3.2-py3.9-macosx-10.9-universal2.egg/EGG-INFO'

What is this sorcery?


Viewing all articles
Browse latest Browse all 23160

Trending Articles