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

ModuleNotFoundError: No module named 'annotated_text' #313

Open
Yijiazhao123 opened this issue Jan 24, 2025 · 0 comments
Open

ModuleNotFoundError: No module named 'annotated_text' #313

Yijiazhao123 opened this issue Jan 24, 2025 · 0 comments

Comments

@Yijiazhao123
Copy link

Describe the bug
I encountered a ModuleNotFoundError when running streamlit_app.py. The error indicates that the module annotated_text is missing, even though st-annotated-text (version 4.0.0) is installed as per the requirements file.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the project repository: git clone https://github.com/YOUR_USERNAME/Resume-Matcher.git
    cd Resume-Matcher
  2. Create and activate a virtual environment: python3 -m venv env
    source env/bin/activate
  3. Install the required dependencies: pip install -r requirements.txt
  4. Run the application: streamlit run streamlit_app.py
  5. Open http://localhost:8501 in a browser.
  6. Observe the error message:ModuleNotFoundError: No module named 'annotated_text'

Expected behavior
The application should run successfully, and the Streamlit dashboard should be displayed at http://localhost:8501.

Screenshots

Image

Error Text:ModuleNotFoundError: No module named 'annotated_text'
Traceback:
File "/Users/zhaoyijia/anaconda3/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
result = func()
File "/Users/zhaoyijia/anaconda3/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
exec(code, module.dict)
File "/Users/zhaoyijia/Downloads/Resume-Matcher/streamlit_app.py", line 11, in
from annotated_text import annotated_text, parameters

Desktop (please complete the following information):

  • OS: macOS
  • Browser: chrome
  • Python Version: 3.10
  • st-annotated-text Version: 4.0.0

Smartphone (please complete the following information):

  • Device: iphone14
  • Browser: chrome

Additional context

  1. I confirmed st-annotated-text is installed in the virtual environment by running: pip list | grep annotated
    The output shows: st-annotated-text 4.0.0
  2. Replacing annotated_text with st_annotated_text also resulted in a similar error.
  3. If annotated_text is a custom module, it might be missing from the repository.
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

1 participant