Benezivas / algobattle

Let teams compete by making them create hard instances and fast solvers for problems of your choice. Then pitch these instances and solvers against one another. All language-agnostic.
https://algobattle.org
MIT License
8 stars 3 forks source link

wrong error message and requests 2.32 incompatibility #164

Closed izlatin closed 1 week ago

izlatin commented 1 week ago

I was facing issues running algobattle test command, because it was always saying "Could not connect to the docker daemon", though I had no restrictions for it and it was running. Later on I checked the function in program.py file and it seems like multiple exceptions are mapped to the same message, so it's a little bit misleading. image

My problem was the version 2.32 of requests (python package), because it returns "Not supported URL scheme http+docker" error. It was easy to solve e.g. by downgrading the package to v2.31. But it was easy to solve when you know the exact problem :)

ImogenBits commented 1 week ago

Thanks for the bug report. I've addressed this issue in #165, which should be incorporated into a new release soon.

Btw, it looks like you're running version 4.2, not the (currently) latest 4.3.

UnlimitedCookies commented 4 days ago

FYI for anyone else installing Algobattle: Currently, to get Algobattle working with modern library versions it suffices to downgrade requests to <= 2.31.0 and pydantic to <= 2.8.2.