St-annotated-text is out of maintence?

pip install st-annotated-text is not work any more, we can not download this package
@Thiago Teixeira

Strange… I just tried and it works for me

$ pip install st-annotated-text
Collecting st-annotated-text
  Downloading st-annotated-text-2.0.0.tar.gz (3.2 kB)
Collecting htbuilder
  Using cached htbuilder-0.5.0.tar.gz (11 kB)
Collecting iteration_utilities
  Downloading iteration_utilities-0.11.0-cp39-cp39-macosx_10_14_x86_64.whl (95 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 95 kB 4.6 MB/s 
Using legacy ' install' for st-annotated-text, since package 'wheel' is not installed.
Using legacy ' install' for htbuilder, since package 'wheel' is not installed.
Installing collected packages: iteration-utilities, htbuilder, st-annotated-text
    Running install for htbuilder ... done
    Running install for st-annotated-text ... done
Successfully installed htbuilder-0.5.0 iteration-utilities-0.11.0 st-annotated-text-2.0.0
WARNING: You are using pip version 21.1.1; however, version 21.2.4 is available.
You should consider upgrading via the '/Users/tvst/Projects/streamlit/prod/.venv/bin/python3.9 -m pip install --upgrade pip' command.

$ ipython
Python 3.9.5 (default, May  4 2021, 03:36:27) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.27.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import annotated_text

In [2]: annotated_text.annotated_text
Out[2]: <function annotated_text.annotated_text(*args)>

Can you post the exact error you’re seeing?

1 Like

why I install this package always get error report?
But I install other package is well, is this package need add encoding process code to make error disappear?

I had solved this problem.
to solve this problem,
I have to download htbuilder from here:
and overwrite the line 3 into:

with open("", "r", encoding="utf-8") as fh:
    long_description =

in the htbuilder directory, run

python install

download st-annotated-text from github:
GitHub - tvst/st-annotated-text: A simple component to display annotated text in Streamlit apps.
also need to overwrite the line 3 in

with open("", "r", encoding="utf-8") as fh:
    long_description =

in the st-annotated-text directory, run

python install

finally, I can run the st-annotated-text app

import streamlit as st
from annotated_text import annotated_text, annotation
    "I ",
    ("Love", "", "#8ef"),
    " our ",
    ("Great", "", "#faa"),
    ("and", "", "#afa"),
    " Useful ",
    ("Streamlit", "", "#fea"),
    ("Community", "", "#8ef"),
    ("!", "", "#afa"),

Is it possible to cancel the second argument in annotated_text function like this?

    "I ",
    " our ",
    ("Great", "#faa"),
    ("and", "#afa"),
    " Useful ",
    ("Streamlit", "#fea"),
    ("Community",  "#8ef"),
    ("!", "#afa"),