gristlabs / asttokens

Annotate Python AST trees with source text and token information
Apache License 2.0
172 stars 34 forks source link

ASTText: Module found error #137

Closed XIE-ZJU closed 1 month ago

XIE-ZJU commented 11 months ago

Hi, thanks for you great job of this package. I met an error when I tried to install jupyter in the cloud sever with the following command: python -m ipykernel install --name pet-neus --user It occured that ImportError: cannot import name 'ASTText' from 'asttokens' (/root/miniconda3/envs/pet-neus/lib/python3.8/site-packages/asttokens/init.py). Thanks again, hope for you reply!

R4M4KR15HN4 commented 11 months ago

Hi, found a solution ? me also facing the same issue.

XIE-ZJU commented 11 months ago

Copy that!

R4M4KR15HN4 commented 11 months ago

pip install --upgrade asttokens this solved my problem.

evan-kolberg commented 2 months ago

@R4M4KR15HN4 Thanks!

XIE-ZJU commented 2 months ago

Copy that!