Not working properly on Ubuntu 16.04 LTS

Issue #1 resolved
KaKiLa created an issue

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)

  1. KaKiLa 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

  2. Log in to comment