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

Development with m1 mac issues with create_env_installer:mac (osx-arm64) #711

Closed
snoolord opened this issue Oct 2, 2023 · 3 comments
Closed
Labels

Comments

@snoolord
Copy link

snoolord commented Oct 2, 2023

Description

Following the local development guide, I'm running into an issue with the yarn create_env_installer:<platform> step, receiving the error: Platform in lockfile 'osx-64' is not compatible with system platform 'osx-arm64'. On further inspection it looks that all the conda-osx-64.lock is downloading all packages for osx-64 currently.
Is there any devs using M1 macs that have a workaround to get conda working for local development?

These issues after installing conda via miniforge3 and all relevant conda dependencies.

Reproduce

  1. Go to developer documentation
  2. Follow the instructions on an M1 macbook
  3. once at the yarn create_env_installer:mac step
  4. See error
yarn create_env_installer:mac
yarn run v1.22.19
warning ../../package.json: No license field
$ yarn clean_env_installer && conda-lock install --prefix ./env_installer/jlab_server ./env_installer/conda-osx-64.lock && conda pack -p ./env_installer/jlab_server -o ./env_installer/jlab_server.tar.gz
warning ../../package.json: No license field
$ rimraf ./env_installer/jlab_server.tar.gz && conda env remove -p ./env_installer/jlab_server -y
Traceback (most recent call last):
  File "/Users/winstonzhao/miniforge3/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 1477, in install
    do_validate_platform(lockfile_contents)
  File "/Users/winstonzhao/miniforge3/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 195, in do_validate_platform
    raise PlatformValidationError(
conda_lock.errors.PlatformValidationError: Platform in lockfile 'osx-64' is not compatible with system platform 'osx-arm64'.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/winstonzhao/miniforge3/bin/conda-lock", line 10, in <module>
    sys.exit(main())
  File "/Users/winstonzhao/miniforge3/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/Users/winstonzhao/miniforge3/lib/python3.10/site-packages/click/core.py", line 1078, in main

Expected behavior

yarn create_env_installer:mac creates the local python installer and local development works.

Context

  • Operating System and version: MacOS Ventura 13.4.1
  • JupyterLab-Desktop version: 4.0.6-1
  • Installer: local development? .dmg
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the terminal inside of JupyterLab Desktop here.
You may want to sanitize the paths in the output.
Browser Output (required for interface issues after loading)
Paste the output from the DevTools JavaScript console here, if applicable.
Logs (required for issues with loading, server and startup)
Paste the logs from the `main.log` file here (optionally also from `renderer.log`).
@snoolord snoolord added the bug label Oct 2, 2023
@welcome
Copy link

welcome bot commented Oct 2, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@mbektas
Copy link
Member

mbektas commented Oct 4, 2023

thanks for reporting this @snoolord . since we are not bundling Apple silicon Python environment with the app yet (due to GitHub Actions limitation), we didn't add support in the local dev environment. I will work on the local dev environment support soon to address this problem.

@mbektas
Copy link
Member

mbektas commented Oct 27, 2023

@snoolord we now have full support for Apple silicon on Mac with version 4.0.7-1. For local development you can use the new script yarn create_env_installer:osx-arm64

@mbektas mbektas closed this as completed Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants