Iam現在嘗試HOURS並且無法找出問題所在。Iam新增clojure並嘗試製作一個簡單的flickr客戶端。 但我對不同的圖書館有這個問題......我想我犯了一個普遍的錯誤。clojure - 找不到錯誤?
目前,我嘗試使用OAuth與此lib目錄下: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
And my 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 repo下載了oauth源文件,將其構建並添加到我的$ PATH變量中,但仍然出現相同的錯誤。
任何幫助,將不勝感激! 謝謝!
聽起來不錯,謝謝!我明天會試一試... – Nico 2013-02-08 23:40:01