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 safetensors: maturin failed project.version field is required in pyproject.toml #547

Open
2 tasks
johnpc opened this issue Dec 27, 2024 · 2 comments

Comments

@johnpc
Copy link

johnpc commented Dec 27, 2024

System Info

n/a

Information

  • The official example scripts
  • My own modified scripts

Reproduction

pip install safetensors

Expected behavior

it should successfully install.

@johnpc
Copy link
Author

johnpc commented Dec 27, 2024

see also microsoft/graphrag#1559 (comment)

@mwd102
Copy link

mwd102 commented Dec 28, 2024

You might want to wait for the proper upstream fix but you can get going by manually loading safetensors from the tarball.

  1. Get the 0.4.5 tarball from here: https://pypi.org/project/safetensors/#files
  2. Decompress and edit the contained pyproject.toml by adding a version under [project] e.g.
[project]
name = 'safetensors'
version = '0.4.5
  1. Recompress to a tar.gz (making sure the toml is in the root)
    4) run pip install path/toyour/tar.gz

You might need to manually add missing deps one by one but safetensors will install.

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