pomegranate icon indicating copy to clipboard operation
pomegranate copied to clipboard

The Incanter example doesn't work with clojure-1.8.0

Open abo-abo opened this issue 7 years ago • 3 comments

I'm running this code snippet:

(use '[cemerick.pomegranate :only (add-dependencies)])
(add-dependencies :coordinates '[[incanter "1.5.7"]]
                  :repositories (merge cemerick.pomegranate.aether/maven-central
                                       {"clojars" "https://clojars.org/repo"}))
(require '(incanter core stats charts))

It doesn't work either with clojure-1.8.0 or with clojure-1.7.0. It does work with clojure-1.6.0.

abo-abo avatar Jan 01 '18 22:01 abo-abo

OK, after some digging I got add-dependencies to work with:

:dependencies [[org.clojure/clojure "1.9.0"]
               [org.tcrawley/dynapath "0.2.5"]
               [com.cemerick/pomegranate "0.4.0"]]

I can understand if dynapath wanted to remove some code for Java 9, it may still be useful after that; but it looks like pomegranate 1.0.0 doesn't do what it says on the tin anymore.

abo-abo avatar Jan 01 '18 23:01 abo-abo

Can confirm the issue and the provided solution by @abo-abo. However, I would prefer version 1.0.0 would just work by itself ;)

agodde avatar Jan 25 '18 10:01 agodde

@abo-abo @agodde please, take a look on PR above and try if it's working now in your setup

razum2um avatar Jul 13 '18 10:07 razum2um

This is a pretty old issue, but after I update dynapath to the current release, I'll see if I can still reproduce the issue.

lread avatar Jan 17 '23 17:01 lread

Unfortunately, nobody elaborated beyond "it doesn't work" which leaves me wondering what failure symptom to expect.

Note that since this issue was raised the example in the README was updated to reference incanter v1.9.2.

I can run the incanter README example in clojure versions 1.11, 1.10, 1.9, 1.8, 1.7. I do get a failure in Clojure 1.6.

user=> (require '(incanter core stats charts))
CompilerException java.io.FileNotFoundException: Could not locate clojure/core/matrix__init.class or clojure/core/matrix.clj on classpath: , compiling:(incanter/internal.clj:1:1) 

Gonna close this one for now. If someone provides an example detailing an unexpected failure, I am happy to have a peek.

lread avatar Jan 17 '23 21:01 lread