reza

reza

EXLA compile fails

Trying to follow Jose’s video on Announcing Livebook (with Axon). The very first Elixir cell introducing the dependencies fails on EXLA compilation. Here’s the message:

**warning: got "@impl true" for function __jit__/4 but no behaviour specifies such callback. There are no known callbacks, please specify the proper @behaviour and make sure it defines callbacks**
**  lib/exla.ex:353: EXLA (module)**

**warning: got "@impl true" for function __stream__/6 but no behaviour specifies such callback. There are no known callbacks, please specify the proper @behaviour and make sure it defines callbacks**
**  lib/exla.ex:356: EXLA (module)**

**== Compilation error in file lib/exla/defn/stream.ex ==**
**** (ArgumentError) could not load module Nx.Stream due to reason :unavailable**
**    (elixir 1.13.2) lib/protocol.ex:315: Protocol.assert_protocol!/2**
**    lib/exla/defn/stream.ex:60: (module)**
**could not compile dependency :exla, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile exla", update it with "mix deps.update exla" or clean it with "mix deps.clean exla"**

I’m using: Elixir 1.13.2 & Livebook 0.5.2 on Fedora-35.

Thanks! :smiley:

Most Liked

josevalim

josevalim

Creator of Elixir

There is a typo in your deps. The word “sparse” is wrong!

ChrisMD2

ChrisMD2

In the EXLA readme “At the moment you will have to use a Git dependency while we work on our first release:”. Hope this helps.

reza

reza

Hi there,

Here’s the compile log with more lines before the error.
It seems the compiler cann’t find Nx.Defn.Compiler, whereas I’ve got this in mix.exs:

  defp deps do
    [
      {:exla, "~> 0.1.0-dev", github: "elixir-nx/nx", sparse: "exla"},
      {:nx, "~> 0.1.0-dev", github: "elixir-nx/nx", spasre: "nx", override: true},
      {:axon, "~> 0.1.0-dev", github: "elixir-nx/axon"}
    ]
  end

====

Compiling 21 files (.ex)
warning: @behaviour Nx.Defn.Compiler does not exist (in module EXLA)
lib/exla.ex:1: EXLA (module)

warning: got “@impl true” for function jit/4 but no behaviour specifies such callback. There are no known callbacks, please specify the proper @behaviour and make sure it defines callbacks
lib/exla.ex:353: EXLA (module)

warning: got “@impl true” for function stream/6 but no behaviour specifies such callback. There are no known callbacks, please specify the proper @behaviour and make sure it defines callbacks
lib/exla.ex:356: EXLA (module)

== Compilation error in file lib/exla/defn/stream.ex ==
** (ArgumentError) could not load module Nx.Stream due to reason :unavailable
(elixir 1.13.3) lib/protocol.ex:315: Protocol.assert_protocol!/2
lib/exla/defn/stream.ex:60: (module)
could not compile dependency :exla, “mix compile” failed. Errors may have been logged above. You can recompile this dependency with “mix deps.compile exla”, update it with “mix deps.update exla” or clean it with “mix deps.clean exla”

Hope this makes it more clear

Thanks :smiley: (

Where Next?

Popular in Questions Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36432 110
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
vertexbuffer
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
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 48475 226
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New

We're in Beta

About us Mission Statement