Re: dependency problem
On 13 May 2016, at 11:46, Juan A. Ruz @tangrammerwrote: > (sorry previous comment was sent before I wanted :- ) > Hi Alan, > I think you should keep commons-code 1.9 as far as is the last-version > required by any dep of your project > so ... > > you could exclude globally (using :exclusions) your dependencies that are > causing the conflict and specified later in your :dependencies > :exclusions [org.clojure/clojure > commons-codec] > :dependencies [[org.clojure/clojure "1.7.0"] >[commons-codec "1.9"] >[twitter-api "0.7.8"]] > > or just exclude it locally > :dependencies [[org.clojure/clojure "1.7.0"] >[commons-codec "1.9"] >[twitter-api "0.7.8" :exclusions [commons-codec]]] Your second suggestion seems to have worked. Thanks, Alan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: dependency problem
(sorry previous comment was sent before I wanted :- ) Hi Alan, I think you should keep commons-code 1.9 as far as is the last-version required by any dep of your project so ... you could exclude globally (using :exclusions) your dependencies that are causing the conflict and specified later in your :dependencies :exclusions [org.clojure/clojure commons-codec] :dependencies [[org.clojure/clojure "1.7.0"] [commons-codec "1.9"] [twitter-api "0.7.8"]] or just exclude it locally :dependencies [[org.clojure/clojure "1.7.0"] [commons-codec "1.9"] [twitter-api "0.7.8" :exclusions [commons-codec]]] Hope it works for you! Juan El viernes, 13 de mayo de 2016, 12:41:43 (UTC+2), Juan A. Ruz @tangrammer escribió: > > Hi Alan, > I think you should keep commons-code 1.9 as far as is the last-version > required by any dep of your project > so ... > > you can > :exclusions [org.clojure/clojure >commons-codec] > :dependencies [[org.clojure/clojure "1.7.0"] > [commons-codec "1.9"] > [twitter-api "0.7.8"]] > > > > > > El viernes, 13 de mayo de 2016, 10:27:34 (UTC+2), Alan Forrester escribió: >> >> I have been trying to use the Twitter API library by Adam Wynne: >> >> https://github.com/adamwynne/twitter-api >> >> and it appears to have a dependency problem. >> >> My project.clj file looks like this >> >> (defproject hash-tag-counting-thingy "0.1.0-SNAPSHOT" >> :description "FIXME: write description" >> :url "http://example.com/FIXME; >> :license {:name "Eclipse Public License" >> :url "http://www.eclipse.org/legal/epl-v10.html"} >> :dependencies [[org.clojure/clojure "1.7.0"] >> [twitter-api "0.7.8"]]) >> >> And when I ran "lein deps :tree” I got >> >> [twitter-api "0.7.8"] -> [clj-oauth "1.5.1"] -> [commons-codec "1.8"] >> overrides >> [twitter-api "0.7.8"] -> [clj-oauth "1.5.1"] -> [clj-http "0.9.1"] -> >> [commons-codec "1.9" :exclusions [org.clojure/clojure]] >> >> What is the recommended way to deal with a problem like this? >> >> Alan > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: dependency problem
Hi Alan, I think you should keep commons-code 1.9 as far as is the last-version required by any dep of your project so ... you can :exclusions [org.clojure/clojure commons-codec] :dependencies [[org.clojure/clojure "1.7.0"] [commons-codec "1.9"] [twitter-api "0.7.8"]] El viernes, 13 de mayo de 2016, 10:27:34 (UTC+2), Alan Forrester escribió: > > I have been trying to use the Twitter API library by Adam Wynne: > > https://github.com/adamwynne/twitter-api > > and it appears to have a dependency problem. > > My project.clj file looks like this > > (defproject hash-tag-counting-thingy "0.1.0-SNAPSHOT" > :description "FIXME: write description" > :url "http://example.com/FIXME; > :license {:name "Eclipse Public License" > :url "http://www.eclipse.org/legal/epl-v10.html"} > :dependencies [[org.clojure/clojure "1.7.0"] > [twitter-api "0.7.8"]]) > > And when I ran "lein deps :tree” I got > > [twitter-api "0.7.8"] -> [clj-oauth "1.5.1"] -> [commons-codec "1.8"] > overrides > [twitter-api "0.7.8"] -> [clj-oauth "1.5.1"] -> [clj-http "0.9.1"] -> > [commons-codec "1.9" :exclusions [org.clojure/clojure]] > > What is the recommended way to deal with a problem like this? > > Alan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
dependency problem
I have been trying to use the Twitter API library by Adam Wynne: https://github.com/adamwynne/twitter-api and it appears to have a dependency problem. My project.clj file looks like this (defproject hash-tag-counting-thingy "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME; :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [twitter-api "0.7.8"]]) And when I ran "lein deps :tree” I got [twitter-api "0.7.8"] -> [clj-oauth "1.5.1"] -> [commons-codec "1.8"] overrides [twitter-api "0.7.8"] -> [clj-oauth "1.5.1"] -> [clj-http "0.9.1"] -> [commons-codec "1.9" :exclusions [org.clojure/clojure]] What is the recommended way to deal with a problem like this? Alan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Dependency problem between clj-http and com.cemerick/friend
Andy Fingerhut andy.finger...@gmail.com writes: Try running 'lein deps :tree deps.txt' in each of those projects, and diff them. I can't explain why the differences are there that exist, but there are significant differences, including in version numbers of some of the dependencies brought in. Asking on the Leiningen email list or #clojure IRC channel may be more fruitful. Thanks for you answer. Further research indicates that the order of the dependencies does matter (at least for transitive dependencies). Both friend and clj-httpclient depend on org.apache.httpcomponents/httpclient, so if friend comes first in the dependency vector lein will fetch version 4.2.1. However if clj-httpclient comes first lein will fetch version 4.3.5. I guess there are two ways out of this: 1. change the order so that clj-httpclient comes first 2. file a bug report with friend For my project I changed the order and I just filed a bug with friend (https://github.com/cemerick/friend/issues/128). In fact there is even already a pull request that adresses this issue. Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Dependency problem between clj-http and com.cemerick/friend
Christian I just forked friend, updated the library versions and opened a pull request. If you want to try and see if the problem still happens, please check https://github.com/pbalduino/friend Please note that it's not the official Friend repository, it's not intended to be a replacement and I'm going to remove it as soon as the pull request be accepted, if accepted. Note also that I changed the version to 0.2.3-SNAPSHOT to avoid conflicts with official Friend binary. Anyway we could validate together to ensure that we won't have any problems with different third-party libraries. Regards Plínio Balduino On Thu, Nov 6, 2014 at 9:47 AM, Christian Egli christian.e...@sbs.ch wrote: Andy Fingerhut andy.finger...@gmail.com writes: Try running 'lein deps :tree deps.txt' in each of those projects, and diff them. I can't explain why the differences are there that exist, but there are significant differences, including in version numbers of some of the dependencies brought in. Asking on the Leiningen email list or #clojure IRC channel may be more fruitful. Thanks for you answer. Further research indicates that the order of the dependencies does matter (at least for transitive dependencies). Both friend and clj-httpclient depend on org.apache.httpcomponents/httpclient, so if friend comes first in the dependency vector lein will fetch version 4.2.1. However if clj-httpclient comes first lein will fetch version 4.3.5. I guess there are two ways out of this: 1. change the order so that clj-httpclient comes first 2. file a bug report with friend For my project I changed the order and I just filed a bug with friend (https://github.com/cemerick/friend/issues/128). In fact there is even already a pull request that adresses this issue. Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Dependency problem between clj-http and com.cemerick/friend
Hi Plínio Plínio Balduino pbaldu...@gmail.com writes: I just forked friend, updated the library versions and opened a pull request. If you want to try and see if the problem still happens, please check https://github.com/pbalduino/friend AFAIK the problem I have with friends dependencies is not the fact that it depends on an old version of clj-http but that it depends on an old version of org.apache.httpcomponents/httpclient. So I think your commit (https://github.com/pbalduino/friend/commit/926f01ba718c355c82faad4aa0438162708a1efb) will not help with that. Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Dependency problem between clj-http and com.cemerick/friend
I noticed that. You're correct. I updated my local copy of httpclient to 4.3.5 Plínio On Thu, Nov 6, 2014 at 11:23 AM, Christian Egli christian.e...@sbs.ch wrote: Hi Plínio Plínio Balduino pbaldu...@gmail.com writes: I just forked friend, updated the library versions and opened a pull request. If you want to try and see if the problem still happens, please check https://github.com/pbalduino/friend AFAIK the problem I have with friends dependencies is not the fact that it depends on an old version of clj-http but that it depends on an old version of org.apache.httpcomponents/httpclient. So I think your commit ( https://github.com/pbalduino/friend/commit/926f01ba718c355c82faad4aa0438162708a1efb ) will not help with that. Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Dependency problem between clj-http and com.cemerick/friend
Hi Christian, Friend (at least in this version) and clj-http depend on different versions of org.apache.httpcomponents/httpclient. If the version friend wants wins (friend first in dependencies), clj-http gets an earlier version than it wants and fails because the earlier version does not provide the same classes. If you put [com.cemerick/friend 0.2.1 :exclusions [org.apache.httpcomponents/httpclient]] then you will always get the version of httpclient that clj-http specifies, regardless of the order you specify the dependencies in. I don't know if that might cause a runtime problem for friend, but I have used this setup without a problem so far. Regards, Caspar On Wed, Nov 05, 2014 at 12:20:42PM +0100, Christian Egli wrote: Hi all I have a strange interaction between clj-http and com.cemerick/friend. I don't know if this is a problem in either of the two packages or maybe even Leiningen. The problem is very easy to reproduce. Create a project with `lein new`, add dependencies to clj-http and com.cemerick/friend, start a repl and simpy require clj-http.client as follows: $ lein new app friend-and-clj-http $ cd friend-and-clj-http $ # add clj-http and friend as a dependency to project.clj $ lein repl friend-and-clj-http.core= (require '[clj-http.client :as client]) If the dependency to friend is before the dependency to clj-http you will get the following exception: CompilerException java.lang.ClassNotFoundException: org.apache.http.conn.ssl.SSLContexts, compiling:(clj_http/conn_mgr.clj:1:1) However if you change the order of the dependencies everything works as expected. $ # change the order of the dependencies $ lein repl friend-and-clj-http.core= (require '[clj-http.client :as client]) nil friend-and-clj-http.core= Bye for now! I put both versions of project.clj, the shell session and the output of `lein deps :tree` for both versions in public gists - https://gist.github.com/egli/8e6086f4d35ff7c11f80 project.clj with friend and clj-http as dependencies - https://gist.github.com/egli/ff26669047b9273741c6 project.clj with clj-http and friend as dependencies - https://gist.github.com/egli/076b4f450cc237e2ac4a shell session - https://gist.github.com/egli/b3e149aded64c7628f8e lein deps :tree with friend before clj-http - https://gist.github.com/egli/4fa13bc791e52061f9e9 lein deps :tree with clj-http before friend Where do I report this problem? Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Dependency problem between clj-http and com.cemerick/friend
Hi all I have a strange interaction between clj-http and com.cemerick/friend. I don't know if this is a problem in either of the two packages or maybe even Leiningen. The problem is very easy to reproduce. Create a project with `lein new`, add dependencies to clj-http and com.cemerick/friend, start a repl and simpy require clj-http.client as follows: $ lein new app friend-and-clj-http $ cd friend-and-clj-http $ # add clj-http and friend as a dependency to project.clj $ lein repl friend-and-clj-http.core= (require '[clj-http.client :as client]) If the dependency to friend is before the dependency to clj-http you will get the following exception: CompilerException java.lang.ClassNotFoundException: org.apache.http.conn.ssl.SSLContexts, compiling:(clj_http/conn_mgr.clj:1:1) However if you change the order of the dependencies everything works as expected. $ # change the order of the dependencies $ lein repl friend-and-clj-http.core= (require '[clj-http.client :as client]) nil friend-and-clj-http.core= Bye for now! I put both versions of project.clj, the shell session and the output of `lein deps :tree` for both versions in public gists - https://gist.github.com/egli/8e6086f4d35ff7c11f80 project.clj with friend and clj-http as dependencies - https://gist.github.com/egli/ff26669047b9273741c6 project.clj with clj-http and friend as dependencies - https://gist.github.com/egli/076b4f450cc237e2ac4a shell session - https://gist.github.com/egli/b3e149aded64c7628f8e lein deps :tree with friend before clj-http - https://gist.github.com/egli/4fa13bc791e52061f9e9 lein deps :tree with clj-http before friend Where do I report this problem? Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Dependency problem between clj-http and com.cemerick/friend
Christian: Try running 'lein deps :tree deps.txt' in each of those projects, and diff them. I can't explain why the differences are there that exist, but there are significant differences, including in version numbers of some of the dependencies brought in. Asking on the Leiningen email list or #clojure IRC channel may be more fruitful. Andy On Wed, Nov 5, 2014 at 3:20 AM, Christian Egli christian.e...@sbs.ch wrote: Hi all I have a strange interaction between clj-http and com.cemerick/friend. I don't know if this is a problem in either of the two packages or maybe even Leiningen. The problem is very easy to reproduce. Create a project with `lein new`, add dependencies to clj-http and com.cemerick/friend, start a repl and simpy require clj-http.client as follows: $ lein new app friend-and-clj-http $ cd friend-and-clj-http $ # add clj-http and friend as a dependency to project.clj $ lein repl friend-and-clj-http.core= (require '[clj-http.client :as client]) If the dependency to friend is before the dependency to clj-http you will get the following exception: CompilerException java.lang.ClassNotFoundException: org.apache.http.conn.ssl.SSLContexts, compiling:(clj_http/conn_mgr.clj:1:1) However if you change the order of the dependencies everything works as expected. $ # change the order of the dependencies $ lein repl friend-and-clj-http.core= (require '[clj-http.client :as client]) nil friend-and-clj-http.core= Bye for now! I put both versions of project.clj, the shell session and the output of `lein deps :tree` for both versions in public gists - https://gist.github.com/egli/8e6086f4d35ff7c11f80 project.clj with friend and clj-http as dependencies - https://gist.github.com/egli/ff26669047b9273741c6 project.clj with clj-http and friend as dependencies - https://gist.github.com/egli/076b4f450cc237e2ac4a shell session - https://gist.github.com/egli/b3e149aded64c7628f8e lein deps :tree with friend before clj-http - https://gist.github.com/egli/4fa13bc791e52061f9e9 lein deps :tree with clj-http before friend Where do I report this problem? Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Dependency problem between clj-http and com.cemerick/friend
Hi, Christian Did you try the issue list on GitHub? https://github.com/cemerick/friend/issues Regards Plínio Balduino On Wed, Nov 5, 2014 at 8:20 AM, Christian Egli christian.e...@sbs.ch wrote: Hi all I have a strange interaction between clj-http and com.cemerick/friend. I don't know if this is a problem in either of the two packages or maybe even Leiningen. The problem is very easy to reproduce. Create a project with `lein new`, add dependencies to clj-http and com.cemerick/friend, start a repl and simpy require clj-http.client as follows: $ lein new app friend-and-clj-http $ cd friend-and-clj-http $ # add clj-http and friend as a dependency to project.clj $ lein repl friend-and-clj-http.core= (require '[clj-http.client :as client]) If the dependency to friend is before the dependency to clj-http you will get the following exception: CompilerException java.lang.ClassNotFoundException: org.apache.http.conn.ssl.SSLContexts, compiling:(clj_http/conn_mgr.clj:1:1) However if you change the order of the dependencies everything works as expected. $ # change the order of the dependencies $ lein repl friend-and-clj-http.core= (require '[clj-http.client :as client]) nil friend-and-clj-http.core= Bye for now! I put both versions of project.clj, the shell session and the output of `lein deps :tree` for both versions in public gists - https://gist.github.com/egli/8e6086f4d35ff7c11f80 project.clj with friend and clj-http as dependencies - https://gist.github.com/egli/ff26669047b9273741c6 project.clj with clj-http and friend as dependencies - https://gist.github.com/egli/076b4f450cc237e2ac4a shell session - https://gist.github.com/egli/b3e149aded64c7628f8e lein deps :tree with friend before clj-http - https://gist.github.com/egli/4fa13bc791e52061f9e9 lein deps :tree with clj-http before friend Where do I report this problem? Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Dependency problem between clj-http and com.cemerick/friend
Not sure if it's the same issue, but there's an existing issue in Friend's repo about dependency conflicts (https://github.com/cemerick/friend/issues/116). On Wednesday, November 5, 2014 7:21:06 PM UTC+8, Christian Egli wrote: Hi all I have a strange interaction between clj-http and com.cemerick/friend. I don't know if this is a problem in either of the two packages or maybe even Leiningen. The problem is very easy to reproduce. Create a project with `lein new`, add dependencies to clj-http and com.cemerick/friend, start a repl and simpy require clj-http.client as follows: $ lein new app friend-and-clj-http $ cd friend-and-clj-http $ # add clj-http and friend as a dependency to project.clj $ lein repl friend-and-clj-http.core= (require '[clj-http.client :as client]) If the dependency to friend is before the dependency to clj-http you will get the following exception: CompilerException java.lang.ClassNotFoundException: org.apache.http.conn.ssl.SSLContexts, compiling:(clj_http/conn_mgr.clj:1:1) However if you change the order of the dependencies everything works as expected. $ # change the order of the dependencies $ lein repl friend-and-clj-http.core= (require '[clj-http.client :as client]) nil friend-and-clj-http.core= Bye for now! I put both versions of project.clj, the shell session and the output of `lein deps :tree` for both versions in public gists - https://gist.github.com/egli/8e6086f4d35ff7c11f80 project.clj with friend and clj-http as dependencies - https://gist.github.com/egli/ff26669047b9273741c6 project.clj with clj-http and friend as dependencies - https://gist.github.com/egli/076b4f450cc237e2ac4a shell session - https://gist.github.com/egli/b3e149aded64c7628f8e lein deps :tree with friend before clj-http - https://gist.github.com/egli/4fa13bc791e52061f9e9 lein deps :tree with clj-http before friend Where do I report this problem? Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: clojure.core.memoize dependency problem
What Leiningen plugins do you have installed? (Both in your project and in your user profile) I believe this is caused by a plugin forcing an earlier version of clojure.core.cache on you... On Saturday, April 26, 2014, Daniel Slutsky daniel.slut...@gmail.com wrote: added an issue at http://dev.clojure.org/jira/browse/CMEMOIZE-14 On Thursday, April 24, 2014 6:42:08 PM UTC+3, Daniel Slutsky wrote: Dear Clojure group, I am running into an interesting issue with clojure.core.memoize. I created a simple project depending on clojure.core.memoize. (defproject test-memoize 0.1.0-SNAPSHOT :description FIXME: write description :url http://example.com/FIXME; :license {:name Eclipse Public License :url http://www.eclipse.org/legal/epl-v10.html} :dependencies [[org.clojure/clojure 1.5.1] [org.clojure/core.memoize 0.5.6]]) Trying to use it, I run into the following problem: $ lein repl nREPL server started on port 38522 on host 127.0.0.1 ... user= (require 'clojure.core.memoize) user= CompilerException java.lang.RuntimeException: No such var: clojure.core.cache/through, compiling:(clojure/core/memoize.clj:52:3) This pboblem has been recorded before: https://groups.google.com/forum/#!msg/light-table-discussion/f4kpZLFGBV8/ oyFPaJ4yvwwJ http://www.raynes.me/logs/irc.freenode.net/clojure/2013-09-11.txt https://github.com/LightTable/LightTable/issues/794 The suggested solution from the LightTable bug discussion [[org.clojure/core.cache 0.6.3] [org.clojure/core.memoize 0.5.6 :exclusions [org.clojure/core.cache]]] does not seem to work. Any ideas? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.comjavascript:_e(%7B%7D,'cvml','clojure@googlegroups.com'); Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.comjavascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com'); For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.comjavascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com'); . For more options, visit https://groups.google.com/d/optout. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: clojure.core.memoize dependency problem
added an issue at http://dev.clojure.org/jira/browse/CMEMOIZE-14 On Thursday, April 24, 2014 6:42:08 PM UTC+3, Daniel Slutsky wrote: Dear Clojure group, I am running into an interesting issue with clojure.core.memoize. I created a simple project depending on clojure.core.memoize. (defproject test-memoize 0.1.0-SNAPSHOT :description FIXME: write description :url http://example.com/FIXME; :license {:name Eclipse Public License :url http://www.eclipse.org/legal/epl-v10.html} :dependencies [[org.clojure/clojure 1.5.1] [org.clojure/core.memoize 0.5.6]]) Trying to use it, I run into the following problem: $ lein repl nREPL server started on port 38522 on host 127.0.0.1 ... user= (require 'clojure.core.memoize) user= CompilerException java.lang.RuntimeException: No such var: clojure.core.cache/through, compiling:(clojure/core/memoize.clj:52:3) This pboblem has been recorded before: https://groups.google.com/forum/#!msg/light-table-discussion/f4kpZLFGBV8/oyFPaJ4yvwwJ http://www.raynes.me/logs/irc.freenode.net/clojure/2013-09-11.txt https://github.com/LightTable/LightTable/issues/794 The suggested solution from the LightTable bug discussion [[org.clojure/core.cache 0.6.3] [org.clojure/core.memoize 0.5.6 :exclusions [org.clojure/core.cache]]] does not seem to work. Any ideas? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
clojure.core.memoize dependency problem
Dear Clojure group, I am running into an interesting issue with clojure.core.memoize. I created a simple project depending on clojure.core.memoize. (defproject test-memoize 0.1.0-SNAPSHOT :description FIXME: write description :url http://example.com/FIXME; :license {:name Eclipse Public License :url http://www.eclipse.org/legal/epl-v10.html} :dependencies [[org.clojure/clojure 1.5.1] [org.clojure/core.memoize 0.5.6]]) Trying to use it, I run into the following problem: $ lein repl nREPL server started on port 38522 on host 127.0.0.1 ... user= (require 'clojure.core.memoize) user= CompilerException java.lang.RuntimeException: No such var: clojure.core.cache/through, compiling:(clojure/core/memoize.clj:52:3) This pboblem has been recorded before: https://groups.google.com/forum/#!msg/light-table-discussion/f4kpZLFGBV8/oyFPaJ4yvwwJ http://www.raynes.me/logs/irc.freenode.net/clojure/2013-09-11.txt https://github.com/LightTable/LightTable/issues/794 The suggested solution from the LightTable bug discussion [[org.clojure/core.cache 0.6.3] [org.clojure/core.memoize 0.5.6 :exclusions [org.clojure/core.cache]]] does not seem to work. Any ideas? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.