tvst / st-annotated-text

A simple component to display annotated text in Streamlit apps.
Apache License 2.0
523 stars 41 forks source link

cannot import module #1

Closed Monique497 closed 4 years ago

Monique497 commented 4 years ago

Hi,

I have st-annotated-text installed using pip, but I cannot import the module as described in your readme-file.

This is what I get when I enter pip show st-annotated-text:

Name: st-annotated-text Version: 1.0.1 Summary: A simple component to display annotated text in Streamlit apps. Home-page: https://github.com/tvst/st-annotated-text Author: Thiago Teixeira Author-email: me@thiagot.com License: Apache 2 Location: /home/monique/anaconda3/envs/ta/lib/python3.6/site-packages Requires: htbuilder Required-by:

So, everything looks good.

However, when I then say: _from st_annotated_text import annotatedtext

It gives me the module not found-error. I was trying to figure out what the package name should be, but no luck, since I am not that hardcore python-developer.

Perhaps there is an easy solution.

mart1nro commented 4 years ago

Had the same problem. Importing it using from annotated_text import annotated_text works.

Monique497 commented 4 years ago

Thank you, that worked!