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

unable to install on python 3.12 via pip #1393

Closed
binary-husky opened this issue Nov 16, 2023 · 10 comments · Fixed by #1438
Closed

unable to install on python 3.12 via pip #1393

binary-husky opened this issue Nov 16, 2023 · 10 comments · Fixed by #1438

Comments

@binary-husky
Copy link

binary-husky commented Nov 16, 2023

Reproducing:

  1. conda create -n py12 python=3.12
  2. conda activate py12
  3. pip install tokenizers
pip install tokenizers
Collecting tokenizers
  Using cached tokenizers-0.15.0.tar.gz (318 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]

      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/

      Checking for Rust toolchain....
      [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.


@ArthurZucker
Copy link
Collaborator

You need to have cargo installed because we did not push wheels for mac with py>3.10. @Narsil should we try go up to 3.11 / 3.12 or are we limited by the runners ?

@binary-husky
Copy link
Author

binary-husky commented Nov 17, 2023

You need to have cargo installed because we did not push wheels for mac with py>3.10. @Narsil should we try go up to 3.11 / 3.12 or are we limited by the runners ?

No, I using x86 windows os, not mac. Additionally, I still cannot install tokenizers after pip install cargo. (In python 3.11, everything is fine even without cargo)

@ArthurZucker
Copy link
Collaborator

Sorry for the confusion. You have to install rust, and probably not through pip. We compiled the wheels for python up to 3.11 not above

@Narsil
Copy link
Collaborator

Narsil commented Nov 27, 2023

@ArthurZucker Would you be up to do a patch release with adding 3.12 support ?

@ArthurZucker
Copy link
Collaborator

Sure, I'll work on this this week 😉

@charlesdsmith
Copy link

charlesdsmith commented Nov 30, 2023

Hey @ArthurZucker would the lack of wheel compilation also be the reason for the following error?: /lib/python3.11/site-packages/tokenizers/tokenizers.cpython-311-x86_64-linux-gnu.so: ELF load command past end of file I'm on python 3.11.4.

I can't get chromadb to import tokenizers, it says it doesnt exist even though it does. I'm not sure if I should start a separate issue.

@Narsil
Copy link
Collaborator

Narsil commented Dec 5, 2023

ELF load command past end of file

This means corrupted file, probably unfinished download or something along those lines, delete the folder a install again I think.

@ArthurZucker
Copy link
Collaborator

See #1406 that will try to release for windows x python 3.12

@github-actions github-actions bot added the Stale label Jan 5, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2024
@huggingface huggingface deleted a comment from github-actions bot Jan 11, 2024
@ArthurZucker ArthurZucker reopened this Jan 11, 2024
@ArthurZucker
Copy link
Collaborator

Christmas delays planning a release for tomorrow 🤗

@github-actions github-actions bot removed the Stale label Jan 12, 2024
@t5k6
Copy link

t5k6 commented Jan 13, 2024

Another option is to install tokenizers through conda:
conda install conda-forge::tokenizers

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

Successfully merging a pull request may close this issue.

5 participants