Harrygr
Error when installing Livebook with escript
I’m trying to get Livebook working on my M1 Mac running Elixir 1.13.0. I’m using the escript installation method:
$ mix escript.install hex livebook`
After some dependences have been fetched and some compilation messages the thing dies with the following message:
could not compile dependency :phoenix_live_dashboard, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile phoenix_live_dashboard", update it with "mix deps.update phoenix_live_dashboard" or clean it with "mix deps.clean phoenix_live_dashboard"
** (MatchError) no match of right hand side value: {:error, {:telemetry, {'no such file or directory', 'telemetry.app'}}}
// stacktrace continues
The full output
$ mix escript.install hex livebook [15:56:24]
Resolving Hex dependencies...
Dependency resolution completed:
New:
aws_signature 0.2.0
castore 0.1.12
cowboy 2.9.0
cowboy_telemetry 0.3.1
cowlib 2.11.0
earmark_parser 1.4.18
jason 1.2.2
livebook 0.4.1
mime 1.6.0
phoenix 1.6.2
phoenix_html 3.1.0
phoenix_live_dashboard 0.6.1
phoenix_live_view 0.17.5
phoenix_pubsub 2.0.0
phoenix_view 1.0.0
plug 1.12.1
plug_cowboy 2.5.2
plug_crypto 1.2.2
ranch 1.8.0
telemetry 0.4.3
telemetry_metrics 0.6.1
telemetry_poller 0.5.1
* Getting livebook (Hex package)
* Getting aws_signature (Hex package)
* Getting castore (Hex package)
* Getting earmark_parser (Hex package)
* Getting jason (Hex package)
* Getting phoenix (Hex package)
* Getting phoenix_html (Hex package)
* Getting phoenix_live_dashboard (Hex package)
* Getting phoenix_live_view (Hex package)
* Getting plug_cowboy (Hex package)
* Getting telemetry_metrics (Hex package)
* Getting telemetry_poller (Hex package)
* Getting telemetry (Hex package)
* Getting cowboy (Hex package)
* Getting cowboy_telemetry (Hex package)
* Getting plug (Hex package)
* Getting mime (Hex package)
* Getting plug_crypto (Hex package)
* Getting cowlib (Hex package)
* Getting ranch (Hex package)
* Getting phoenix_pubsub (Hex package)
* Getting phoenix_view (Hex package)
You have added/upgraded packages you could sponsor, run `mix hex.sponsor` to learn more
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
aws_signature 0.2.0
castore 0.1.12
cowboy 2.9.0
cowboy_telemetry 0.3.1
cowlib 2.11.0
earmark_parser 1.4.18
jason 1.2.2
mime 1.6.0
phoenix 1.6.2
phoenix_html 3.1.0
phoenix_live_dashboard 0.6.1
phoenix_live_view 0.17.5
phoenix_pubsub 2.0.0
phoenix_view 1.0.0
plug 1.12.1
plug_cowboy 2.5.2
plug_crypto 1.2.2
ranch 1.8.0
telemetry 0.4.3
telemetry_metrics 0.6.1
telemetry_poller 0.5.1
All dependencies are up to date
==> earmark_parser
Compiling 1 file (.yrl)
Compiling 2 files (.xrl)
Compiling 3 files (.erl)
Compiling 33 files (.ex)
Generated earmark_parser app
===> Compiling aws_signature
===> Compiling ranch
===> Compiling telemetry
==> telemetry_metrics
Compiling 7 files (.ex)
warning: :telemetry.attach/4 is undefined (module :telemetry is not available or is yet to be defined)
lib/telemetry_metrics/console_reporter.ex:61: Telemetry.Metrics.ConsoleReporter.init/1
warning: :telemetry.detach/1 is undefined (module :telemetry is not available or is yet to be defined)
lib/telemetry_metrics/console_reporter.ex:70: Telemetry.Metrics.ConsoleReporter.terminate/2
Generated telemetry_metrics app
===> Compiling telemetry_poller
==> jason
Compiling 8 files (.ex)
Generated jason app
==> castore
Compiling 1 file (.ex)
Generated castore app
==> phoenix_pubsub
Compiling 11 files (.ex)
Generated phoenix_pubsub app
===> Compiling cowlib
===> Compiling cowboy
===> Compiling cowboy_telemetry
==> mime
Compiling 2 files (.ex)
Generated mime app
==> plug_crypto
Compiling 5 files (.ex)
Generated plug_crypto app
==> plug
Compiling 1 file (.erl)
Compiling 41 files (.ex)
warning: System.stacktrace/0 is deprecated. Use __STACKTRACE__ instead
lib/plug/conn/wrapper_error.ex:23: Plug.Conn.WrapperError.reraise/3
Generated plug app
==> phoenix_html
Compiling 8 files (.ex)
Generated phoenix_html app
==> phoenix_view
Compiling 5 files (.ex)
Generated phoenix_view app
==> plug_cowboy
Compiling 5 files (.ex)
warning: :telemetry.attach/4 is undefined (module :telemetry is not available or is yet to be defined)
lib/plug/cowboy.ex:293: Plug.Cowboy.run/4
Generated plug_cowboy app
==> phoenix
Compiling 68 files (.ex)
warning: :telemetry.attach/4 is undefined (module :telemetry is not available or is yet to be defined)
lib/phoenix/logger.ex:136: Phoenix.Logger.install/0
warning: :telemetry.execute/3 is undefined (module :telemetry is not available or is yet to be defined)
lib/phoenix/socket.ex:449: Phoenix.Socket.__connect__/3
warning: :telemetry.execute/3 is undefined (module :telemetry is not available or is yet to be defined)
lib/phoenix/endpoint/render_errors.ex:81: Phoenix.Endpoint.RenderErrors.instrument_render_and_send/5
warning: :telemetry.execute/3 is undefined (module :telemetry is not available or is yet to be defined)
Invalid call found at 2 locations:
lib/phoenix/channel/server.ex:301: Phoenix.Channel.Server.handle_info/2
lib/phoenix/channel/server.ex:318: Phoenix.Channel.Server.handle_info/2
warning: :telemetry.execute/3 is undefined (module :telemetry is not available or is yet to be defined)
Invalid call found at 5 locations:
lib/phoenix/router.ex:345: Phoenix.Router.__call__/2
lib/phoenix/router.ex:351: Phoenix.Router.__call__/2
lib/phoenix/router.ex:360: Phoenix.Router.__call__/2
lib/phoenix/router.ex:366: Phoenix.Router.__call__/2
lib/phoenix/router.ex:372: Phoenix.Router.__call__/2
Generated phoenix app
==> phoenix_live_view
Compiling 29 files (.ex)
warning: :telemetry.span/3 is undefined (module :telemetry is not available or is yet to be defined)
Invalid call found at 2 locations:
lib/phoenix_live_view/utils.ex:294: Phoenix.LiveView.Utils.maybe_call_live_view_mount!/4
lib/phoenix_live_view/utils.ex:363: Phoenix.LiveView.Utils.call_handle_params!/5
warning: :telemetry.span/3 is undefined (module :telemetry is not available or is yet to be defined)
Invalid call found at 2 locations:
lib/phoenix_live_view/channel.ex:340: Phoenix.LiveView.Channel.view_handle_event/3
lib/phoenix_live_view/channel.ex:552: Phoenix.LiveView.Channel.inner_component_handle_event/4
Generated phoenix_live_view app
15:57:02.921 [notice] Application plug_crypto exited: :stopped
15:57:02.924 [notice] Application mime exited: :stopped
15:57:02.924 [notice] Application eex exited: :stopped
==> phoenix_live_dashboard
could not compile dependency :phoenix_live_dashboard, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile phoenix_live_dashboard", update it with "mix deps.update phoenix_live_dashboard" or clean it with "mix deps.clean phoenix_live_dashboard"
** (MatchError) no match of right hand side value: {:error, {:telemetry, {'no such file or directory', 'telemetry.app'}}}
(phoenix 1.6.2) lib/mix/tasks/compile.phoenix.ex:19: Mix.Tasks.Compile.Phoenix.run/1
(mix 1.13.0) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.0) lib/mix/tasks/compile.all.ex:92: Mix.Tasks.Compile.All.run_compiler/2
(mix 1.13.0) lib/mix/tasks/compile.all.ex:72: Mix.Tasks.Compile.All.compile/4
(mix 1.13.0) lib/mix/tasks/compile.all.ex:59: Mix.Tasks.Compile.All.with_logger_app/2
(mix 1.13.0) lib/mix/tasks/compile.all.ex:36: Mix.Tasks.Compile.All.run/1
(mix 1.13.0) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.0) lib/mix/tasks/compile.ex:131: Mix.Tasks.Compile.run/1
Any ideas how to dubug/fix this?
Most Liked
Harrygr
To answer my own question, the problem was my that version of rebar3 was outdated.
Upon updating rebar3 with mix local.rebar Livebook now works as intended
8
Popular in Questions
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this:
...
New
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database.
Dep...
New
I would like to know what is the best IDE for elixir development?
New
Hello,
I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these
buyer = %{
id: ...
New
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work.
Or rather, not char, but a substr...
New
Other popular topics
Update:
How to use the Blogs & Podcasts section
You can post links to your blog posts or podcasts either in one of the Official Blog...
New
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
Credo is smart enough to check for (something like) this:
assert length(the_list) == 0
with this response:
Checking if an enum is empt...
New
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Hi,
I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
Hello guys,
I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New







