swmmtoolbox usage / output error
Issue #2
new
We installed swmmtoolbox on ubuntu server 16.04 LTS using pip command:
#!
pip install swmmtoolbox
We are trying to use it this way:
swmmtoolbox listdetail file_name.out node
and we get this error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in position 2: ordinal not in range(128)
Is this the correct way?
Comments (1)
-
repo owner - Log in to comment
I suspect that you have a Unicode character in one of the link or node names. I use � (u'\ufffd') as a replacement character for anything that isn't ASCII, however it seems that either Python 2 or Python 3 doesn't like that now.
Until I get a fix, try renaming links and nodes only with ASCII characters. You will then have to rerun SWMM.
Is it possible for you to upload the problem file_name.out as an attachment to this issue so that Ian use it in my tests?
Kindest regards, Tim