TypeError: 'module' object is not callable #1
Unanswered
WalaaElhamamy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I type the following code :
from pyswmm import simulation
import swmmio
with simulation ('r./Example.inp') as sim:
But it gives the following error:
PS C:\Users\86159> & C:/Users/86159/AppData/Local/Programs/Python/Python311/python.exe "d:/0000_Phd/000_Research/Python, Pyswmm, SWMM, Gmsh_Gitlab, Ansys/pyswmm/wer.py"
Traceback (most recent call last):
File "d:\0000_Phd\000_Research\Python, Pyswmm, SWMM, Gmsh_Gitlab, Ansys\pyswmm\wer.py", line 4, in
with simulation ('r./Example.inp') as sim:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'module' object is not callable
Do someone know how to fix it?
Beta Was this translation helpful? Give feedback.
All reactions