benhodgson / protobuf-to-dict

A small Python library for creating dicts from protocol buffers. Useful as an intermediate step before serialization (e.g. to JSON).
Other
226 stars 108 forks source link

error: legacy-install-failure #22

Open post2web opened 1 year ago

post2web commented 1 year ago

Attempt to install with pip install protobuf-to-dict or python setup.py install . results to:

pip install protobuf-to-dict
Looking in indexes: https://artifact.intuit.com/artifactory/api/pypi/pypi-intuit/simple, https://artifact.intuit.com/artifactory/api/pypi/pypi-local-data-science/simple, https://pypi.python.org/simple
Collecting protobuf-to-dict
  Downloading protobuf-to-dict-0.1.0.tar.gz (2.8 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: protobuf>=2.3.0 in ./.pyenv/versions/3.8.9/lib/python3.8/site-packages (from protobuf-to-dict) (3.19.4)
Building wheels for collected packages: protobuf-to-dict
  Building wheel for protobuf-to-dict (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      /Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/rr/sq0vmrlj1zl_4dnmclwghwy40000gn/T/pip-install-1mpxzaji/protobuf-to-dict_d9d1d99a78824f77942d56b95a2605ce/setup.py", line 3, in <module>
          setup(
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/__init__.py", line 86, in setup
          _install_setup_requires(attrs)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
          dist.fetch_build_eggs(dist.setup_requires)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/dist.py", line 875, in fetch_build_eggs
          resolved_dists = pkg_resources.working_set.resolve(
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pkg_resources/__init__.py", line 789, in resolve
          dist = best[req.key] = env.best_match(
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1075, in best_match
          return self.obtain(req, installer)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1087, in obtain
          return installer(requirement)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/dist.py", line 945, in fetch_build_egg
          return fetch_build_egg(self, req)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/installer.py", line 87, in fetch_build_egg
          wheel.install_as_egg(dist_location)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/wheel.py", line 96, in install_as_egg
          self._install_as_egg(destination_eggdir, zf)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/wheel.py", line 104, in _install_as_egg
          self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/wheel.py", line 148, in _convert_metadata
          os.rename(dist_info, egg_info)
      OSError: [Errno 66] Directory not empty: '/private/var/folders/rr/sq0vmrlj1zl_4dnmclwghwy40000gn/T/pip-install-1mpxzaji/protobuf-to-dict_d9d1d99a78824f77942d56b95a2605ce/.eggs/coverage-7.0.5-py3.8-macosx-11.3-x86_64.egg/coverage-7.0.5.dist-info' -> '/private/var/folders/rr/sq0vmrlj1zl_4dnmclwghwy40000gn/T/pip-install-1mpxzaji/protobuf-to-dict_d9d1d99a78824f77942d56b95a2605ce/.eggs/coverage-7.0.5-py3.8-macosx-11.3-x86_64.egg/EGG-INFO'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for protobuf-to-dict
  Running setup.py clean for protobuf-to-dict
  error: subprocess-exited-with-error

  × python setup.py clean did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      /Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/rr/sq0vmrlj1zl_4dnmclwghwy40000gn/T/pip-install-1mpxzaji/protobuf-to-dict_d9d1d99a78824f77942d56b95a2605ce/setup.py", line 3, in <module>
          setup(
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/__init__.py", line 86, in setup
          _install_setup_requires(attrs)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
          dist.fetch_build_eggs(dist.setup_requires)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/dist.py", line 875, in fetch_build_eggs
          resolved_dists = pkg_resources.working_set.resolve(
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pkg_resources/__init__.py", line 789, in resolve
          dist = best[req.key] = env.best_match(
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1075, in best_match
          return self.obtain(req, installer)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1087, in obtain
          return installer(requirement)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/dist.py", line 945, in fetch_build_egg
          return fetch_build_egg(self, req)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/installer.py", line 87, in fetch_build_egg
          wheel.install_as_egg(dist_location)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/wheel.py", line 96, in install_as_egg
          self._install_as_egg(destination_eggdir, zf)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/wheel.py", line 104, in _install_as_egg
          self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/wheel.py", line 148, in _convert_metadata
          os.rename(dist_info, egg_info)
      OSError: [Errno 66] Directory not empty: '/private/var/folders/rr/sq0vmrlj1zl_4dnmclwghwy40000gn/T/pip-install-1mpxzaji/protobuf-to-dict_d9d1d99a78824f77942d56b95a2605ce/.eggs/coverage-7.0.5-py3.8-macosx-11.3-x86_64.egg/coverage-7.0.5.dist-info' -> '/private/var/folders/rr/sq0vmrlj1zl_4dnmclwghwy40000gn/T/pip-install-1mpxzaji/protobuf-to-dict_d9d1d99a78824f77942d56b95a2605ce/.eggs/coverage-7.0.5-py3.8-macosx-11.3-x86_64.egg/EGG-INFO'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed cleaning build dir for protobuf-to-dict
Failed to build protobuf-to-dict
Installing collected packages: protobuf-to-dict
  Running setup.py install for protobuf-to-dict ... error
  error: subprocess-exited-with-error

  × Running setup.py install for protobuf-to-dict did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      /Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/rr/sq0vmrlj1zl_4dnmclwghwy40000gn/T/pip-install-1mpxzaji/protobuf-to-dict_d9d1d99a78824f77942d56b95a2605ce/setup.py", line 3, in <module>
          setup(
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/__init__.py", line 86, in setup
          _install_setup_requires(attrs)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
          dist.fetch_build_eggs(dist.setup_requires)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/dist.py", line 875, in fetch_build_eggs
          resolved_dists = pkg_resources.working_set.resolve(
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pkg_resources/__init__.py", line 789, in resolve
          dist = best[req.key] = env.best_match(
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1075, in best_match
          return self.obtain(req, installer)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1087, in obtain
          return installer(requirement)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/dist.py", line 945, in fetch_build_egg
          return fetch_build_egg(self, req)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/installer.py", line 87, in fetch_build_egg
          wheel.install_as_egg(dist_location)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/wheel.py", line 96, in install_as_egg
          self._install_as_egg(destination_eggdir, zf)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/wheel.py", line 104, in _install_as_egg
          self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
        File "/Users/iangelov/.pyenv/versions/3.8.9/lib/python3.8/site-packages/setuptools/wheel.py", line 148, in _convert_metadata
          os.rename(dist_info, egg_info)
      OSError: [Errno 66] Directory not empty: '/private/var/folders/rr/sq0vmrlj1zl_4dnmclwghwy40000gn/T/pip-install-1mpxzaji/protobuf-to-dict_d9d1d99a78824f77942d56b95a2605ce/.eggs/coverage-7.0.5-py3.8-macosx-11.3-x86_64.egg/coverage-7.0.5.dist-info' -> '/private/var/folders/rr/sq0vmrlj1zl_4dnmclwghwy40000gn/T/pip-install-1mpxzaji/protobuf-to-dict_d9d1d99a78824f77942d56b95a2605ce/.eggs/coverage-7.0.5-py3.8-macosx-11.3-x86_64.egg/EGG-INFO'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> protobuf-to-dict

note: This is an issue with the package mentioned above, not pip.