Comments (17)
Based on how quil
was fixed in quil/quil@7f0e7b9 this fixes incanter
:
clj -Sdeps '
{:deps {incanter {:mvn/version "1.9.3"}
com.lowagie/itext {:mvn/version "2.1.7"
:exclusions [bouncycastle/bctsp-jdk14]}
org.bouncycastle/bctsp-jdk14 {:mvn/version "1.38"}}}' \
-e "(use '(incanter core charts)) (view (function-plot sin -4 4))"
Output should look like:
#object[org.jfree.chart.ChartFrame 0x7ce069de "org.jfree.chart.ChartFrame[frame0,0,23,500x400,layout=java.awt.BorderLayout,title=Incanter Plot,resizable,normal,defaultCloseOperation=DISPOSE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,22,500x378,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777675,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]"]
and a graphical window should appear with the function plot.
The trick is that the the buggy bouncy castle had simply a bouncycastle
artifact group-id, but the fixed version has org.bouncycastle
.
from incanter.
So this isn't released yet? Why are we waiting to make a new release?
I still get the error on 1.9.3
Error building classpath. Could not find artifact bouncycastle:bctsp-jdk14:jar:138 in central (https://repo1.maven.org/maven2/)
org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact bouncycastle:bctsp-jdk14:jar:138 in central (https://repo1.maven.org/maven2/)
from incanter.
This is still happening in late summer 2023 (tools.deps).
from incanter.
Bumped into the same issue too.
Is there a workaround that can be applied from deps.edn directly?
I tried it like this, but it doesn't help:
{:deps
{incanter {:mvn/version "1.9.3"}}
:aliases {
:bctsp {:override-deps {org.bouncycastle/bctsp-jdk14 {:mvn/version "1.38"}}}
}
}
from incanter.
Ideally, you should also be able to just use the upcoming 1.9.4 version directly from git, like:
{:deps
{incanter {:git/url "https://github.com/incanter/incanter.git"
:sha "e0a03aac237fcc60587278a36bd2e76266fc6356"}}}
BUT, this does NOT work currently, because it needs a manifest file, like this one for example:
https://github.com/clojure-expectations/clojure-test/blob/master/pom.xml
from incanter.
@stardiviner This is not as nice, but I've found that it works:
clj -Sdeps '{:deps {incanter/incanter-core {:mvn/version "1.9.2"} incanter/incanter-charts {:mvn/version "1.9.2"} incanter/incanter-io {:mvn/version "1.9.2"}} }'
Haven't dug into why yet.
from incanter.
Related to: #365
from incanter.
clj -Sdeps '{:deps {incanter/incanter-core {:mvn/version "1.9.2"} incanter/incanter-charts {:mvn/version "1.9.2"} incanter/incanter-io {:mvn/version "1.9.2"}} }'
Confirmed works on this.
Hmm, maybe did related to #365 , but it said it is fixed.
Other Incanter parts does not work. I tried all of them. Here is the results:
#+NAME: clj install incanter
#+begin_src shell
clj -Sdeps '{:deps {incanter {:mvn/version "1.9.2"}}}'
#+end_src
#+RESULTS[<2018-05-15 14:52:45> da8dfb3eff81c15fbd7e42304a32a1627b10f98b]:
: Error building classpath. Could not find artifact bouncycastle:bctsp-jdk14:jar:138 in central (https://repo1.maven.org/maven2/)
: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact bouncycastle:bctsp-jdk14:jar:138 in central (https://repo1.maven.org/maven2/)
: at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
#+NAME: clj install incanter-core
#+begin_src shell
clj -Sdeps '{:deps {incanter/incanter-core {:mvn/version "1.9.2"}}}'
#+end_src
#+RESULTS[<2018-05-13 20:33:13> fd02c1646eb5d5f0a3e6edeb6b6b973719e969c9]: clj install incanter-core
: Clojure 1.9.0
: user=>
#+RESULTS[<2018-05-13 20:08:56> 17f8b802ff719faf6d4e1d2cfdcb8bbf92f18575]:
#+begin_src shell
clj -Sdeps '{:deps {incanter/incanter-io {:mvn/version "1.9.2"}}}'
#+end_src
#+RESULTS[<2018-05-15 14:52:08> e82a451b7632ebd361f616bda098e4a0171e14e7]:
: Clojure 1.9.0
: user=>
#+begin_src shell
clj -Sdeps '{:deps {incanter/incanter-charts {:mvn/version "1.9.2"}}}'
#+end_src
#+RESULTS[<2018-05-15 14:52:19> c587a082bd991578dbd5f4bf801ec140cbaccd85]:
: Clojure 1.9.0
: user=>
#+begin_src shell
clj -Sdeps '{:deps {incanter/incanter-pdf {:mvn/version "1.9.2"}}}'
#+end_src
#+RESULTS[<2018-05-15 14:52:45> da8dfb3eff81c15fbd7e42304a32a1627b10f98b]:
: Error building classpath. Could not find artifact bouncycastle:bctsp-jdk14:jar:138 in central (https://repo1.maven.org/maven2/)
: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact bouncycastle:bctsp-jdk14:jar:138 in central (https://repo1.maven.org/maven2/)
: at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
#+begin_src shell
clj -Sdeps '{:deps {incanter/incanter-svg {:mvn/version "1.9.2"}}}'
#+end_src
#+RESULTS[<2018-05-15 14:53:07> 130b3b6aacaa3b2812be085891c485ae7fe723c4]:
: Clojure 1.9.0
: user=>
#+begin_src shell
clj -Sdeps '{:deps {incanter/incanter-sql {:mvn/version "1.9.2"}}}'
#+end_src
#+RESULTS[<2018-05-15 14:53:14> 238cd17f7a5e06d71ee4c75354ee1471ed25d810]:
: Clojure 1.9.0
: user=>
#+begin_src shell
clj -Sdeps '{:deps {incanter/incanter-mongodb {:mvn/version "1.9.2"}}}'
#+end_src
#+RESULTS[<2018-05-15 14:53:21> 578f1a4ab815dbd10f590fc65a70cf584f1d3611]:
: Clojure 1.9.0
: user=>
#+begin_src shell
clj -Sdeps '{:deps {incanter/incanter-excel {:mvn/version "1.9.2"}}}'
#+end_src
#+RESULTS[<2018-05-15 14:53:28> 8527847f1effd92f72206dd56607671f357264c8]:
: Clojure 1.9.0
: user=>
#+begin_src shell
clj -Sdeps '{:deps {incanter/incanter-processing {:mvn/version "1.3.0"}}}'
#+end_src
#+RESULTS[<2018-05-15 14:53:57> 540c7650eac88c063d0d905c7fd44033b2cd94b3]:
: Clojure 1.9.0
: user=>
#+begin_src shell
clj -Sdeps '{:deps {incanter/incanter-zoo {:mvn/version "1.9.2"}}}'
#+end_src
#+RESULTS[<2018-05-15 14:54:18> aa4d3b3559c79bc0720e40fd006d908d7fba8d48]:
: Clojure 1.9.0
: user=>
from incanter.
I install artifact org.bouncycastle:bctsp-jdk14:jar:1.46
instead of bouncycastle:bctsp-jdk14:jar:138
is fine. Don't know what's the difference between this two artifacts. Maybe incanter should use dependency org.bouncycastle:bctsp-jdk14:jar:1.46
.
- http://search.maven.org/#artifactdetails%7Cbouncycastle%7Cbctsp-jdk14%7C138%7Cjar
- http://search.maven.org/#artifactdetails%7Corg.bouncycastle%7Cbctsp-jdk14%7C1.46%7Cjar
from incanter.
Seems because bouncycastle.bctsp-jdk14
does not have "jar" http://search.maven.org/#search%7Cga%7C1%7Cbouncycastle
from incanter.
Then I locate this artifact dependency in com.lowagie/itext
, modify it's POM file dependency from "bouncycastle.bctsp-jdk14:138
" into "org.bouncycastle.bctsp-jdk14:1.46
". Then it works now.
from incanter.
Should be fixed now, but I'll wait several days until next release...
from incanter.
I have a question, I manually modified com.lowagie/itext
POM dependencies, will it be override by furture Incanter upgrade?
from incanter.
Your changes will stay until you won't remove the files.
But it's better not to modify POM dependency of the package, but instead use exclusions + explicit inclusions of the dependencies.
And I really surprised by this issue - it worked for many years, and we didn't have this problem before
from incanter.
Unfortunately, a bug is still here:
mike@mikebook01 ~> clojure -A:rebel -Sdeps '{:deps {incanter {:mvn/version "1.9.3"}}}'
Error building classpath. Could not find artifact bouncycastle:bctsp-jdk14:jar:138 in central (https://repo1.maven.org/maven2/)
org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact bouncycastle:bctsp-jdk14:jar:138 in central (https://repo1.maven.org/maven2/)
from incanter.
It seems bouncycastle-bctsp-jdk14 used to have a version 138 on Maven Central, but it was moved to 1.38 (I guess it was a typo)
https://mvnrepository.com/artifact/bouncycastle/bctsp-jdk14/138
So my guess is this used to work, but now this artifact+version "disappeared".
However, com.lowagie.itext still depends on version 138, up to version 4.2.1.
https://mvnrepository.com/artifact/com.lowagie/itext/4.2.1
After this they moved to a new group/artifact id, so the next available version is com.itextpdf.itextpdf 5.0.6.
This one correctly relies on bouncycastle 1.38, and later 1.46, instead 138.
So upgrading from itext 2 to itext 5 would solve the issue, but I'm guessing it'd be a good bit of work.
https://itextpdf.com/itext-5-vs-itext-2
Meanwhile incanter-pdf has added a dependency on bouncycastle 1.38, which presumably clears things up in Leiningen, but clojure CLI uses a different resolution algorithm, which seems to favor the version 138 as requested by itext.
Maybe someone should upload version 138 to Clojars so that it resolves again... I can understand it was probably a mistake to release it with that version number, but meanwhile people are relying on it, it seems a bit irresponsible from Maven Central to allow artifacts to simply disappear like that. (I do not rule out I may be missing some subtleties here, maybe get a second opinion on whether this would be a good idea.)
from incanter.
For posterity, having got the same error just today, I got Incanter deps brought in successfully by adding these lines to my deps.edn:
org.bouncycastle/bcprov-jdk15on {:mvn/version "1.70"}
net.mikera/core.matrix {:mvn/version "0.63.0"}
incanter/incanter {:mvn/version "1.9.3"
:exclusions [bouncycastle/bctsp-jdk14]}
from incanter.
Related Issues (20)
- incanter.charts relies on an apparently outdated jfreechart, which deprecated some stuff HOT 5
- Problems with linear model in Incanter 1.9.2 HOT 3
- Migrate root incanter project.clj to clojure 1.9, modules are already there. HOT 1
- IndexOutOfBoundsException when reading XLS file HOT 12
- incanter.sql error with jdbc/find-connection HOT 2
- (use '(incanter excel)) error HOT 4
- https://wiki.github.com/liebke/incanter malform issue HOT 1
- Can't save datasets unless incanter.io is loaded HOT 1
- Problems downloading artifacts from central
- wunderground API reference in README 400s HOT 2
- Integers coerce to Floats when creating a dataset from an xls document HOT 4
- Update options in some incanter.stats functions docstrings HOT 1
- Set stroke color seems to have a bug on scatter plots. HOT 2
- Error when running Incanter on Docker HOT 2
- t-test is equal for paired and unpaired samples HOT 1
- Wrong pvalue might be calculated in ttest in incanter.stats
- namespace 'incanter.excel.cells' not found, when use excel
- `[com.lowagie/itext "2.1.7"]` is vulnerable
- incanter.core/abs shadows clojure.core/abs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incanter.