-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
pdm
installed scripts break in with venv + non-src layout
#249
Comments
You might be confusing
...gives the same error:
You might want to use user scripts instead, or actually put your |
I believe for pdm, the proper analogue to To demonstrate further, this behavior changes when the
And also when the script is in src:
Curiously, the Interestingly also reproducible with
|
Could you clarify if this means putting it in |
Sorry, yes, I was the one confused 🙂 So you really want
Interesting indeed! Thanks for investigating further. Let me try as well. |
With % cat .venv/lib/python3.11/site-packages/llama_cpp_scripts.pth
/tmp/t/src In that case the With % cat .venv/lib/python3.11/site-packages/llama_cpp_scripts.pth
/tmp/t Indeed if the So the issue comes from the automatic detection of
I meant to move |
This is a bit tricky, the project is detected as src layout but |
Thank you for the fix! |
Steps to reproduce
pyproject.toml
Actual behavior
Script run fails with a
ModuleNotFoundError
. Ref: ggerganov/llama.cpp#5745Expected behavior
Script run succeeds.
pdm
shouldn't be thrown off by ansrc
directory, it should instead compute sys.path through paths of file ininclude
.Environment Information
Minimum reproducible project archive: minrepoduction.tar.gz
The text was updated successfully, but these errors were encountered: