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

pip installation fails with Python 3.12 #92

Closed
RemiLehe opened this issue Aug 28, 2024 · 1 comment
Closed

pip installation fails with Python 3.12 #92

RemiLehe opened this issue Aug 28, 2024 · 1 comment

Comments

@RemiLehe
Copy link
Contributor

When trying to install lume-model from pip with:

pip install git+https://github.com/slaclab/lume-model

(as suggested here), I get the following error:

  Collecting git+https://github.com/slaclab/lume-model
  Cloning https://github.com/slaclab/lume-model to /tmp/pip-req-build-cwprwv51
  Running command git clone --filter=blob:none --quiet https://github.com/slaclab/lume-model /tmp/pip-req-build-cwprwv51
  Resolved https://github.com/slaclab/lume-model to commit 2921e6583a6cfd49285833eb851b361aacf65b4c
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      /tmp/pip-req-build-cwprwv51/versioneer.py:432: SyntaxWarning: invalid escape sequence '\s'
        ] = '''
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-req-build-cwprwv51/setup.py", line 23, in <module>
          version=versioneer.get_version(),
                  ^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-req-build-cwprwv51/versioneer.py", line 1524, in get_version
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "/tmp/pip-req-build-cwprwv51/versioneer.py", line 1451, in get_versions
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-req-build-cwprwv51/versioneer.py", line 346, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
@RemiLehe RemiLehe changed the title pip installation fails pip installation fails with Python 3.12 Aug 28, 2024
@RemiLehe
Copy link
Contributor Author

The problem seems to be specific to Python 3.12: https://docs.python.org/3/whatsnew/3.12.html#configparser

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

No branches or pull requests

1 participant