Why would I get this: FileNotFoundException: Could not locate raynes/fs__init.class

124 views
Skip to first unread message

larry google groups

unread,
Dec 13, 2016, 12:20:12 PM12/13/16
to Clojure
What am I doing wrong here?

This is from my project file:

  :dependencies [
                 [org.clojure/clojure "1.7.0"]
                 [org.clojure/test.check "0.9.0"]
                 [org.clojure/data.xml "0.1.0-beta1"]
                 [org.clojure/data.json "0.2.6"]
                 [com.taoensso/timbre "4.3.1"]
                 [overtone/at-at "1.2.0"]
                 [defun "0.3.0-RC1"]
                 [dire "0.5.4"]
                 [slingshot "0.12.2"]
                 [clj-time "0.6.0"]
                 [me.raynes/fs "1.4.6"]
                 [clj-stacktrace "0.2.7"]                 
                 [sax/sax "2.0.1"]
                 [xml-apis/xml-apis "2.0.2"]
                 [javax.xml.stream/stax-api "1.0-2"]
                 [org.apache.poi/poi "3.9"]               
                 [org.apache.poi/poi-ooxml "3.9"]
                 ]


And in my file_converter.clj file:

  (:require
   [excel-to-csv.xls :as xls]
   [excel-to-csv.xlsx :as xlsx]
   [excel-to-csv.temporal :as temporal]
   [taoensso.timbre :as timbre]
   [raynes.fs :as fs]
   [clojure.java.io :as io]
   [defun.core :refer [defun]]


I do "lein clean" and then "lein uberjar" and I get: 

Compiling excel-to-csv.core
java.io.FileNotFoundException: Could not locate raynes/fs__init.class or raynes/fs.clj on classpath., compiling:(file_converter.clj:1:1)
Exception in thread "main" java.io.FileNotFoundException: Could not locate raynes/fs__init.class or raynes/fs.clj on classpath., compiling:(file_converter.clj:1:1)


What?????

I suppose I could copy-and-paste the code to my own local hard drive, but I would like to know why this is happening. 





Toby Crawley

unread,
Dec 13, 2016, 12:28:16 PM12/13/16
to clo...@googlegroups.com
On Tue, Dec 13, 2016 at 12:20 PM, larry google groups
<lawrenc...@gmail.com> wrote:
> (:require
> [excel-to-csv.xls :as xls]
> [excel-to-csv.xlsx :as xlsx]
> [excel-to-csv.temporal :as temporal]
> [taoensso.timbre :as timbre]
> [raynes.fs :as fs]

The ns is named `me.raynes.fs`:
https://github.com/Raynes/fs/blob/master/src/me/raynes/fs.clj#L1

larry google groups

unread,
Dec 13, 2016, 12:57:03 PM12/13/16
to Clojure
Thank you. That must have been a copy-and-paste error. Funny thing is that I looked at it a half-dozen times and asked myself if I'd copied something wrong. 
Reply all
Reply to author
Forward
0 new messages