Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install location #4

Closed
ecatkins opened this issue Oct 15, 2020 · 6 comments
Closed

pip install location #4

ecatkins opened this issue Oct 15, 2020 · 6 comments

Comments

@ecatkins
Copy link

Hi, just trying out the library, seems to work great!

But for me, when installing via pypi, the library was installed as annotated_text not as st_annotated_text, so instead of the instructions in the README, I had to:

from annotated_text import annotated_text
@sai-krishna-msk
Copy link
Contributor

yeah same for me too

@opatrickchen
Copy link

opatrickchen commented Dec 7, 2020

Experienced the same issue on my side. @tvst You might want to update the example on https://pypi.org/project/st-annotated-text/

@jonas-nothnagel
Copy link

same

@AndreasTraut
Copy link

Same for me. Instruction on README did not work for me. Correct would have been:
from annotated_text import annotated_text
instead of
from st_annotated_text import annotated_text

@gireeshkbogu
Copy link

I'm also having issues. I tried both approaches mentioned here but I'm getting the following error. Any suggestions would be appreciated.

ImportError: cannot import name 'div'
Traceback:
File "/Users/gireeshbogu/miniconda2/lib/python3.6/site-packages/streamlit/script_runner.py", line 338, in _run_script
    exec(code, module.__dict__)
File "/Users/gireeshbogu/Desktop/stream/complyAlpha/app.py", line 5, in <module>
    from annotated_text import annotated_text
File "/Users/gireeshbogu/miniconda2/lib/python3.6/site-packages/annotated_text/__init__.py", line 3, in <module>
    from htbuilder import HtmlElement, div, span, styles

@tvst
Copy link
Owner

tvst commented Jul 19, 2021

README updated, thanks!

ImportError: cannot import name 'div'

This is a Python version issue. This was fixed last year by @mart1nro but I forgot to make a new release. Should be fixed in yesterday's release, though!

@tvst tvst closed this as completed Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants