OpenWaterAnalytics / epanet-python

python wrapper for epanet library
76 stars 40 forks source link

I can't run epamodule on Python #66

Closed fstroppa closed 3 years ago

fstroppa commented 3 years ago

Hello,

I am trying to install and use the epamodule in python but so far I had no success. I tried to install into the terminal, but than I cant find the module at C:\Users\ferna\AppData\Local\Programs\Python\Python37\Lib\site-packages image

I also tried to download the version on the github import the epamodule.py from the owa-epanet-2.2.3, but I always get an error

C:\Users\ferna\venv\Python3.7\Scripts\python.exe "C:/Users/ferna/Desktop/AIDE/teste.py"
Traceback (most recent call last):
  File "C:/Users/ferna/Desktop/AIDE/teste.py", line 2, in <module>
    import epamodule
  File "C:\Users\ferna\Desktop\AIDE\epamodule.py", line 130
    ierr = _lib.ENsetflowunits(ctypes.c_int(units_code))
                                                       ^
TabError: inconsistent use of tabs and spaces in indentation 

I am sorry for the simple question, but I have no other idea of what I can do.

Thanks very much for the attention