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

In settings.ini min_python = 3.11 causes problem with pip install -e '.[dev]' #1372

Closed
Martin15135215 opened this issue Oct 18, 2023 · 2 comments · Fixed by #1373
Closed
Labels
bug Something isn't working

Comments

@Martin15135215
Copy link

Traceback:

pip install -e '.[dev]'
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [9 lines of output]

setup.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
        from pkg_resources import parse_version
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "setup.py", line 40, in <module>
          ] + ['Programming Language :: Python :: '+o for o in py_versions[py_versions.index(min_python):]] + (['License :: ' + lic[1] ] if lic[1] else []),
                                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ValueError: '3.11' is not in list
      [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.

@Martin15135215 Martin15135215 added the bug Something isn't working label Oct 18, 2023
@deven367
Copy link
Contributor

deven367 commented Oct 19, 2023

Yes, this is because the nbdev isn't tested with 3.11.

@Martin15135215
Copy link
Author

Thanks for the swift response!

Did you also fix the DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html? This was also shown in the traceback above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants