Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

arch error with tokenizers dependency #1

Open
sclausen opened this issue Aug 29, 2022 · 2 comments
Open

arch error with tokenizers dependency #1

sclausen opened this issue Aug 29, 2022 · 2 comments

Comments

@sclausen
Copy link

Somehow the tokenizers library isn't built for arm64.
I don't know if this log output gets swallowed, but I don't see anything getting compiled with rust.
I'm building on mac 12.5.

Am I missing something?

RuntimeError: Failed to import transformers.models.auto because of the following error (look up to see its traceback):
Failed to import transformers.tokenization_utils because of the following error (look up to see its traceback):
dlopen(/Users/username/miniforge3/envs/ldm/lib/python3.10/site-packages/tokenizers/tokenizers.cpython-310-darwin.so, 0x0002): tried: '/usr/local/opt/openssl/lib/tokenizers.cpython-310-darwin.so' (no such file), '/tokenizers.cpython-310-darwin.so' (no such file), '/Users/username/miniforge3/envs/ldm/lib/python3.10/site-packages/tokenizers/tokenizers.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))

PS: Same error regardless of miniforge3, miniconda3 or anaconda3 (the folder changes off course 😉 )

@evancoons22
Copy link

I am having the same issue... I already had rust installed as well.

@magnusviri
Copy link
Owner

Please use this fork/branch.

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

No branches or pull requests

3 participants