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 Install macOS with M1 CPU #21

Closed
pqhf5kd opened this issue Jul 22, 2021 · 5 comments
Closed

Unable to Install macOS with M1 CPU #21

pqhf5kd opened this issue Jul 22, 2021 · 5 comments
Labels
blocked: upstream This issue is with a 3rd-party project and is out of scope of Pybricks bug Something isn't working OS: macOS Issues that only occur on macOS

Comments

@pqhf5kd
Copy link

pqhf5kd commented Jul 22, 2021

macOS 11.4. python 3.9.6

I installed pipx through brew and then ran pipx ensurepath.

Then I tried to install pybricksdev:

PIPX_DEFAULT_PYTHON=python3.8 pipx install pybricksdev

pipx.util.PipxError: Default python interpreter 'python3.8' is invalid.

So I tried 3.9 because that's the version I have installed:

PIPX_DEFAULT_PYTHON=python3.9 pipx install pybricksdev

Fatal error from pip prevented installation. Full pip output in file:
    /Users/jakeedmonds/.local/pipx/logs/cmd_2021-07-22_06.23.56_pip_errors.log

pip seemed to fail to build package:
    pybricksdev

Some possibly relevant errors from pip install:
    ERROR: Cannot install pybricksdev==1.0.0a10 and pybricksdev==1.0.0a11 because these package versions have conflicting dependencies.
    ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Error installing pybricksdev.

Then I tried:

pipx install pybricksdev and I get the same error as PIPX_DEFAULT_PYTHON=python3.8 pipx install pybricksdev

@pqhf5kd
Copy link
Author

pqhf5kd commented Jul 22, 2021

I tried specifying 1.0.0a10 and 1.0.0a11 one at a time and neither worked.

pipx install pybricksdev==1.0.0a10
Fatal error from pip prevented installation. Full pip output in file:
    /Users/jakeedmonds/.local/pipx/logs/cmd_2021-07-22_06.30.24_pip_errors.log

pip seemed to fail to build package:
    aioserial<2.0.0,>=1.3.0

Some possibly relevant errors from pip install:
    ERROR: Could not find a version that satisfies the requirement mpy-cross==1.14 (from pybricksdev) (from versions: none)
    ERROR: No matching distribution found for mpy-cross==1.14

Error installing pybricksdev from spec 'pybricksdev==1.0.0a10'.
pipx install pybricksdev==1.0.0a11
Fatal error from pip prevented installation. Full pip output in file:
    /Users/jakeedmonds/.local/pipx/logs/cmd_2021-07-22_06.30.09_pip_errors.log

pip seemed to fail to build package:
    pybricksdev==1.0.0a11

Some possibly relevant errors from pip install:
    ERROR: Could not find a version that satisfies the requirement mpy-cross==1.14 (from pybricksdev) (from versions: none)
    ERROR: No matching distribution found for mpy-cross==1.14

Error installing pybricksdev from spec 'pybricksdev==1.0.0a11'.

@dlech
Copy link
Member

dlech commented Jul 22, 2021

Do you happen to have a new M1 (Arm) Mac?

@pqhf5kd
Copy link
Author

pqhf5kd commented Jul 22, 2021 via email

@dlech
Copy link
Member

dlech commented Jul 22, 2021

That is why the mpy-cross package is not available.

Upstream issues:

The first link is to the source repository for the mpy-cross package if you want to try to hack around it and build it yourself.

@dlech dlech changed the title Unable to Install macOS Unable to Install macOS with M1 CPU Aug 6, 2021
@dlech dlech added blocked: upstream This issue is with a 3rd-party project and is out of scope of Pybricks OS: macOS Issues that only occur on macOS bug Something isn't working labels Aug 6, 2021
@dlech
Copy link
Member

dlech commented Feb 10, 2023

pybricksdev has been working on M1 macs for some time now

@dlech dlech closed this as completed Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: upstream This issue is with a 3rd-party project and is out of scope of Pybricks bug Something isn't working OS: macOS Issues that only occur on macOS
Projects
None yet
Development

No branches or pull requests

2 participants