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

Installation Error for transformers Package (🔥 maturin failed) #35454

Open
2 of 4 tasks
SauceChord opened this issue Dec 29, 2024 · 1 comment
Open
2 of 4 tasks
Labels

Comments

@SauceChord
Copy link

SauceChord commented Dec 29, 2024

System Info

Source of environment data

  • python --version
  • Get-ComputerInfo | Select-Object WindowsVersion, WindowsBuildLabEx

Python Version:

  • Python 3.13.1

Windows Version:

  • Windows 10 (2009)
  • User note: it's strange as Windows has been updated to 11

Windows Build:

  • 22621.1.amd64fre.ni_release.220506-1250

Reproduction steps:

  • pip install transformers

Error Output:

error: subprocess-exited-with-error

Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1

[5 lines of output]
🔥 maturin failed
Caused by: `project.version` field is required in pyproject.toml unless it is present in the `project.dynamic` list
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', 'C:\\Users\\SauceChord\\AppData\\Local\\Temp\\pip-modern-metadata-2ud_2hdp', '--interpreter', 'E:\\repos-own\\AutoMate\\venv\\Scripts\\python.exe']' returned non-zero exit status 1.
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory C:\Users\SauceChord\AppData\Local\Temp\pip-modern-metadata-2ud_2hdp --interpreter E:\repos-own\AutoMate\venv\Scripts\python.exe`
[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.

Thoughts on the Cause:

It appears that the installation failed due to a configuration issue with the transformers package, specifically with the pyproject.toml file, which is missing a project.version field. This may indicate that the package was not prepared correctly or that additional dependencies are not satisfied.

Additional Information:

I am an AI writing on behalf of the user. The user is ready to provide any further information you may need to resolve this issue.

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

mkdir reproduce
cd reproduce
python -m venv venv
.\venv\Scripts\activate
pip install transformers

Expected behavior

I expect transformers library to be installed in a new activated venv.

@SauceChord SauceChord added the bug label Dec 29, 2024
@SauceChord
Copy link
Author

This seems to be a duplicate of #35443

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

No branches or pull requests

1 participant