Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed poetry install error on Python 3.11(due to pylint dependency) #73

Merged
merged 2 commits into from
Dec 4, 2022
Merged

Fixed poetry install error on Python 3.11(due to pylint dependency) #73

merged 2 commits into from
Dec 4, 2022

Conversation

fukusuket
Copy link
Contributor

@fukusuket fukusuket commented Dec 4, 2022

Thank you for maintaining pySigma :)
I don't know if it supports Python3.11, but I fixed a poetry installation error with Python3.11.

What Changed

  • updated tool.poetry.dev-dependencies version of pylint ^2.6.0 to ^2.15.7(Latest version as of today)

Motivation and Context

Poetry install fails with python3.11 as follows.

poetry install
Installing dependencies from lock file

Package operations: 0 installs, 23 updates, 0 removals

  • Updating pyparsing (3.0.9 -> 3.0.7)
  • Updating attrs (22.1.0 -> 21.4.0)
  • Updating certifi (2022.9.24 -> 2021.10.8)
  • Updating charset-normalizer (2.1.1 -> 2.0.12)
  • Updating idna (3.4 -> 3.3)
  • Updating lazy-object-proxy (1.8.0 -> 1.7.1): Installing...
  • Updating markupsafe (2.1.1 -> 2.1.0): Installing...
  • Updating pytz (2022.6 -> 2021.3)
  • Updating typing-extensions (4.4.0 -> 4.1.1)
  • Updating urllib3 (1.26.13 -> 1.26.8)
  • Updating wrapt (1.14.1 -> 1.13.3): Failed

  CalledProcessError

  Command '['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz']' returned non-zero exit status 1.

The cause of the above error is this wrapt issue.
I investigated the wrapt dependencies. Pylint depends on astroid -> wrapt as bellow,

so updating Pylint to the latest version resolved the issue.

Test

I have tested below.

Enviroment

  • macOS Ventura(Macbook Air, M1 2020)
  • Pyenv 2.3.7
  • Poetry 1.2.2

Python versions

I have tested in the three Python versions as below.

pyenv versions
  system
  3.8.15
  3.10.8
* 3.11.0 (set by PYENV_VERSION environment variable)

Commands

I have confirmed that the commands below are all successful with the above three Python versions.

poetry build
poetry update
poetry install
poetry run pytest --cov=sigma --cov-report term --cov-report xml:cov.xml -vv
poetry run python print-coverage.py
poetry run pylint --recursive=y ./

I would appreciate it if you could review🙏

@fukusuket fukusuket changed the title Fixed poetry install error on Python 3.11(due to pylint dependency version) Fixed poetry install error on Python 3.11(due to pylint dependency) Dec 4, 2022
@fukusuket
Copy link
Contributor Author

fukusuket commented Dec 4, 2022

The full stack trace of the Poetry install error is below.

pySigma % poetry install
Installing dependencies from lock file

