Closed tacaswell closed 2 years ago
There sure is! I actually poked around with this a few days ago in PR https://github.com/pytoolz/toolz/pull/527:
https://github.com/pytoolz/toolz/runs/4986061605?check_suite_focus=true
I haven't dug any deeper yet, but it might be nice if we can upstream changes so we no longer break.
Ah, sorry I did not search hard enough before opening this issue.
ha, no worries, thanks for the issue!
Any progress here? Fedora is updating to 3.11 and tests are failing:
___________________________________ test_tlz ___________________________________
def test_tlz():
import tlz
tlz.curry
tlz.functoolz.curry
assert tlz.__package__ == 'tlz'
assert tlz.__name__ == 'tlz'
> import tlz.curried
toolz/tests/test_tlz.py:10:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
<frozen importlib._bootstrap>:1178: in _find_and_load
???
<frozen importlib._bootstrap>:1149: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
../../BUILDROOT/python-toolz-0.11.2-4.fc37.noarch/usr/lib/python3.11/site-packages/tlz/_build_tlz.py:85: in exec_module
submodule = import_module(module_name)
/usr/lib64/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1206: in _gcd_import
???
<frozen importlib._bootstrap>:1178: in _find_and_load
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
name = 'tlz.curried.operator', import_ = <function _gcd_import at 0x3ff952cfd80>
> ???
E AttributeError: 'TlzSpec' object has no attribute '_uninitialized_submodules'
<frozen importlib._bootstrap>:1147: AttributeError
My bad. Got sick. Better now. I'll get a fix in ASAP. May take a couple of days. Thanks for the nudge.
Thank you @eriknw ! Looking at that diff I am not sure I would have ever gotten there.....
Thank you!
There appears to be more issues with toolz + py311 + circular imports: