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

nix develop fails on example python-local-development (source location of dependency does not exist) #1007

Open
akaihola opened this issue Jul 2, 2024 · 1 comment

Comments

@akaihola
Copy link

akaihola commented Jul 2, 2024

I get the following error when running nix develop on current main in the examples/packages/languages/python-local-development/ directory:

[~/dream2nix/examples/packages/languages/python-local-development]$ nix develop
Error: The python dependency charset-normalizer of mytool is configured to be installed in editable mode,
but the provided source location
/home/akaihola/dream2nix/examples/packages/languages/python-local-development/.editables/charset_normalizer
does not exist.
Please provide a path to a local copy of the source code of charset-normalizer.

I can't find documentation on how I'm supposed to manage editable dependencies. Do I need to download the source distribution for each of the editable dependencies (just charset-normalizer in this case) and extract them into ./.editables/? Or is there some tooling to manage this? It would be helpful if this was pointed out in the documentation and in the error message.

@akaihola akaihola changed the title nix develop fails on example python-local-development (dependency does not exist) nix develop fails on example python-local-development (source location of dependency does not exist) Jul 2, 2024
@purepani
Copy link
Contributor

purepani commented Jul 2, 2024

Do I need to download the source distribution for each of the editable dependencies (just charset-normalizer in this case) and extract them into ./.editables/?

Yeah this is how it works atm. The editables module is pretty new so there's probably still some work/tooling that can make it a bit smoother.
That said, i'm not quite sure why we don't have the charset-normalizer package in the example repo itself so that it works out of the box. That is something we can add(assuming it makes sense).

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