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 8457649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:51:45+00:00 2026-06-10T12:51:45+00:00

Maybe I’m missing something or just reading outdated information. Basically, I’m trying to use

  • 0

Maybe I’m missing something or just reading outdated information. Basically, I’m trying to use the CSV lib here.

I’ve included it in my project.clj…

:dependencies [[org.clojure/clojure "1.3.0"]
               [org.clojure/data.csv "0.1.2"]]

…and retrieved the libs successfully using Leiningen. Now, what would be the proper way to include this lib for use in my program? I’ve tried the example posted on the lib’s Github page only to get an error stating:

FileNotFoundException Could not locate clojure/data/csv__init.class or clojure/data/csv.clj on classpath:   clojure.lang.RT.load (RT.java:430)

EDIT: Further clarification on what I’ve tried: I have the code pasted under my namespace declaration, like so:

(ns testprogram.core(:gen-class))
(require '[clojure.data.csv :as csv]
         '[clojure.java.io :as io])

Trying it in the REPL yields the same result. I’m pretty sure I’m trying to ‘include’ them wrong.

  • 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-10T12:51:46+00:00Added an answer on June 10, 2026 at 12:51 pm

    This test worked for me:

    (ns test.csv-test
      (:gen-class)
      (:require [clojure.data.csv :as csv]
                [clojure.java.io :as io]))
    
    (defn main- [args]
    (csv/read-csv "test"))
    

    I also encountered the “FileNotFound: could not locate” issue while testing this out. It was a simple typo in my project.clj file. I recommend double-checking that.

    Note: this also worked:

    (require '[clojure.data.csv :as csv]
             '[clojure.java.io :as io])
    (defn main- [args]
    (csv/read-csv "test"))
    

    While using the :require directive in the ns macro is certainly a best practice, is is not the source of the issue here.

    In both versions, REPL output:

    user=> (in-ns 'test.csv-test)
    #<Namespace test.csv-test>
    test.csv-test=> (main- [])
    (["test"])
    

    Also tested with lein run and java -cp <uberjar> test.csv_test

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

Sidebar

Related Questions

Maybe this is something I am just missing, but is there any way to
Maybe I am missing something, but they seem similar. If you use for example...
Maybe I am missing something entirely simple here, but in any new windows form
Maybe I'm missing something obvious, or maybe something sinister is happening, but this seems
Maybe I'm missing something but why does visual studio break execution to tell me
Maybe it's too late in Germany (1:04AM) or maybe I'm missing something... How can
Maybe I'm missing something obvious, but is there a simpler way to check if
Maybe this is something obvious, but here is what I have. I need to
Maybe I'm missing something, but I find experimenting with code in the REPL better
...Maybe imperative programming with mutable data is just drilled too deep into my brain,

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.