studio icon indicating copy to clipboard operation
studio copied to clipboard

Python selection for LVGL builds on OS X

Open fietser28 opened this issue 2 months ago • 0 comments

Following up on a discussion on Discord:

On OS X it is possible to have multiple python versions and / or installations. This causes some confusion/problems when a user runs pip commands from a terminal to install dependencies and eez-studio runs a different python version during the build of LVGL when converting images.

This happens when a LVGL project has images that need to be converted to .h/.c files.

The python packages from python.org extend the PATH inside the users .zprofile file and not system wide. When starting studio from a zsh shell (npm start) this is not a problem. But starting studio from the UI (e.g. click on the application icon) the system python is used.

There are a few solutions to this problem:

  • add a way for the user to select the python executable/path
  • run the python executable inside a zsh shell that sources .zprofile before starting python (e.g. a login shell).
  • ?

fietser28 avatar Apr 21 '24 13:04 fietser28