Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9256847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:04:06+00:00 2026-06-18T12:04:06+00:00

Iam trying for HOURS now and cant figure out the problem. Iam new to

  • 0

Iam trying for HOURS now and cant figure out the problem.
Iam new to clojure and try to make a simple flickr client.
But I have this problem with different libraries… I think I make a general mistake.

At the moment I try to use oauth with this lib: https://github.com/mattrepl/clj-oauth

lein new projectname

and my project.clj looks like this:

(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"]])

After adding the clj-oauth2 I run:

  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))

When I now try to run it:

   lein run

I get:

   FileNotFoundException Could not locate oauth/client__init.class or oauth/client.clj on classpath:   clojure.lang.RT.load (RT.java:432)

Does anyone has an idea where the problem is?
Also also downloaded the oauth source from the github repo, built it and added it to my $PATH variable but still the same error.

Any help would be appreciated!
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:04:07+00:00Added an answer on June 18, 2026 at 12:04 pm

    First, lein run looks for a main namespace, whose name must be specified in project.clj using the :main key; add :main flickr.core there.

    Then you need a -main function in flickr.core. Change your namespace declaration and add the function as follows:

    (ns flickr.core
      (:require [clj-oauth2.client :as oauth]))
    
    (defn -main []
      (println oauth/get-access-token))
    

    Then,

    $ lein run
    ;=> #<client$get_access_token clj_oauth2.client$get_access_token@4c9549af>
    

    That worked for me as a sort of “namespace smoke test,” and you should be able to go from there.

    (As a final note, your development will go much faster if you test these sorts of things in the REPL rather than using ‘lein run.’)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ive been trying to figure this out for 2 hours now and i cant
I have now spent several hours trying to figure this out. I have this
I have been trying to figure out this query for a few hours now
I am trying to figure out this error from previous 3 hours. By searching,
I am asking for help, after hours of trying to figure this out myself.
i am trying for hours now, cant get it to work my ajax call
Alright I've been working on this for hours now and can't figure out my
I've been trying to solve this for a few hours now. I am compiling
for the last hour I have been trying to figure this out myself but
I am trying to understand the build process of Android for hours altogether now.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.