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

Install on MacOS Ventura with Apple Silicon #164

Closed
ianfoster opened this issue Jan 7, 2023 · 3 comments
Closed

Install on MacOS Ventura with Apple Silicon #164

ianfoster opened this issue Jan 7, 2023 · 3 comments

Comments

@ianfoster
Copy link

Has anyone run the demo code on a Mac with Apple silicon?

Trying conda env create -f environment.yml on a MacBook Pro, MacOS 13.1, Apple M1 Max,
I see the error shown in the attached trace.txt, which some Googling suggests may be an Apple silicon problem.

error: legacy-install-failure

× Encountered error while trying to install package.
╰─> RPi.GPIO

@sgbaird
Copy link
Member

sgbaird commented Jan 7, 2023

Hi @ianfoster, really glad to see that you got the demo up and running, and thanks for sharing in your Twitter post! I might need to locate a New Zealand map lol 😉.

The problem is likely with one of the following two dependencies:

- blinkt
- adafruit-circuitpython-as7341

Incidentally, both are no longer needed after the switch from the Raspberry Pi 4B single board computer to the Pico W microcontroller, so I'm removing them in #165.

If there are any other dependency conflicts you run into, it might be worth also trying to run pip install -e . inside of a fresh conda environment while inside the self-driving-lab-demo directory in case one of the Anaconda packages is causing an issue. Generally, I put dependencies that are necessary for some of the notebooks (but not for the Python package) and dependencies that are useful for development in environment.yml, but I don't keep as close of a watch on it as I do with setup.cfg. I'll see about verifying the environment.yml file installs correctly via the GitHub actions tests #166.

Not sure if this is what you showed in the Twitter video, but another option for quick tests is running this tutorial notebook in Google Colab via the "Open in Colab" badge.

@ianfoster
Copy link
Author

That works, thanks! (And I have the Google Colab running now also, via the other issue.)

@sgbaird
Copy link
Member

sgbaird commented Jan 7, 2023

For sure! Glad it's working, and thanks for your patience. I appreciate the detailed issues.

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

2 participants