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

Can not build Tribler on Apple Silicon (M1) #7252

Open
drew2a opened this issue Jan 10, 2023 · 8 comments
Open

Can not build Tribler on Apple Silicon (M1) #7252

drew2a opened this issue Jan 10, 2023 · 8 comments

Comments

@drew2a
Copy link
Collaborator

drew2a commented Jan 10, 2023

macOS: 13.0.1 (22A400)
Chip: Apple M1

pip install libtorrent==1.2.15

ERROR: Could not find a version that satisfies the requirement libtorrent==1.2.15 (from versions: none)
ERROR: No matching distribution found for libtorrent==1.2.15

arvidn/libtorrent#7131

pip install PyQt5==5.15.1

...
ERROR: Command errored out with exit status 1:
...
        Complete output (29 lines):
        Traceback (most recent call last):
          File "<path>/_in_process.py", line 143, in prepare_metadata_for_build_wheel
            hook = backend.prepare_metadata_for_build_wheel
        AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel' 
@Solomon1732
Copy link
Contributor

Solomon1732 commented May 25, 2023

I can confirm for Fedora 37 too. I was about to open a bug report before I saw this one is already open.

Describe the bug
When I run pip3 install --upgrade -r tribler/requirements.txt, it fails with the following error:

ERROR: Could not find a version that satisfies the requirement libtorrent==1.2.15 (from versions: none)
ERROR: No matching distribution found for libtorrent==1.2.15

To Reproduce
Steps to reproduce the behavior:

  1. Open the terminal in /home/[user]
  2. Run sudo dnf install python3-devel python3-pip git
  3. Run git clone https://github.com/tribler/tribler
  4. Run pip3 install --upgrade -r tribler/requirements.txt
  5. See error

Expected behavior
Pip installs successfully and without errors.

Desktop (please complete the following information):

  • OS: [Fedora 37]
  • Tribler's version [main branch]

Additional context
I am trying to set up a development environment as per these instructions.

@Solomon1732
Copy link
Contributor

On further thought, something else came to my mind. This bug prevents me from setting up a testing environment on a local machine. Since I can't fulfil the requirements (and basic ones at that), I can't locally test Tribler. To test any PR I make in any way I'm forced to use this project's PR system.

@InvictusRMC
Copy link
Member

@Solomon1732 I got Tribler working on M1 with a local workaround, see also #7448
image

@Solomon1732
Copy link
Contributor

I should have specified before: I have this problem in Fedora 37 on Intel 😅. I'll try to see if it also shows up in Fedora 38 (also Intel).

@InvictusRMC
Copy link
Member

I should have specified before: I have this problem in Fedora 37 on Intel 😅. I'll try to see if it also shows up in Fedora 38 (also Intel).

Are you running 3.11? Because this was also the Apple Silicone issue.

@Solomon1732
Copy link
Contributor

I checked and yes, it's the problem. It also holds true for Fedora 38. Mind you, I'm using them in close to vanilla form. I didn't change the python version manually.

@Solomon1732
Copy link
Contributor

I forgot to mention, it's a problem also on Intel CPUs. It's not limited to M1s

@drew2a
Copy link
Collaborator Author

drew2a commented Dec 14, 2023

I unassign myself from this issue as I no longer have access to an M1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants