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

Unable to find installation candidates for torch (2.0.1+cpu) #58

Open
maxwkut opened this issue Dec 1, 2023 · 9 comments
Open

Unable to find installation candidates for torch (2.0.1+cpu) #58

maxwkut opened this issue Dec 1, 2023 · 9 comments

Comments

@maxwkut
Copy link

maxwkut commented Dec 1, 2023

Screenshot 2023-12-01 at 3 22 14 PM

Great course so far!

I'm having some trouble running make install in the streaming_pipeline folder. Any suggestions?

Main dependencies are all installed.

@iusztinpaul
Copy link
Owner

Thanks! Happy to hear that.

What OS are you using?

@maxwkut
Copy link
Author

maxwkut commented Dec 5, 2023

I'm using macOS Sonoma 14. Not sure if this is a mac specific problem though - in the video tutorial, it looked like @Paulescu ran the code on a mac as well and didn't have any issues.

@iusztinpaul
Copy link
Owner

iusztinpaul commented Dec 5, 2023

Yeah. You are right.

The streaming pipeline (out of the 3 modules) should work on macos. I tested my code only on Ubuntu. @Paulescu, do you know about this issue? Have you encountered it?

@Paulescu
Copy link
Collaborator

@maxwkut Have you tried removing the pip install torch... from the makefile and running poetry add torch ?

@iusztinpaul
Copy link
Owner

@maxwkut Have you managed to make it work?

@maxwkut
Copy link
Author

maxwkut commented Dec 18, 2023

@Paulescu @iusztinpaul I took out the torch-cpu dependency from pyproject.toml and then added the regular torch package using poetry add torch. Not sure if torch is a valid substitute for torch-cpu, but that at least allowed me to proceed to the next step: make run_real_time. Here I am now getting an error that there is an incompatible architecture (have arm64, but binary was compiled for x86_64)
Screenshot 2023-12-18 at 12 09 00 PM

@iusztinpaul
Copy link
Owner

iusztinpaul commented Dec 18, 2023

Try to remove the torch completely from pyproject.toml by running poetry remove torch and then install it in your Poetry virtual environment using pip: poetry run pip install torch==2.0.1

Let me know if this works.

If that doesn't work, try to install it directly from the wheel, depending on your platform, something like this:

poetry add "https://download.pytorch.org/whl/cu118/torch-2.0.0%2Bcu118-cp310-cp310-linux_x86_64.whl" --platform linux
poetry add "https://download.pytorch.org/whl/cu118/torch-2.0.0%2Bcu118-cp310-cp310-linux_x86_64.whl" --platform darwin

Let me know if that works for you.

@maxwkut
Copy link
Author

maxwkut commented Dec 18, 2023

As you can see, I ran poetry run pip install torch == 2.0.1 after removing it.

Screenshot 2023-12-18 at 5 39 37 PM

It's saying that streaming-pipeline 0.1.0 requires torch<3.0.0,>=2.1.2?

I also tried running make run_real_time afterwards and the incompatible architecture error still persists

@iusztinpaul
Copy link
Owner

Have you tried the second option?

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

3 participants