1

I have been using ubergraph last few weeks up until this morning, but now am having compiling problem.

In my project.clj's dependencies, ubergraph is declared:

(defproject graph-alg "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.0"]
               [ubergraph "0.8.2"]]

In my core.clj, I have

(ns gaph-alg.core (:require [ubergraph.core :as uber]))

Even with these settings, when compiling in emacs, I kept having this error message:

*Error compiling c:/.Clojure/snippets/graphworks/graph-alg/src/graph_alg/core.clj at (1:1) #:clojure.error{:phase :compile-syntax-check, :line 1, :column 1, :source "c:/.Clojure/snippets/graphworks/graph-alg/src/graph_alg/core.clj"}

  1. Caused by java.lang.Exception namespace 'ubergraph.core' not found*

I recreated new projects using lein few times with above setting, but still have same issue like above.

I am not sure whether this comes from emacs cider-repl or something else.

Does anybody else know how to handle this problem? Thanks in advance.

5
  • 1
    You can narrow the problem by trying it in a REPL free of Emacs and CIDER. For example, "lein repl". Commented Apr 19, 2021 at 23:08
  • The error message means that Ubergraph is not on the Java classpath. You can inspect the classpath in the REPL by evaluating (System/getProperty "java.class.path"). Commented Apr 19, 2021 at 23:12
  • I checked the java.class.path and found ubergraph-0.8.2.jar in the path. Commented Apr 20, 2021 at 0:56
  • I tried: new lein project, added the dep, started a repl and did (:require [ubergraph.core :as uber]) - worked. Since you stated you already tried with a fresh template. Is there a chance you could share your project in full (e.g. on some git site)? Commented Apr 20, 2021 at 16:41
  • 1
    I found that this error comes from my dumb mistake - I added ubergraph & dorothy in my project.clj file with dorothy version 0.0.7, which conflicts with ubergraph's dorothy version. After I downgraded dorothy version to 0.0.6, which is the same version that ubergraph is using, it works fine. Thank you so much guys - Phill & cfrick - for your helpful comments! Commented Apr 21, 2021 at 17:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.