-
Notifications
You must be signed in to change notification settings - Fork 204
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
FileNotFoundError when running build_powerplants #367
Comments
Awesome @ekatef ! In both cases, the solution implies to change the environment files to successfully install also this dependency. |
An alternative solution is shown also in PyPSA/powerplantmatching#61 (comment) |
@davide-f, thank you for guiding me through the context and adding the dependency to your powerplantmatching fork. I see that this issue has some pre-history :) I can try to create a PR to the powerplantmatching repo. But it would be great to understand before if Besides, it seems that installation of JDK on Windows may require some additional work with environment variables as @oayana has reported. It would be great to know whether that is fixed automatically when installing via conda. I can try to investigate both questions and if there are no obvious pitfalls, propose |
Awesome! Feel free to investigate that. |
Absolutely agree :) |
Hi guys, we install @davide-f fork of powerplantmatching with pip. I just added to the setup.py -> |
As we solved the issue on our workflow, we can close this issue. |
It seems that @pz-max, could you please have a look? |
Thanks for advicing @ekatef ! If not, we could use java-jdk that seems to be working. |
@davide-f, thank you for looking into this! When trying to remove pypsa-africa install-jdk
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are missing from the target environment:
- install-jdk It seems that something gets silently broken during installation... The issue may be resolved with |
@ekatef how did you solve this? |
@pz-max Had just installed openjdk as a quick fix and it worked. I would have to report the issue earlier but wasn't sure if it's reproducible and not too system-dependent... |
Checklist
main
branch or the latest release. Please indicate.pypsa-africa
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
An attempt to run
build_powerplants
on a new machine has resulted in aFileNotFoundError
with an error messages referencing a"linkfile.txt"
in a temporary folder. It looked very much similar to the problem reported in the Workflow-check of the PyPSA-Earth-Sec model (@energyLS, many thanks for reporting it!) and was fixed using @Hazem-IEG suggestion by installing java:conda install -c bioconda java-jdk
or
conda install openjdk
As a nice side effect, installing java could have resolved also some troubles with glpk which I have initially experienced in a fresh workspace. (But not sure if this is a reproducible)
Error Message
The whole error message looked like:
The text was updated successfully, but these errors were encountered: