vnegnev / marcos_client

Client (GUI and command-line interfaces) for MaRCoS
GNU General Public License v3.0
11 stars 15 forks source link

OverflowError: Python integer <number>out of bounds for uint16 #17

Open jinghan1997 opened 3 months ago

jinghan1997 commented 3 months ago

Hi marcos developers,

I am a user who has successfully installed and set up marcos before. I use Arch linux running on WSL on a window system. Recently, I re-setup everything on a new laptop but I am getting the following error when I run test_marga_model.py OverflowError: Python integer out of bounds for uint16

Every single test case fails and all give the same error where the triggering code lies in marcompile.py (lines 295, 231, 495).

I have set up marcos before in the same exact environment as mentioned above and it worked fine, but this current version doesn't pass the unit tests. I suspect its a new update of some sort(python libraries or marcos) that's causing the issue. Could you please check it out that if anyone else is facing the same error as well?

Thank you!

image image image

vnegnev commented 3 months ago

Hi, this is because Numpy 2.0 treats fixed-width integers and conversions differently from Numpy 1.x - I'm working on fixing the new bugs, hopefully in a day or two. In the meantime you can downgrade Numpy to 1.x to continue using the library as before.

vnegnev commented 3 months ago

Quick update - this should be fixed in https://github.com/vnegnev/marcos_client/pull/18 so please test it out and let me know if your problem is fixed.

jinghan1997 commented 3 months ago

Quick update - this should be fixed in #18 so please test it out and let me know if your problem is fixed.

Hi there, yup, I have checkout the pull request and the unit tests all pass now. Thanks for getting back and the quick fix!