Skip to content

Bundled python environment produces "bad CPU type" for Apple M2 #700

Closed
@joshuabfraser

Description

@joshuabfraser

Description

Installing arm64 version of JupyterLab-Desktop for Mac has issues with the bundled python environment. Installing the bundled python environment through the welcome page gives the error:

Failed to install! [Installer Exit: 126]

Any attempts to start the application after this causes an immediate crash.

This may be caused by the bundled python only including an x86_64 version of the python interpreter.

Trying to run the bundle provided interpreter (without Rosetta installed):

 ~/Library/jupyterlab-desktop/jlab_server/bin/python3.8 --version

produces the error:

zsh: bad CPU type in executable: /Users/userid/Library/jupyterlab-desktop/jlab_server/bin/python3.8

To verify that the bundled python is x86_64 only:

file  ~/Library/jupyterlab-desktop/jlab_server/bin/python3.8

produces

/Users/userid/Library/jupyterlab-desktop/jlab_server/bin/python3.8: Mach-O 64-bit executable x86_64

Running JupyterLab.app/Contents/MacOS/JupyterLab with other log-levels doesn't produce any additional output except:

ln: /usr/local/bin/jlab: No such file or directory

Which is the same output produced before attempting to install the bundled python environment, and the same output produced after the ~/Library/jupyterlab-desktop directory is removed. Removing the configuration directory does allow it to start to the welcome screen again.

No log file is produced in ~/Library/jupyterlab-desktop.

This issue can likely be circumvented by installing Rosetta or installing a custom python environment. Still, for a first time user this is a confusing and unexpected first-launch experience.

Context

  • Operating System and version: MacOS Ventura 13.5.1
  • JupyterLab-Desktop version: 4.05-1
  • Installer: .dmg

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions