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

tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
9mm
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
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "eq...
New
nobody
Hi! In PHP: $SERVER['SERVERADDR'] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I'm a nov...
New

Other popular topics Top

Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
lastday4you
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
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
JorisKok
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
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement