dsoprea / PythonEtcdClient

A simple and efficient etcd client that exposes all functions and just works.
21 stars 9 forks source link

Installation is not working #11

Open fannigurt opened 1 year ago

fannigurt commented 1 year ago

Hi! Just tried to install this lib with poetry Python 3.11, macOS

❯ poetry add etcd
Using version ^2.0.8 for etcd

Updating dependencies
Resolving dependencies... (0.1s)

Package operations: 2 installs, 0 updates, 0 removals

  • Installing pytz (2013.8): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke get_requires_for_build_wheel

  Traceback (most recent call last):
    File "/private/var/folders/9s/b20x6jx11vn1n56s9psrw6mr0000gn/T/tmpxkthggaj/pytz-2013.8/pytz/lazy.py", line 3, in <module>
      from UserDict import DictMixin
  ModuleNotFoundError: No module named 'UserDict'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/Users/fannigurt/Library/Application Support/pypoetry/venv/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/Users/fannigurt/Library/Application Support/pypoetry/venv/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/fannigurt/Library/Application Support/pypoetry/venv/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
             ^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/9s/b20x6jx11vn1n56s9psrw6mr0000gn/T/tmp4gnb0f22/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/9s/b20x6jx11vn1n56s9psrw6mr0000gn/T/tmp4gnb0f22/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
      self.run_setup()
    File "/private/var/folders/9s/b20x6jx11vn1n56s9psrw6mr0000gn/T/tmp4gnb0f22/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup
      self).run_setup(setup_script=setup_script)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/9s/b20x6jx11vn1n56s9psrw6mr0000gn/T/tmp4gnb0f22/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 5, in <module>
    File "/private/var/folders/9s/b20x6jx11vn1n56s9psrw6mr0000gn/T/tmpxkthggaj/pytz-2013.8/pytz/__init__.py", line 37, in <module>
      from pytz.lazy import LazyDict, LazyList, LazySet
    File "/private/var/folders/9s/b20x6jx11vn1n56s9psrw6mr0000gn/T/tmpxkthggaj/pytz-2013.8/pytz/lazy.py", line 5, in <module>
      from collections import Mapping as DictMixin
  ImportError: cannot import name 'Mapping' from 'collections' (/opt/homebrew/Cellar/python@3.11/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/collections/__init__.py)

  at ~/Library/Application Support/pypoetry/venv/lib/python3.11/site-packages/poetry/installation/chef.py:152 in _prepare
      148│ 
      149│                 error = ChefBuildError("\n\n".join(message_parts))
      150│ 
      151│             if error is not None:
    → 152│                 raise error from None
      153│ 
      154│             return path
      155│ 
      156│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with pytz (2013.8) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "pytz (==2013.8)"'.