Closed jkitchin closed 1 week ago
I believe the error is because concurrent.futures.TimeoutError
becomes alias to TimeoutError
in the standard library starting from Python 3.11. Fixing this bug now.
I am indeed using Python 3.11!
I have merged the fix for this issue. The current code in the main branch should work and have been tested with Python 3.11. Thank you for reporting this bug and let me know if there are any other issues!
This didn't fix it for me. This code does not return True as the logic in the fix suggests.
>>> from concurrent.futures import Future
>>> isinstance(concurrent.futures.TimeoutError, TimeoutError)
False
In the CI, I suggest adding a test that makes an empty directory and runs alabos init
in it.
Sorry I realized that TimeError is a class, not an instance. It should be
import concurrent.futures
concurrent.futures.TimeoutError is TimeoutError
I am working on the CI now.
Hi John! I have fixed this with an is
statement instead of isinstance
. I also added a test_init
to the CI to make sure it behaves as expected. Thank you for reporting the issue and for your patience! :-)
thanks for the quick fixes. I got alabos init
to work as expected.
Current behavior
Running this in an empty directory gives an error.
Expected Behavior
the output at https://cedergrouphub.github.io/alabos/setup.html
Minimal example