Skip to content

Failed to run cwms-python on 3.9 #226

@krowvin

Description

@krowvin

Attempting to run cwms-python (through cwms-cli) I get the following error

File "/wm/office/user/.local/lib/python3.9/site-packages/cwms/init.py", line 25, in
from cwms.timeseries.timeseries import *
File "/wm/office/user/.local/lib/python3.9/site-packages/cwms/timeseries/timeseries.py", line 151, in
unit: str | None,
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

If I manually go in and remove all instances of | this resolves the issue.

Looks like | is a 3.10 functionality.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions