ghannam80

ghannam80

Torchx compile failure: ** (MatchError) no match of right hand side value: {:error, :bad_eocd}

Hello ,
Getting the below error about matching while trying to use livebook or even trying the Mix.install from the command line :

Blockquote
iex(1)> Mix.install(
…(1)> [
…(1)> {:kino_bumblebee, “~> 0.5.0”},
…(1)> {:torchx, “>= 0.0.0”}
…(1)> ],
…(1)> config: [nx: [default_backend: Torchx.Backend]]
…(1)> )
==> torchx
could not compile dependency :torchx, “mix compile” failed. Errors may have been logged above. You can recompile this dependency with “mix deps.compile torchx --force”, update it with “mix deps.update torchx” or clean it with “mix deps.clean torchx”
** (MatchError) no match of right hand side value: {:error, :bad_eocd}
c:/Users/ashra/AppData/Local/mix/Cache/installs/elixir-1.17.1-erts-15.0/9574f12e35c9dbee311aad4b1aba0134/deps/torchx/mix.exs:164: Torchx.MixProject.download_and_unzip/2
(mix 1.17.1) lib/mix/task.ex:574: Mix.Task.run_alias/6
(mix 1.17.1) lib/mix/tasks/compile.all.ex:108: Mix.Tasks.Compile.All.run_compiler/2
(mix 1.17.1) lib/mix/tasks/compile.all.ex:88: Mix.Tasks.Compile.All.compile/4
(mix 1.17.1) lib/mix/tasks/compile.all.ex:62: Mix.Tasks.Compile.All.run/1
(mix 1.17.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
(mix 1.17.1) lib/mix/tasks/compile.ex:159: Mix.Tasks.Compile.run/1

Most Liked

al2o3cr

al2o3cr

There’s been a previous thread with a related error, but no resolution:

Are you doing anything to customize LIBTORCH_TARGET or LIBTORCH_VERSION?

Some other observations, none of which suggest immediate solutions:

  • some settings for those variables on Windows will result in HTTP errors instead of an archive, for instance the Windows download for 2.0.0 with CUDA 11.8

  • downloading a CUDA version that does exist yields a ~2.3GB file, while the :zip library specifies that archive size is limited to 2GB. I don’t have a Windows machine handy to test, but at least on Mac that 2GB limit doesn’t appear to have any effect.

Where Next?

Popular in Questions Top

bsollish-terakeet
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
LegitStack
I’m hoping you guys can give me some general advice and perhaps code examples if you’re feeling up to it. I’m very interested in Elixir,...
New
Werner
Hi, I’m using Ubuntu 18.04 and after updating to OTP-24.0 yesterday i have this warning when I run “mix local.hex”: 14:57:30.512 [warn] ...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
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
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
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
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
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

Other popular topics Top

Qqwy
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...
3268 119930 1237
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
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
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
273 38985 115
New
aesmail
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

We're in Beta

About us Mission Statement