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
4.37k stars 350 forks source link

"pip install -e ." failed, isn't there a "setup.py" in root dir? #14

Closed chong-w closed 3 weeks ago

chong-w commented 3 weeks 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 "/tmp/pip-install-xw6cgkfo/flash-attn_66a00be6d8874e06ba191222d1bd5a0b/setup.py", line 9, in from packaging.version import parse, Version ModuleNotFoundError: No module named 'packaging' [end of output]

chenjunzeshen commented 3 weeks ago

pip install packaging

adithya-s-k commented 3 weeks ago

As mentioned by @chenjunzeshen, 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