sourcevault

sourcevault

Running 'mix deps.get' tells me "fatal: could not read Username for 'https://github.com': Inappropriate ioctl for device"

Hi !

I installed Elixir on “Windows Subsystem for Linux”.

I am getting a weird error that I am unable to troubleshoot.

I ran the mix tutorial on creating a minimal module “kv”.

mix compile
Unchecked dependencies for environment dev:
* dep_from_git (https://github.com/elixir-lang/my_dep.git)
  the dependency is not available, run "mix deps.get"
* dep_from_hexpm (Hex package)
  the dependency is not available, run "mix deps.get"
** (Mix) Can't continue due to errors on dependencies

I then ran mix deps.get as suggested.

mix deps.get
* Updating dep_from_git (https://github.com/elixir-lang/my_dep.git)
fatal: could not read Username for 'https://github.com': Inappropriate ioctl for device
** (Mix) Command "git --git-dir=.git fetch --force --quiet --progress" failed

I am kind of stuck what to do :frowning:

Cheers !

Most Liked

leifericf

leifericf

Hmmm. Could you share what the contents of your mix.exs looks like?

If you’re following this tutorial, it should look like this:

defmodule KV.MixProject do
  use Mix.Project

  def project do
    [
      app: :kv,
      version: "0.1.0",
      elixir: "~> 1.6-dev",
      start_permanent: Mix.env == :prod,
      deps: deps()
    ]
  end

  # Run "mix help compile.app" to learn about applications.
  def application do
    [
      extra_applications: [:logger]
    ]
  end

  # Run "mix help deps" to learn about dependencies.
  defp deps do
    [
      # {:dep_from_hexpm, "~> 0.3.0"},
      # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"},
    ]
  end
end

Notice that the two lines inside of deps should be commented out (starting with a #):

  defp deps do
    [
      # {:dep_from_hexpm, "~> 0.3.0"},
      # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"},
    ]
  end

It seems like maybe the two lines in this function might not be commented out in your case?

That’s a more-or-less wild guess and I’m not sure if that’s the issue.

NobbZ

NobbZ

Those 2 are just example entries. They do not actually exist on GitHub nor hex.

sourcevault

sourcevault

Hi !

I think I answered some of my questions.

mix deps.get
Resolving Hex dependencies...
Dependency resolution completed:
New:
  cortex 0.5.0
  file_system 0.2.6
* Getting cortex (Hex package)
* Getting file_system (Hex package)

so is hex only available through mix ?

NobbZ

NobbZ

It would probably tell you for the dep_from_hex if it came thus far.

But for the git ressource it can’t find it publicly, so it assumes it were a repository only available behind a user login.

I’m not sure about the ioctl thing, but afaik it is some kernel tool providing at least parts of the /sys filesystem, not sure how the WSL plays along with it.

NobbZ

NobbZ

Hex itself is only a platform that provides package hosting. A client to use this platform is available as a plugin for mix and rebar3. One can also download packages through the website manually.

As the API is public (but not necessarily documented) everyone could in theory, build his own plugin for other build tools in the BEAM ecosystem or even for buildtools outside of it.

Where Next?

Popular in Questions Top

JDanielMartinez
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
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
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
sergio_101
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
fireproofsocks
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
sacepums
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
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
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
vac
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
wernerlaude
In AR this is so simple @articles = current_user.articles How to do in Ecto? def index(conn, _params) do current_user = conn.assig...
New

Other popular topics Top

chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
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
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
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
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
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
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
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
AstonJ
by Lance Halvorsen Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
460 27162 124
New

We're in Beta

About us Mission Statement