Orderedset package is no longer supported (installation problems with pip)
I keep getting an error during orderedset
package installation:
lib/orderedset/_orderedset.c:209:12: fatal error: longintrepr.h: No such file or directory
209 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for orderedset
I remember this was solved by installing the Cython
, but now (after installing and reinstalling Cython and orderedset multiple times) I don't know what the problem is.
I noticed that the package itself has not been updated since 2020 and therefore it may not be well supported by the newer versions of Python (>3.9).
So, I suggest to switch to a similar project – ordered-set.
However it will be slower than the orderedset that we use now (I can't say how much, because the orderedset is not is not even installing).
- Do we use
OrderedSet
objects in model calculations?
I tried to change only import statements:
from orderedset import OrderedSet
to:
from ordered_set import OrderedSet
And all the tests have passed.
- Should I create two separate MR for dictwrapper.py and dag-flow.py?