shun-liang / yt2doc

YouTube, Apple Podcasts (and more) to readable Markdown.
MIT License
276 stars 9 forks source link

pipx install dependencies error on Mac OS #46

Open bass000 opened 1 month ago

bass000 commented 1 month ago

I have a dependency issue on pytorch, but I don't understand where the conflict is coming from..

pipx install yt2doc
Fatal error from pip prevented installation. Full pip output in file:
    /Users/xx/.local/pipx/logs/cmd_2024-10-23_22.04.47_pip_errors.log

pip seemed to fail to build package:
    yt2doc

Some possibly relevant errors from pip install:
    ERROR: Cannot install yt2doc==0.1.0, yt2doc==0.1.1, yt2doc==0.1.2, yt2doc==0.2.0, yt2doc==0.2.1, yt2doc==0.2.2, yt2doc==0.2.5, yt2doc==0.2.6 and yt2doc==0.2.7 because these package versions have conflicting dependencies.
    ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Error installing yt2doc.

The logs is not helpful:

Collecting yt2doc
  Using cached yt2doc-0.2.7-py3-none-any.whl.metadata (6.1 kB)
Collecting emoji>=2.13.0 (from yt2doc)
  Using cached emoji-2.14.0-py3-none-any.whl.metadata (5.7 kB)
Collecting faster-whisper>=1.0.3 (from yt2doc)
  Using cached faster_whisper-1.0.3-py3-none-any.whl.metadata (15 kB)
Collecting ffmpeg-python>=0.2.0 (from yt2doc)
  Using cached ffmpeg_python-0.2.0-py3-none-any.whl.metadata (1.7 kB)
Collecting instructor>=1.5.1 (from yt2doc)
  Using cached instructor-1.6.3-py3-none-any.whl.metadata (17 kB)
Collecting openai>=1.51.0 (from yt2doc)
  Using cached openai-1.52.1-py3-none-any.whl.metadata (24 kB)
Collecting pathvalidate>=3.2.1 (from yt2doc)
  Using cached pathvalidate-3.2.1-py3-none-any.whl.metadata (12 kB)
Collecting pydantic>=2.9.1 (from yt2doc)
  Using cached pydantic-2.9.2-py3-none-any.whl.metadata (149 kB)
INFO: pip is looking at multiple versions of yt2doc to determine which version is compatible with other requirements. This could take a while.
Collecting yt2doc
  Using cached yt2doc-0.2.6-py3-none-any.whl.metadata (6.1 kB)
  Using cached yt2doc-0.2.5-py3-none-any.whl.metadata (5.2 kB)
  Using cached yt2doc-0.2.2-py3-none-any.whl.metadata (5.2 kB)
  Using cached yt2doc-0.2.1-py3-none-any.whl.metadata (5.1 kB)
  Using cached yt2doc-0.2.0-py3-none-any.whl.metadata (4.6 kB)
  Using cached yt2doc-0.1.2-py3-none-any.whl.metadata (2.5 kB)
  Using cached yt2doc-0.1.1-py3-none-any.whl.metadata (2.5 kB)
INFO: pip is still looking at multiple versions of yt2doc to determine which version is compatible with other requirements. This could take a while.
  Using cached yt2doc-0.1.0-py3-none-any.whl.metadata (608 bytes)
ERROR: Cannot install yt2doc==0.1.0, yt2doc==0.1.1, yt2doc==0.1.2, yt2doc==0.2.0, yt2doc==0.2.1, yt2doc==0.2.2, yt2doc==0.2.5, yt2doc==0.2.6 and yt2doc==0.2.7 because these package versions have conflicting dependencies.

The conflict is caused by:
    yt2doc 0.2.7 depends on torch>=2.4.1
    yt2doc 0.2.6 depends on torch>=2.4.1
    yt2doc 0.2.5 depends on torch>=2.4.1
    yt2doc 0.2.2 depends on torch>=2.4.1
    yt2doc 0.2.1 depends on torch>=2.4.1
    yt2doc 0.2.0 depends on torch>=2.4.1
    yt2doc 0.1.2 depends on torch>=2.4.1
    yt2doc 0.1.1 depends on torch>=2.4.1
    yt2doc 0.1.0 depends on torch>=2.4.1

To fix this you could try to:
bass000 commented 1 month ago

it might be linked to the fact that I have python 3.13 (cf. https://github.com/pytorch/pytorch/issues/130249)

built successfully in a python 3.12 virtualenv:

python3.12 -m venv .venv
source .venv/bin/activate
pip install yt2doc
shun-liang commented 1 month ago

Thanks for reporting this issue. It looks like a Pytorch issue to me indeed. For now, I plan to add ...,<3.13 in the requires-python in the pyproject.toml of this project.

pythongod commented 1 month ago

I have the same bug on macOS

shun-liang commented 1 month ago

@pythongod Are you using Python 3.13? There is a known issue with pytorch at 3.13 as mentioned above.

Meanwhile, can you try

pipx install --python 3.12 yt2doc

?