私は今何時間も試していますが、問題がわかりません。私は clojure が初めてで、シンプルな flickr クライアントを作成しようとしています。しかし、私はさまざまなライブラリでこの問題を抱えています...私は一般的な間違いを犯していると思います。
現時点では、このライブラリで oauth を使用しようとしています: https://github.com/mattrepl/clj-oauth
lein new projectname
私のproject.cljは次のようになります。
(defproject flickr "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.4.0"]
[clj-oauth "1.4.0"]])
clj-oauth2 を追加した後、次を実行します。
lein deps
そして私のcore.clj:
(ns flickr.core)
(require ['oauth.client :as 'oauth])
(def consumer-key "0000")
(def consumer-secret "0000")
(def consumer (oauth.client/make-consumer <consumer-token>
<consumer-token-secret>
"http://www.flickr.com/services/oauth/request_token"
"http://www.flickr.com/services/oauth/access_token"
"http://www.flickr.com/services/oauth/authorize"
:hmac-sha1))
私が今それを実行しようとすると:
lein run
私は得る:
FileNotFoundException Could not locate oauth/client__init.class or oauth/client.clj on classpath: clojure.lang.RT.load (RT.java:432)
問題がどこにあるのか誰にも分かりますか? また、githubリポジトリからoauthソースをダウンロードし、ビルドして$ PATH変数に追加しましたが、それでも同じエラーです。
どんな助けでも大歓迎です!ありがとう!