-
Hello! I am attempting to build the swmm-python package by compiling the source code. Firstly, I successfully installed swmm and generated runswmm.exe in the swmm-solver directory. After that, I ran the command "python setup.py build" within a virtual environment. However, I encountered an error as shown in the attached image. Could you please help me understand the reason behind this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@wsy-00, what version of cmake are you running? |
Beta Was this translation helpful? Give feedback.
-
@wsy-00, I was able to replicate your error and resolved it by downgrading swig to 4.0.2. I think we need to update our interface files and maybe our CMakeLists to make them compatible with a newer version of swig. Try installing swig 4.0.2 from PyPI and let us know if that fixes it for you! |
Beta Was this translation helpful? Give feedback.
@wsy-00, I was able to replicate your error and resolved it by downgrading swig to 4.0.2. I think we need to update our interface files and maybe our CMakeLists to make them compatible with a newer version of swig.
Try installing swig 4.0.2 from PyPI and let us know if that fixes it for you!
pip install swig==4.0.2