necromorph23

necromorph23

Kaffe Dependency keeps on giving the same error "Could not compile dependency :brod"

I am trying to install kaffe in my project. But i keep on getting this error when i do mix deps.compile

Generated nimble_options app
===> Analyzing applications...
===> Compiling brod
===> Compiling src/brod_group_member.erl failed
include/brod.hrl:{21,14}: can't find include lib "kafka_protocol/include/kpro_public.hrl"; Make sure kafka_protocol is in your app file's 'applications' list

include/brod_int.hrl:{21,14}: can't find include lib "kafka_protocol/include/kpro.hrl"; Make sure kafka_protocol is in your app file's 'applications' list

==> vortex_pub_sub
** (Mix) Could not compile dependency :brod, "/home/monarch/.mix/elixir/1-14/rebar3 bare compile --paths /home/monarch/proj/vortex-pub-sub/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile brod", update it with "mix deps.update brod" or clean it with "mix deps.clean brod"

This is my mix.exs file

defmodule VortexPubSub.MixProject do
  use Mix.Project

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

  # Run "mix help compile.app" to learn about applications.
  def application do
    [
      mod: {VortexPubSub, []},
      extra_applications: [:logger, :ecto, :kaffe]
    ]
  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"}
      {:plug_cowboy, "~> 2.7"},
      {:phoenix_pubsub, "~> 2.1"},
      {:phoenix_live_view, "~> 0.20.17"},
      {:ecto_sql, "~> 3.11"},
      {:ecto_enum, "~> 1.4"},
      {:jason, "~> 1.4"},
      {:elixir_uuid, "~> 1.2"},
      {:finch, "~> 0.18.0"},
      {:postgrex, "~> 0.18.0"},
      {:credo, "~> 1.7"},
      {:timex, "~> 3.7"},
      {:kafka_ex, "~> 0.13.0"},
      {:mongodb_driver, "~> 1.4"},
      {:guardian, "~> 2.3"},
      {:httpoison, "~> 2.2"},
      {:joken, "~> 2.6"},
      {:kaffe, "~> 1.26"}
    ]
  end

  defp elixirc_paths(:test), do: ["lib", "test/_support"]
  defp elixirc_paths(_), do: ["lib"]

  defp aliases do
    [
      "ecto.setup": ["ecto.create", "ecto.migrate"],
      "ecto.reset": ["ecto.drop", "ecto.setup"],
      test: ["ecto.create --quiet", "ecto.migrate", "test"]
    ]
  end
end

I have downgraded kaffe version and deleted deps and _build again and compiled the entire project but i still keep on getting same issue

First Post!

dimitarvp

dimitarvp

I had problems with Kaffe just a few months ago on Erlang 27. Are you using that? Have you tried with 26?

Where Next?

Popular in Questions Top

gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
quazar
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
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
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
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
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
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
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
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
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

Other popular topics Top

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
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
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
joaquinalcerro
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
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
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
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
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New

We're in Beta

About us Mission Statement