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

Cannot install via pip: 'extras_require' must be a dictionary whose values are strings or lists of strings #538

Open
MSchmoecker opened this issue Feb 6, 2025 · 3 comments

Comments

@MSchmoecker
Copy link

Error:

$ pip3 install aas-core-codegen
Collecting aas-core-codegen
  Using cached aas-core-codegen-0.0.15.tar.gz (217 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in aas-core-codegen setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
      [end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

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

Pip:

$ pip3 --version
pip 25.0 from C:\Users\<user>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pip (python 3.11)
@mristin
Copy link
Contributor

mristin commented Feb 6, 2025

@MSchmoecker thanks for reporting!

There is unfortunately no way to include Git repos as dependency in newer setuptools versions.

There is a workaround:
https://pypi.org/project/setuptools-git-versioning/

, but I haven't had time to explore it in more detail.

Aas-core-codegen depends on aas-core-meta repo for tests, but we should decouple them. I'll try to do this in the next few days.

@mristin
Copy link
Contributor

mristin commented Feb 7, 2025

Hi @MSchmoecker ,
Just a short update on this issue. @otto-ifak is actively working on #527. It is quite a large feature cutting pretty much through all the modules. To avoid fixing 1001 merge conflict, we decided to merge #527, and then I'll take care of this issue (which is comparatively small).

In terms of timeline, the big bulk of #527 should be finished till end of April 2025; the final merge is expected towards the end of May 2025.

@mristin
Copy link
Contributor

mristin commented Feb 7, 2025

If you want to use aas-core-codegen in the meanwhile, please consider going back to Python 3.10 and using older versions of setuptools and pip.

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

2 participants