livebook-dev / livebook

Automate code & data workflows with interactive Elixir notebooks
https://livebook.dev
Apache License 2.0
5.01k stars 429 forks source link

Evaluation Process Terminated installing deps with Mac desktop app #1500

Closed kipcole9 closed 2 years ago

kipcole9 commented 2 years ago

Environment

Current behavior: Livebook Mac App 0.7.1

Installing dependencies raises a boot error in Mac standalone app. Note that the environment variable PATH in Settings is set to /usr/local/bin for the build tool chain required for vix.

image

Removing {:image, ">= 0.13.1"} boots without error

image

Livebook Escript version 0.7 and 0.7.1 execute with no error

image

Iex session executes correctly

kip@Kips-iMac-Pro test % iex
Erlang/OTP 25 [erts-13.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Interactive Elixir (1.14.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Mix.install([
...(1)>   {:nx, "~> 0.3.0"},
...(1)>   {:stb_image, "~> 0.5.2"},
...(1)>   {:vix, "~> 0.14"},
...(1)>   {:kino, "~> 0.7.0"},
...(1)>   {:evision, ">= 0.1.14"},
...(1)>   {:image, ">= 0.13.1"}
...(1)> ])
:ok

Expected behavior

Installation in the Mac standalone app to compile - or to report an easier to understand error.

josevalim commented 2 years ago

I am pretty sure this is related to the fact we are using the Livebook boot process also for the runtime and it will be addressed by #1495.

wojtekmach commented 2 years ago

@kipcole9 thank you for the report. This should indeed be solved by #1495 which just landed on main. The fix is also already available as a nightly build and if you could give that a go we'd appreciate it!

kipcole9 commented 2 years ago

Confirmed working on the nightly build. Thanks much @wojtekmach, much appreciated.