Package operations: 0 installs, 23 updates, 0 removals

  • Updating pyparsing (3.0.9 -> 3.0.7)
  • Updating attrs (22.1.0 -> 21.4.0)
  • Updating certifi (2022.9.24 -> 2021.10.8)
  • Updating charset-normalizer (2.1.1 -> 2.0.12)
  • Updating idna (3.4 -> 3.3)
  • Updating lazy-object-proxy (1.8.0 -> 1.7.1): Installing...
  • Updating markupsafe (2.1.1 -> 2.1.0): Installing...
  • Updating pytz (2022.6 -> 2021.3)
  • Updating typing-extensions (4.4.0 -> 4.1.1)
  • Updating urllib3 (1.26.13 -> 1.26.8)
  • Updating wrapt (1.14.1 -> 1.13.3): Failed

  CalledProcessError

  Command '['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz']' returned non-zero exit status 1.

  at /opt/homebrew/Cellar/python@3.11/3.11.0/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py:569 in run
       565│             # We don't call process.wait() as .__exit__ does that for us.
       566│             raise
       567│         retcode = process.poll()
       568│         if check and retcode:
    →  569│             raise CalledProcessError(retcode, process.args,
       570│                                      output=stdout, stderr=stderr)
       571│     return CompletedProcess(process.args, retcode, stdout, stderr)
       572│
       573│

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz'] errored with the following return code 1, and output:
  WARNING: Skipping /Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/urllib3-1.26.13.dist-info due to invalid metadata entry 'name'
  WARNING: Ignoring invalid distribution ~harset-normalizer (/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages)
  WARNING: Skipping /Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/~ttrs-22.1.0.dist-info due to invalid metadata entry 'name'
  Processing /Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error

    × Preparing metadata (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [89 lines of output]
        Traceback (most recent call last):
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 81, in __getattr__
            return next(
                   ^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 82, in <genexpr>
            ast.literal_eval(value)
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 108, in literal_eval
            return _convert(node_or_string)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 107, in _convert
            return _convert_signed_num(node)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 81, in _convert_signed_num
            return _convert_num(node)
                   ^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 72, in _convert_num
            _raise_malformed_node(node)
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 69, in _raise_malformed_node
            raise ValueError(msg + f': {node!r}')
        ValueError: malformed node or string on line 2: <ast.Call object at 0x1022b4f10>

        The above exception was the direct cause of the following exception:

        Traceback (most recent call last):
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 191, in read_attr
            return getattr(StaticModule(module_name, spec), attr_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 87, in __getattr__
            raise AttributeError(f"{self.name} has no attribute {attr}") from e
        AttributeError: wrapt has no attribute __version__

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
            main()
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
            return hook(metadata_directory, config_settings)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
            self.run_setup()
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
            self).run_setup(setup_script=setup_script)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
            exec(code, locals())
          File "<string>", line 41, in <module>
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
            return distutils.core.setup(**attrs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 159, in setup
            dist.parse_config_files()
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/_virtualenv.py", line 21, in parse_config_files
            result = old_parse_config_files(self, *args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 863, in parse_config_files
            setupcfg.parse_configuration(
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 174, in parse_configuration
            meta.parse()
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 496, in parse
            section_parser_method(section_options)
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 470, in parse_section
            self[name] = value
            ~~~~^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 278, in __setitem__
            value = parser(value)
                    ^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 602, in _parse_version
            return expand.version(self._parse_attr(value, self.package_dir, self.root_dir))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 412, in _parse_attr
            return expand.read_attr(attr_desc, package_dir, root_dir)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 194, in read_attr
            module = _load_spec(spec, module_name)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 214, in _load_spec
            spec.loader.exec_module(module)  # type: ignore
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "<frozen importlib._bootstrap_external>", line 940, in exec_module
          File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-req-build-5qnji9rw/src/wrapt/__init__.py", line 10, in <module>
            from .decorators import (adapter_factory, AdapterFactory, decorator,
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-req-build-5qnji9rw/src/wrapt/decorators.py", line 34, in <module>
            from inspect import ismethod, isclass, formatargspec
        ImportError: cannot import name 'formatargspec' from 'inspect' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)
        [end of output]

  • Updating pytz (2022.6 -> 2021.3)
  • Updating typing-extensions (4.4.0 -> 4.1.1)
  • Updating urllib3 (1.26.13 -> 1.26.8)
  • Updating wrapt (1.14.1 -> 1.13.3): Failed

  CalledProcessError

  Command '['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz']' returned non-zero exit status 1.

  at /opt/homebrew/Cellar/python@3.11/3.11.0/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py:569 in run
       565│             # We don't call process.wait() as .__exit__ does that for us.
       566│             raise
       567│         retcode = process.poll()
       568│         if check and retcode:
    →  569│             raise CalledProcessError(retcode, process.args,
       570│                                      output=stdout, stderr=stderr)
       571│     return CompletedProcess(process.args, retcode, stdout, stderr)
       572│
       573│

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz'] errored with the following return code 1, and output:
  WARNING: Skipping /Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/urllib3-1.26.13.dist-info due to invalid metadata entry 'name'
  WARNING: Ignoring invalid distribution ~harset-normalizer (/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages)
  WARNING: Skipping /Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/~ttrs-22.1.0.dist-info due to invalid metadata entry 'name'
  Processing /Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error

    × Preparing metadata (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [89 lines of output]
        Traceback (most recent call last):
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 81, in __getattr__
            return next(
                   ^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 82, in <genexpr>
            ast.literal_eval(value)
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 108, in literal_eval
            return _convert(node_or_string)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 107, in _convert
            return _convert_signed_num(node)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 81, in _convert_signed_num
            return _convert_num(node)
                   ^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 72, in _convert_num
            _raise_malformed_node(node)
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 69, in _raise_malformed_node
            raise ValueError(msg + f': {node!r}')
        ValueError: malformed node or string on line 2: <ast.Call object at 0x1022b4f10>

        The above exception was the direct cause of the following exception:

        Traceback (most recent call last):
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 191, in read_attr
            return getattr(StaticModule(module_name, spec), attr_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 87, in __getattr__
            raise AttributeError(f"{self.name} has no attribute {attr}") from e
        AttributeError: wrapt has no attribute __version__

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
            main()
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
            return hook(metadata_directory, config_settings)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
            self.run_setup()
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
            self).run_setup(setup_script=setup_script)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
            exec(code, locals())
          File "<string>", line 41, in <module>
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
            return distutils.core.setup(**attrs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 159, in setup
            dist.parse_config_files()
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/_virtualenv.py", line 21, in parse_config_files
            result = old_parse_config_files(self, *args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 863, in parse_config_files
            setupcfg.parse_configuration(
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 174, in parse_configuration
            meta.parse()
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 496, in parse
            section_parser_method(section_options)
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 470, in parse_section
            self[name] = value
            ~~~~^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 278, in __setitem__
            value = parser(value)
                    ^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 602, in _parse_version
            return expand.version(self._parse_attr(value, self.package_dir, self.root_dir))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 412, in _parse_attr
            return expand.read_attr(attr_desc, package_dir, root_dir)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 194, in read_attr
            module = _load_spec(spec, module_name)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 214, in _load_spec
            spec.loader.exec_module(module)  # type: ignore
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "<frozen importlib._bootstrap_external>", line 940, in exec_module
          File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-req-build-5qnji9rw/src/wrapt/__init__.py", line 10, in <module>
            from .decorators import (adapter_factory, AdapterFactory, decorator,
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-req-build-5qnji9rw/src/wrapt/decorators.py", line 34, in <module>
            from inspect import ismethod, isclass, formatargspec
        ImportError: cannot import name 'formatargspec' from 'inspect' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)
        [end of output]

  • Updating markupsafe (2.1.1 -> 2.1.0)
  • Updating pytz (2022.6 -> 2021.3)
  • Updating typing-extensions (4.4.0 -> 4.1.1)
  • Updating urllib3 (1.26.13 -> 1.26.8)
  • Updating wrapt (1.14.1 -> 1.13.3): Failed

  CalledProcessError

  Command '['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz']' returned non-zero exit status 1.

  at /opt/homebrew/Cellar/python@3.11/3.11.0/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py:569 in run
       565│             # We don't call process.wait() as .__exit__ does that for us.
       566│             raise
       567│         retcode = process.poll()
       568│         if check and retcode:
    →  569│             raise CalledProcessError(retcode, process.args,
       570│                                      output=stdout, stderr=stderr)
       571│     return CompletedProcess(process.args, retcode, stdout, stderr)
       572│
       573│

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz'] errored with the following return code 1, and output:
  WARNING: Skipping /Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/urllib3-1.26.13.dist-info due to invalid metadata entry 'name'
  WARNING: Ignoring invalid distribution ~harset-normalizer (/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages)
  WARNING: Skipping /Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/~ttrs-22.1.0.dist-info due to invalid metadata entry 'name'
  Processing /Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error

    × Preparing metadata (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [89 lines of output]
        Traceback (most recent call last):
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 81, in __getattr__
            return next(
                   ^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 82, in <genexpr>
            ast.literal_eval(value)
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 108, in literal_eval
            return _convert(node_or_string)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 107, in _convert
            return _convert_signed_num(node)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 81, in _convert_signed_num
            return _convert_num(node)
                   ^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 72, in _convert_num
            _raise_malformed_node(node)
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 69, in _raise_malformed_node
            raise ValueError(msg + f': {node!r}')
        ValueError: malformed node or string on line 2: <ast.Call object at 0x1022b4f10>

        The above exception was the direct cause of the following exception:

        Traceback (most recent call last):
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 191, in read_attr
            return getattr(StaticModule(module_name, spec), attr_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 87, in __getattr__
            raise AttributeError(f"{self.name} has no attribute {attr}") from e
        AttributeError: wrapt has no attribute __version__

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
            main()
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
            return hook(metadata_directory, config_settings)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
            self.run_setup()
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
            self).run_setup(setup_script=setup_script)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
            exec(code, locals())
          File "<string>", line 41, in <module>
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
            return distutils.core.setup(**attrs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 159, in setup
            dist.parse_config_files()
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/_virtualenv.py", line 21, in parse_config_files
            result = old_parse_config_files(self, *args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 863, in parse_config_files
            setupcfg.parse_configuration(
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 174, in parse_configuration
            meta.parse()
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 496, in parse
            section_parser_method(section_options)
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 470, in parse_section
            self[name] = value
            ~~~~^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 278, in __setitem__
            value = parser(value)
                    ^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 602, in _parse_version
            return expand.version(self._parse_attr(value, self.package_dir, self.root_dir))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 412, in _parse_attr
            return expand.read_attr(attr_desc, package_dir, root_dir)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 194, in read_attr
            module = _load_spec(spec, module_name)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 214, in _load_spec
            spec.loader.exec_module(module)  # type: ignore
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "<frozen importlib._bootstrap_external>", line 940, in exec_module
          File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-req-build-5qnji9rw/src/wrapt/__init__.py", line 10, in <module>
            from .decorators import (adapter_factory, AdapterFactory, decorator,
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-req-build-5qnji9rw/src/wrapt/decorators.py", line 34, in <module>
            from inspect import ismethod, isclass, formatargspec
        ImportError: cannot import name 'formatargspec' from 'inspect' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)
        [end of output]

  • Updating markupsafe (2.1.1 -> 2.1.0)
  • Updating pytz (2022.6 -> 2021.3)
  • Updating typing-extensions (4.4.0 -> 4.1.1)
  • Updating urllib3 (1.26.13 -> 1.26.8)
  • Updating wrapt (1.14.1 -> 1.13.3): Failed

  CalledProcessError

  Command '['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz']' returned non-zero exit status 1.

  at /opt/homebrew/Cellar/python@3.11/3.11.0/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py:569 in run
       565│             # We don't call process.wait() as .__exit__ does that for us.
       566│             raise
       567│         retcode = process.poll()
       568│         if check and retcode:
    →  569│             raise CalledProcessError(retcode, process.args,
       570│                                      output=stdout, stderr=stderr)
       571│     return CompletedProcess(process.args, retcode, stdout, stderr)
       572│
       573│

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz'] errored with the following return code 1, and output:
  WARNING: Skipping /Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/urllib3-1.26.13.dist-info due to invalid metadata entry 'name'
  WARNING: Ignoring invalid distribution ~harset-normalizer (/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages)
  WARNING: Skipping /Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/~ttrs-22.1.0.dist-info due to invalid metadata entry 'name'
  Processing /Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error

    × Preparing metadata (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [89 lines of output]
        Traceback (most recent call last):
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 81, in __getattr__
            return next(
                   ^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 82, in <genexpr>
            ast.literal_eval(value)
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 108, in literal_eval
            return _convert(node_or_string)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 107, in _convert
            return _convert_signed_num(node)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 81, in _convert_signed_num
            return _convert_num(node)
                   ^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 72, in _convert_num
            _raise_malformed_node(node)
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 69, in _raise_malformed_node
            raise ValueError(msg + f': {node!r}')
        ValueError: malformed node or string on line 2: <ast.Call object at 0x1022b4f10>

        The above exception was the direct cause of the following exception:

        Traceback (most recent call last):
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 191, in read_attr
            return getattr(StaticModule(module_name, spec), attr_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 87, in __getattr__
            raise AttributeError(f"{self.name} has no attribute {attr}") from e
        AttributeError: wrapt has no attribute __version__

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
            main()
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
            return hook(metadata_directory, config_settings)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
            self.run_setup()
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
            self).run_setup(setup_script=setup_script)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
            exec(code, locals())
          File "<string>", line 41, in <module>
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
            return distutils.core.setup(**attrs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 159, in setup
            dist.parse_config_files()
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/_virtualenv.py", line 21, in parse_config_files
            result = old_parse_config_files(self, *args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 863, in parse_config_files
            setupcfg.parse_configuration(
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 174, in parse_configuration
            meta.parse()
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 496, in parse
            section_parser_method(section_options)
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 470, in parse_section
            self[name] = value
            ~~~~^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 278, in __setitem__
            value = parser(value)
                    ^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 602, in _parse_version
            return expand.version(self._parse_attr(value, self.package_dir, self.root_dir))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 412, in _parse_attr
            return expand.read_attr(attr_desc, package_dir, root_dir)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 194, in read_attr
            module = _load_spec(spec, module_name)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 214, in _load_spec
            spec.loader.exec_module(module)  # type: ignore
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "<frozen importlib._bootstrap_external>", line 940, in exec_module
          File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-req-build-5qnji9rw/src/wrapt/__init__.py", line 10, in <module>
            from .decorators import (adapter_factory, AdapterFactory, decorator,
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-req-build-5qnji9rw/src/wrapt/decorators.py", line 34, in <module>
            from inspect import ismethod, isclass, formatargspec
        ImportError: cannot import name 'formatargspec' from 'inspect' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)
        [end of output]

  • Updating lazy-object-proxy (1.8.0 -> 1.7.1)
  • Updating markupsafe (2.1.1 -> 2.1.0)
  • Updating pytz (2022.6 -> 2021.3)
  • Updating typing-extensions (4.4.0 -> 4.1.1)
  • Updating urllib3 (1.26.13 -> 1.26.8)
  • Updating wrapt (1.14.1 -> 1.13.3): Failed

  CalledProcessError

  Command '['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz']' returned non-zero exit status 1.

  at /opt/homebrew/Cellar/python@3.11/3.11.0/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py:569 in run
       565│             # We don't call process.wait() as .__exit__ does that for us.
       566│             raise
       567│         retcode = process.poll()
       568│         if check and retcode:
    →  569│             raise CalledProcessError(retcode, process.args,
       570│                                      output=stdout, stderr=stderr)
       571│     return CompletedProcess(process.args, retcode, stdout, stderr)
       572│
       573│

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11', '--upgrade', '--no-deps', '/Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz'] errored with the following return code 1, and output:
  WARNING: Skipping /Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/urllib3-1.26.13.dist-info due to invalid metadata entry 'name'
  WARNING: Ignoring invalid distribution ~harset-normalizer (/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages)
  WARNING: Skipping /Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/~ttrs-22.1.0.dist-info due to invalid metadata entry 'name'
  Processing /Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error

    × Preparing metadata (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [89 lines of output]
        Traceback (most recent call last):
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 81, in __getattr__
            return next(
                   ^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 82, in <genexpr>
            ast.literal_eval(value)
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 108, in literal_eval
            return _convert(node_or_string)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 107, in _convert
            return _convert_signed_num(node)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 81, in _convert_signed_num
            return _convert_num(node)
                   ^^^^^^^^^^^^^^^^^^
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 72, in _convert_num
            _raise_malformed_node(node)
          File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ast.py", line 69, in _raise_malformed_node
            raise ValueError(msg + f': {node!r}')
        ValueError: malformed node or string on line 2: <ast.Call object at 0x1022b4f10>

        The above exception was the direct cause of the following exception:

        Traceback (most recent call last):
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 191, in read_attr
            return getattr(StaticModule(module_name, spec), attr_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 87, in __getattr__
            raise AttributeError(f"{self.name} has no attribute {attr}") from e
        AttributeError: wrapt has no attribute __version__

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
            main()
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
            return hook(metadata_directory, config_settings)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
            self.run_setup()
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
            self).run_setup(setup_script=setup_script)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
            exec(code, locals())
          File "<string>", line 41, in <module>
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
            return distutils.core.setup(**attrs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 159, in setup
            dist.parse_config_files()
          File "/Users/fukusuke/Library/Caches/pypoetry/virtualenvs/pysigma-6bG2Vo7o-py3.11/lib/python3.11/site-packages/_virtualenv.py", line 21, in parse_config_files
            result = old_parse_config_files(self, *args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 863, in parse_config_files
            setupcfg.parse_configuration(
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 174, in parse_configuration
            meta.parse()
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 496, in parse
            section_parser_method(section_options)
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 470, in parse_section
            self[name] = value
            ~~~~^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 278, in __setitem__
            value = parser(value)
                    ^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 602, in _parse_version
            return expand.version(self._parse_attr(value, self.package_dir, self.root_dir))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py", line 412, in _parse_attr
            return expand.read_attr(attr_desc, package_dir, root_dir)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 194, in read_attr
            module = _load_spec(spec, module_name)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-build-env-pff9j6io/overlay/lib/python3.11/site-packages/setuptools/config/expand.py", line 214, in _load_spec
            spec.loader.exec_module(module)  # type: ignore
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "<frozen importlib._bootstrap_external>", line 940, in exec_module
          File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-req-build-5qnji9rw/src/wrapt/__init__.py", line 10, in <module>
            from .decorators import (adapter_factory, AdapterFactory, decorator,
          File "/private/var/folders/18/kf80rmj14pn8jvl2w93v09zc0000gn/T/pip-req-build-5qnji9rw/src/wrapt/decorators.py", line 34, in <module>
            from inspect import ismethod, isclass, formatargspec
        ImportError: cannot import name 'formatargspec' from 'inspect' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: metadata-generation-failed

  × Encountered error while generating package metadata.
  ╰─> See above for output.

  note: This is an issue with the package mentioned above, not pip.
  hint: See above for details.


  at ~/.local/pipx/venvs/poetry/lib/python3.11/site-packages/poetry/utils/env.py:1476 in _run
      1472│                 output = subprocess.check_output(
      1473│                     command, stderr=subprocess.STDOUT, env=env, **kwargs
      1474│                 )
      1475│         except CalledProcessError as e:
    → 1476│             raise EnvCommandError(e, input=input_)
      1477│
      1478│         return decode(output)
      1479│
      1480│     def execute(self, bin: str, *args: str, **kwargs: Any) -> int:

The following error occurred when trying to handle this error:


  PoetryException

  Failed to install /Users/fukusuke/Library/Caches/pypoetry/artifacts/34/4b/97/827f011ee5f21eaf8dc466228cf827c4a447b1721d25442bfc9bb48a7a/wrapt-1.13.3.tar.gz

  at ~/.local/pipx/venvs/poetry/lib/python3.11/site-packages/poetry/utils/pip.py:51 in pip_install
       47│
       48│     try:
       49│         return environment.run_pip(*args)
       50│     except EnvCommandError as e:
    →  51│         raise PoetryException(f"Failed to install {path.as_posix()}") from e
       52│

fukusuke@fukusukenoAir pySigma %

@thomaspatzke
Copy link
Member

Thanks, that's great! Just didn't came to add Python 3.11, now it's done 👍

Can you add 3.11 to the test matrix here: https://github.com/SigmaHQ/pySigma/blob/main/.github/workflows/test.yml#L14 ?

@fukusuket
Copy link
Contributor Author

fukusuket commented Dec 4, 2022

Thanks for your quick comment :) I'll add test matrix and also investigate github actions error on win2019!

@thomaspatzke
Copy link
Member

I already fixed the Windows error Yesterday by removing rope from the development dependencies. Just rebase to the current main branch or merge it into yours should do it.

@fukusuket
Copy link
Contributor Author

This PR already contained the above fix(removing rope from the devdependencies) ... 🤔
IMHO another problem occur? However, the same error(github actions) was not reproduced on my Win11 + Python3.9.13 enviroment ...

@thomaspatzke thomaspatzke merged commit f78c8f2 into SigmaHQ:main Dec 4, 2022
@thomaspatzke
Copy link
Member

I've done a "Rebase&merge", should work 😉

@fukusuket fukusuket deleted the fix-poetry-install-error-on-python311 branch December 4, 2022 11:43
@thomaspatzke
Copy link
Member

Seems to be now a different package that makes problems 😌 And yes, it appears to be restricted to Python 3.9.

@fukusuket
Copy link
Contributor Author

fukusuket commented Dec 4, 2022

Thank you so much for merging :) If I find out anything about the windows error, I'd like to share.

@fukusuket
Copy link
Contributor Author

I have also tried in Windows 2019 Datacenter edition(on aws) + Python 3.9.13, but poetry install suceeded ... 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants