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

pipx install dependencies error on Mac OS #46

Open
bass000 opened this issue Oct 23, 2024 · 4 comments
Open

pipx install dependencies error on Mac OS #46

bass000 opened this issue Oct 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@bass000
Copy link

bass000 commented Oct 23, 2024

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
Copy link
Author

bass000 commented Oct 23, 2024

it might be linked to the fact that I have python 3.13 (cf. pytorch/pytorch#130249)

built successfully in a python 3.12 virtualenv:

python3.12 -m venv .venv
source .venv/bin/activate
pip install yt2doc

@shun-liang
Copy link
Owner

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.

@shun-liang shun-liang added the bug Something isn't working label Oct 23, 2024
@pythongod
Copy link

I have the same bug on macOS

@shun-liang
Copy link
Owner

@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

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants