I get AttributeError: module 'itree' has no attribute 'Node'
Keno42 opened this issue · comments
Hi,
after installing itree
, I get an AttributeError when I call itree.Node
as the following:
>>> import itree
>>> itree.Node('fruit', 0, 40)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'itree' has no attribute 'Node'
I tried both pip install itree
and pip install https://github.com/juncongmoo/itree/archive/refs/tags/v0.0.18.tar.gz
.
Environment: MacBook Pro, Apple M2 Pro, macOS Ventura 13.2.1, Python 3.11.2
Also getting this on Win10, have u been able to solve it?
Thank you. I found that itree
was installed too.
After uninstalling both itree
and py-itree
, I confirmed that import itree
returned an error.
>>> import itree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'itree'
It worked after executing this part https://github.com/juncongmoo/itree#build-from-source-with-cmake