Replies: 1 comment 1 reply
-
Hi @LDO86, thanks for bringing this up and the detailed error report. As I understand, these seem to be 3 separate issues:
For (1), this is most likely due to an incompatibility between the latest stable version of WaterTAP and the latest stable version of IDAES (FWIW, we're in the process of releasing the next stable version of WaterTAP which doesn't have this problem). You can try the following to uninstall and then reinstall a more recent version of WaterTAP: conda activate watertap3
pip uninstall --yes watertap idaes-pse pyomo
pip install "watertap[testing] >= 0.8.0rc1" For (2), and possibly (3) as well, I suspect the problem could be related to the fact that IDLE / the Jupyter kernel is not using the environment (virtualenv, or, in this case, Conda) where WaterTAP is installed. In other words, the code that uses WaterTAP is being run through a different Python interpreter on the system where WaterTAP is not available. This shouldn't be specific to WaterTAP, and you can refer to the tool's own documentation for information on how to select a specific Python environment. For Jupyter, you can try the following: conda activate watertap3
pip install ipykernel
python -m ipykernel --user --name watertap3 After doing this, there should be an entry named To debug environment issues, you can use the following snippets to display the path to the Python interpreter executable: import sys; print(sys.executable) For your |
Beta Was this translation helpful? Give feedback.
-
Dear all, I am a newbie of both python and anaconda and I am trying to install Watertap. I installed the latest versions of Python (3.11.1) and anaconda (310_2023.03-0) and from the anaconda prompt I ran the following command:
everything goes smooth at this point I ran
and the following errors pops up
<<<<<
I retrieved the first error's file "test_cryst_prop_pack.py" and ran it with "Idle" obtaining as output
<<<
I also tried to Run in Jupiterbook the following code fromt the Watertap Tutorial page (https://watertap.readthedocs.io/en/latest/how_to_guides/how_to_run_models_in_a_py_script.html )
<<<
but I obtained a bunch of errors
<<<
Are the two things related? can anyone give some advice?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions