adithya-s-k / omniparse

Ingest, parse, and optimize any data format ➡️ from documents to multimedia ➡️ for enhanced compatibility with GenAI frameworks
https://docs.cognitivelab.in
GNU General Public License v3.0
5.13k stars 430 forks source link

what's wrong?no module named fastapi, python setup.py egg_info did not run successfully. #15

Closed sdflysd closed 3 months ago

sdflysd commented 3 months ago

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\Administrator\AppData\Local\Temp\pip-install-xwfdbjmt\flash-attn_ef31244446e54cbfb62a9f56d8de18da\setup.py", line 9, in from packaging.version import parse, Version ModuleNotFoundError: No module named 'packaging' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

(omniparse-venv) E:\omniparse>python server.py --host 0.0.0.0 --port 8000 --documents --media --web Traceback (most recent call last): File "E:\omniparse\server.py", line 3, in from fastapi import FastAPI ModuleNotFoundError: No module named 'fastapi'

chong-w commented 3 months ago

+1

adoresever commented 3 months ago

+1

CufeDigitalEcon commented 3 months ago

and one

adithya-s-k commented 3 months ago

pip install packaging should fix this issue

Here is the code to install all the dependencies

poetry install
# or
pip install -e .
# or
pip install -r pyproject.toml