Closed olejonny closed 2 years ago
It looks like you're using Python 3.10 which WNTR does not currently support. We can try to include the build for 3.10 in the next release.
I saw the same error message and my Python is 3.9.7. Please see message below. I had recently updated the WNTR package and I wasn't having this issue in the past.
Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 7.29.0 -- An enhanced Interactive Python.
import wntr Traceback (most recent call last):
File "C:\Users\user1\AppData\Local\Temp/ipykernel_16424/35592916.py", line 1, in
File "c:\users\user1\profile\documents\coding\repos\wntr\wntr__init__.py", line 3, in
File "c:\users\user1\profile\documents\coding\repos\wntr\wntr\morph__init__.py", line 13, in
File "c:\users\user1\profile\documents\coding\repos\wntr\wntr\morph\skel.py", line 11, in
File "c:\users\user1\profile\documents\coding\repos\wntr\wntr\sim__init__.py", line 5, in
File "c:\users\user1\profile\documents\coding\repos\wntr\wntr\sim\core.py", line 1, in
File "c:\users\user1\profile\documents\coding\repos\wntr\wntr\sim\hydraulics.py", line 13, in
File "c:\users\user1\profile\documents\coding\repos\wntr\wntr\sim\aml__init__.py", line 2, in
File "c:\users\user1\profile\documents\coding\repos\wntr\wntr\sim\aml\aml.py", line 3, in
File "c:\users\user1\profile\documents\coding\repos\wntr\wntr\sim\aml\evaluator.py", line 13, in
ModuleNotFoundError: No module named 'wntr.sim.aml._evaluator'
@terrahaxton, How did you update WNTR (git pull, pip, conda)? Also, do you have a Python 3.9 windows build of the evaluator in the wntr\sim\aml folder? The file would be called _evaluator.cp39-win_amd64.pyd.
@kaklise I updated WNTR using git pull and then ran python setup.py develop. No, I don't have the file by the name you listed. Here are the files in the wntr\sim\aml folder
@terrahaxton, was this issue resolved when you pull from the main branch?
I am running python 10 and had some trouble but it is not an issue because as far as i know python 10 is currently not supported but will be with the next major release. i left this comment as i am not knowing how to delete it
@terrahaxton, was this issue resolved when you pull from the main branch?
@kaklise Yes, this issue was resolved when I pulled from the main branch. Thanks!
Closing this ticket and referencing #254. We hope to support Python 3.10 soon.
having challenges to. just installed the complete package and gettint the wntr error. pleas who can assist. Thanks
The WNTR repository no longer contains the prebuilt binaries. If you clone the repository, you need to build it using --build option, see https://wntr.readthedocs.io/en/latest/installation.html#developer-instructions. If you install through pip, the binaries are packaged.
The WNTR repository no longer contains the prebuilt binaries. If you clone the repository, you need to build it using --build option, see https://wntr.readthedocs.io/en/latest/installation.html#developer-instructions. If you install through pip, the binaries are packaged.
Thanks
good day everyone,
could some assist, trying to run a code and i get this error
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/cpppo/server/enip/client.py", line 1699, in
I don't see an error related to wntr.sim.aml._evaluator
in the traceback. It looks like you're using DHALSIM, which I believe uses Python 2.7 and 3.8. I'm not sure if that is causing the issue. We recently push a change to WNTR that adds the --build
option to setup.py by default. This will build the evaluator module if you need to clone and build WNTR.
I don't see an error related to
wntr.sim.aml._evaluator
in the traceback. It looks like you're using DHALSIM, which I believe uses Python 2.7 and 3.8. I'm not sure if that is causing the issue. We recently push a change to WNTR that adds the--build
option to setup.py by default. This will build the evaluator module if you need to clone and build WNTR.
Are you suggesting I install WNTR on the machine. Not very good in Linux. Please be more specific. Thnaks
I'm not sure what the issue is. If you need to add the evaluator module, you can build WNTR using the instructions at https://wntr.readthedocs.io/en/latest/installation.html#developer-instructions. Our team has used DHALSIM in the past and I believe the install process with WNTR was fine. @dbhart, any advice based on traceback?
I'm not sure what the issue is. If you need to add the evaluator module, you can build WNTR using the instructions at https://wntr.readthedocs.io/en/latest/installation.html#developer-instructions. Our team has used DHALSIM in the past and I believe the install process with WNTR was fine. @dbhart, any advice based on traceback?
Thanks for the update followed the steps but got the message below. Note that i have tried upgrading the version python henro316@UBUNTU:~/master/master/WNTR$ pip install -r requiremensts.txt DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Defaulting to user installation because normal site-packages is not writeable ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requiremensts.txt'
(env) C:\Software Dev\wntr_test>python Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
Installed wntr in virtual environment using pip.