Athunnea
Error trying to determine erlang version enoent when running Benchee in Livebook
I was trying to run Benchee in Livebook, was getting Error trying to determine erlang version enoent. Works fine in console. Anyone had this?
Benchee 1.1.0
Livebook 0.9
Elixir 1.14.2
Erlang 25.2
Macos 12.6.3
Logs:
23:26:07.968 [error] GenServer #PID<0.258.0> terminating
** (FunctionClauseError) no function clause matching in String.graphemes/1
(elixir 1.14.2) lib/string.ex:1902: String.graphemes(:ok)
(benchee 1.1.0) lib/benchee/utility/erlang_version.ex:100: Benchee.Utility.ErlangVersion.parse_erlang_version/1
(benchee 1.1.0) lib/benchee/utility/erlang_version.ex:84: Benchee.Utility.ErlangVersion.includes_fixes_from?/2
(benchee 1.1.0) lib/benchee/benchmark/repeated_measurement.ex:60: Benchee.Benchmark.RepeatedMeasurement.determine_resolution_adjustment/2
(benchee 1.1.0) lib/benchee/benchmark/repeated_measurement.ex:42: Benchee.Benchmark.RepeatedMeasurement.determine_n_times/5
(benchee 1.1.0) lib/benchee/benchmark/runner.ex:226: Benchee.Benchmark.Runner.measure_runtimes/4
(benchee 1.1.0) lib/benchee/benchmark/runner.ex:102: Benchee.Benchmark.Runner.measure_scenario/2
(elixir 1.14.2) lib/task/supervised.ex:89: Task.Supervised.invoke_mfa/2
Last message: {:DOWN, #Reference<0.447263386.2991587331.105744>, :process, #PID<0.257.0>, {:function_clause, [{String, :graphemes, [:ok], [file: 'lib/string.ex', line: 1902]}, {Benchee.Utility.ErlangVersion, :parse_erlang_version, 1, [file: 'lib/benchee/utility/erlang_version.ex', line: 100]}, {Benchee.Utility.ErlangVersion, :includes_fixes_from?, 2, [file: 'lib/benchee/utility/erlang_version.ex', line: 84]}, {Benchee.Benchmark.RepeatedMeasurement, :determine_resolution_adjustment, 2, [file: 'lib/benchee/benchmark/repeated_measurement.ex', line: 60]}, {Benchee.Benchmark.RepeatedMeasurement, :determine_n_times, 5, [file: 'lib/benchee/benchmark/repeated_measurement.ex', line: 42]}, {Benchee.Benchmark.Runner, :measure_runtimes, 4, [file: 'lib/benchee/benchmark/runner.ex', line: 226]}, {Benchee.Benchmark.Runner, :measure_scenario, 2, [file: 'lib/benchee/benchmark/runner.ex', line: 102]}, {Task.Supervised, :invoke_mfa, 2, [file: 'lib/task/supervised.ex', line: 89]}]}}
State: %{buffer: ["\e[31m\n23:26:07.967 [error] Task #PID<0.259.0> started from #PID<0.257.0> terminating\n** (FunctionClauseError) no function clause matching in String.graphemes/1\n (elixir 1.14.2) lib/string.ex:1902: String.graphemes(:ok)\n (benchee 1.1.0) lib/benchee/utility/erlang_version.ex:100: Benchee.Utility.ErlangVersion.parse_erlang_version/1\n (benchee 1.1.0) lib/benchee/utility/erlang_version.ex:84: Benchee.Utility.ErlangVersion.includes_fixes_from?/2\n (benchee 1.1.0) lib/benchee/benchmark/repeated_measurement.ex:60: Benchee.Benchmark.RepeatedMeasurement.determine_resolution_adjustment/2\n (benchee 1.1.0) lib/benchee/benchmark/repeated_measurement.ex:42: Benchee.Benchmark.RepeatedMeasurement.determine_n_times/5\n (benchee 1.1.0) lib/benchee/benchmark/runner.ex:226: Benchee.Benchmark.Runner.measure_runtimes/4\n (benchee 1.1.0) lib/benchee/benchmark/runner.ex:102: Benchee.Benchmark.Runner.measure_scenario/2\n (elixir 1.14.2) lib/task/supervised.ex:89: Task.Supervised.invoke_mfa/2\nFunction: #Function<2.21877062/0 in Benchee.Utility.Parallel.map/2>\n Args: []\n\e[0m", "Benchmarking a ...\n", "Benchmark suite executing with the following configuration:\nwarmup: 2 s\ntime: 5 s\nmemory time: 0 ns\nreduction time: 0 ns\nparallel: 1\ninputs: none specified\nEstimated total run time: 7 s\n\n", "Operating System: macOS\nCPU Information: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz\nNumber of Available Cores: 8\nAvailable memory: 16 GB\nElixir 1.14.2\nErlang ok\n\n", "Error trying to determine erlang version enoent\n"], ebin_path: "/var/folders/3z/cr46pg1x64dby064g5971brm0000gn/T/livebook_runtime/m3mc7n4tfo5rx6gl56rmvbbmtvl5rau3/ebin", encoding: :unicode, evaluator: #PID<0.257.0>, evaluator_monitor: #Reference<0.447263386.2991587331.105744>, file: "#cell:dy6feawyxgmazuduzsh53dl5lertircg", input_cache: %{}, modules_defined: MapSet.new([]), object_tracker: #PID<0.141.0>, ref: "dy6feawyxgmazuduzsh53dl5lertircg", runtime_broadcast_to: #PID<11893.910.0>, send_to: #PID<11893.909.0>, token_count: 0, tracer_info: %Livebook.Runtime.Evaluator.Tracer{modules_used: MapSet.new([Benchee, Kernel, :erlang]), modules_defined: %{}, aliases_used: MapSet.new([Benchee]), aliases_defined: %{}, requires_used: MapSet.new([]), requires_defined: MapSet.new([]), imports_used?: true, imports_defined?: false, undefined_vars: MapSet.new([])}}
Most Liked
mayel
Seems to be an issue in this function then (which already has a comment about a workaround for livebook): benchee/system.ex at main · bencheeorg/benchee · GitHub
What happens when you run :erlang.system_info(:otp_release) ?
1
mayel
Ah then I’d check if you’re using the latest version of benchee, you may not have one that implements that workaround.
1
Athunnea
Thanks! Seems that patch hasn’t been released yet
1
Popular in Questions
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
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
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
Hey guys.
I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
I have a list say
x = ["23gh", "56kh", "97mh"]
I would like to pass each element to Val in each iteration.
Say, in iteration 1 -------...
New
Hi all,
I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I'm trying to use Postg...
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
Other popular topics
Hi! May someone helps me, please!
I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
can someone please explain to me how Enum.reduce works with maps
New
I have followed this StackOverflow post to install the specific version of Erlang.
And When I am running mix ecto.setup then getting fol...
New
Hi folks,
Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
New
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
i’m a new one to elixir
which editor can i use
vs code? or atom?
Thanks! :smiley:
New
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
The Elixir Typespec docs show the following syntax for keyword lists in typespecs:
# ...
| [key: type] # keyword lis...
New
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New








