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

Building from source for RPi 4 Bullseye using Python 3.9 #6

Open
swm35 opened this issue Mar 8, 2023 · 14 comments
Open

Building from source for RPi 4 Bullseye using Python 3.9 #6

swm35 opened this issue Mar 8, 2023 · 14 comments

Comments

@swm35
Copy link

swm35 commented Mar 8, 2023

Good afternoon

I have been trying to follow your very helpful instructions to build from source for a 64-bit RPi 4 Bullseye OS using Python 3.9 and aarch64. I keep getting this error on the item 6 command "python3 setup.py sdist bdist_wheel" at the bdist_wheel stage though:

"error: [Errno 2] No such file or directory: 'build/CMakeCache.txt'".

Do you know how to resolve this by any chance? Looking through the code suggests that file should have been made some point earlier in the process.

Any thoughts greatly appreciated as Torchaudio in particular is not working using simple pip install methods.

Kind regards

Simon

@Fire-Cube
Copy link
Collaborator

I would be glad to help you. Which version do you want to build?

@swm35
Copy link
Author

swm35 commented Mar 8, 2023

That would be brilliant, thank you. I am looking to run diart and pyannote.audio on the RPi, so I need to install these versions:
pytorch==1.11.0
torchvision==0.12.0
torchaudio==0.11.0

Let me know if I have misunderstood your query.

@torchsmoke
Copy link
Owner

I think I'll try to compile wheels again.

@swm1718
Copy link

swm1718 commented Mar 15, 2023

Hi @Fire-Cube and @torchsmoke

Please could I check how this is going? Are there any particular difficulties with the versions I listed? Am very much looking forward to getting this working.

Kind regards

Simon

@Fire-Cube
Copy link
Collaborator

@swm1718 It seems that the newer PyTorch versions have problems with the gcc compiler. I can try again tomorrow to find a solution.
Me and torchsmoke are the same by the way.

@swm1718
Copy link

swm1718 commented Mar 15, 2023

Noted, thank you. It would be great if you could get it working.

@Fire-Cube
Copy link
Collaborator

@swm1718 It seems that the Raspberry compiler has a bug. Which is why the PyTorch compilation aborts. I'm currently building a new gcc.

@swm1718
Copy link

swm1718 commented Mar 18, 2023

That's interesting to know, thank you. Is that RPi compiler bug specific to these later versions of Python/PyTorch? It sounds as though you didn't encounter that bug with your previous wheels.

@Fire-Cube
Copy link
Collaborator

@swm1718 The later PyTorch versions use things that are not possible with the pre-installed GCC version due to a bug.

@swm1718
Copy link

swm1718 commented Mar 28, 2023

Hi @Fire-Cube - How is the gcc building going?

@Fire-Cube
Copy link
Collaborator

@swm1718 The gcc build is finished. The compilation of PyTorch now does not work because of another error. I don't know yet what the problem is. Tomorrow I can try again.

@swm35
Copy link
Author

swm35 commented Apr 6, 2023

Hi @Fire-Cube - Did you manage to find out what the PyTorch compilation error was by any chance?

@swm1718
Copy link

swm1718 commented Apr 27, 2023

Hi @Fire-Cube - Just checking in to see how things are going here. Did you have any luck resolving the PyTorch compilation error?

@Fire-Cube
Copy link
Collaborator

No sadly not.

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

4 participants