-
Notifications
You must be signed in to change notification settings - Fork 8
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
conda install doesn't properly pull in dependencies #89
Comments
Haha it seems every "fix" we do for these dependencies breaks it in a different way 😂 I think it probably makes sense to just include the version numbers manually on the instruction page since users would need to download that .yml file manually anyway right? Might as well just have a copy-able code block instead. I'll add these back and add notes to the requirement.txt file to remember to always update in both locations. |
The advantage of providing a .yml is that at a later point, people can re-download it and do
to get all dependencies updated consistently. But your suggestion is certainly the simplest. |
Okay I see what you mean. I don't know that much about package managers and whatnot but I think that if, at some point in the future, a user wants to update legwork they could run
My question is then, when that upgrade occurs, would it also check whether the dependencies could be upgraded without needing to update the environment with the new .yml file? |
Having googled this a bit I've realised that pip upgrades are completely invisible to conda so I do see how the environment.yml file could be very useful here. I'm going to add it for the stable case but I think there isn't much point with the development version since you always have to use pip to install it anyway. |
Trying to understand the differences between the stable and dev instructions, I've stumbled about non-intuitive (for me at least) behaviour regarding how conda isolates (or doesn't isolate) an env from system packages. Apparently this depends on whether the env's python version matches the system's:
So unless you understand these things better than I do and know of a perfectly clean solution, I think changing the stable instructions to use a yml and leaving the dev case as it currently stands should at least give working installations in each situation. |
PS on your question regarding |
Which documentation page is causing an issue?
https://legwork.readthedocs.io/en/latest/install.html
What is the problem?
On my Debian 11 system with conda 4.11.0, the current instructions don't give me a complete install anymore:
Then it seems pip sees some dependencies on the system path is happy with those, but doesn't actually put them into the conda environment, leaving it incomplete:
And then any imports of legwork fail with missing scipy/numpy/astropy/matplotlib.
Suggested solution (optional)
I think you can't get around using conda installation of the dependencies, even if that means double-maintaining them in an extra .yml file or the instructions page.
The text was updated successfully, but these errors were encountered: