Not working properly on Ubuntu 16.04 LTS
On Ubuntu 14.04 after installing (using anaconda pip) swmmtoolbox is available as a command line program (I guess due to python wheel).
Testing on another machine (Ubuntu 16.04 no anaconda) the program is not available after installing using pip (testes python2.7 and python3.5). In this case the following command doesn't even work (executed at the source folder or in the installation directory)
python swmmtollbox.py catalog -h
To make it run I need to add the code
if __name__ == '__main__':
main()
at the end of swmmtoolbox.py. This is, of course, also valid for other commands.
I wonder if this issue is related to the manipulation that canonical does to the python path or it is something deeper. It seems wheel is not working (because there is no command line available after installing the tool) and that main is not being called.
Any suggestion?
Thx
Comments (3)
-
repo owner -
repo owner - changed status to resolved
-
reporter Hi Tim,
Thanks for making the toolbox available. I still do not get the command line program when I do the pip install. Would you have a clue about this?
JPi
- Log in to comment
The code that you added to the file should have been there.
Fixed in https://bitbucket.org/timcera/swmmtoolbox/commits/7edc720b464a7ce519c1006e1b31062be310a780
Released a new version on PyPI of your changes.
Thanks for reporting this and your contribution earlier to make swmmtoolbox work with the latest SWMM.
Kindest regards, Tim