ahinz / clojure-bve

3 stars 0 forks source link

Can't find file Flushing/test.csv when compiling/running #3

Closed dcunited001 closed 11 years ago

dcunited001 commented 11 years ago

When i run lein uberjar or lein run -m opengl.opengl, i get an error that says the file Flushing/test.csv is missing.

There are references to this file in src/opengl/objects.clj

Stack Trace:

Compiling opengl.opengl
Exception in thread "main" java.io.FileNotFoundException: Flushing/test.csv (No such file or directory), compiling:(objects.clj:518)
    at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3387)
    at clojure.lang.Compiler$DefExpr.eval(Compiler.java:398)
    at clojure.lang.Compiler.compile1(Compiler.java:7035)
    at clojure.lang.Compiler.compile(Compiler.java:7097)
    at clojure.lang.RT.compile(RT.java:387)
    at clojure.lang.RT.load(RT.java:427)
    at clojure.lang.RT.load(RT.java:400)
    at clojure.core$load$fn__4890.invoke(core.clj:5415)
    at clojure.core$load.doInvoke(core.clj:5414)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invoke(core.clj:5227)
    at clojure.core$load_lib.doInvoke(core.clj:5264)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invoke(core.clj:603)
    at clojure.core$load_libs.doInvoke(core.clj:5298)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:603)
    at clojure.core$require.doInvoke(core.clj:5381)
    at clojure.lang.RestFn.invoke(RestFn.java:619)
    at opengl.opengl$loading__4784__auto__.invoke(opengl.clj:1)
    at clojure.lang.AFn.applyToHelper(AFn.java:159)
    at clojure.lang.AFn.applyTo(AFn.java:151)
    at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3382)
    at clojure.lang.Compiler.compile1(Compiler.java:7035)
    at clojure.lang.Compiler.compile1(Compiler.java:7025)
    at clojure.lang.Compiler.compile(Compiler.java:7097)
    at clojure.lang.RT.compile(RT.java:387)
    at clojure.lang.RT.load(RT.java:427)
    at clojure.lang.RT.load(RT.java:400)
    at clojure.core$load$fn__4890.invoke(core.clj:5415)
    at clojure.core$load.doInvoke(core.clj:5414)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invoke(core.clj:5227)
    at clojure.core$compile$fn__4895.invoke(core.clj:5426)
    at clojure.core$compile.invoke(core.clj:5425)
    at user$eval7.invoke(NO_SOURCE_FILE:1)
    at clojure.lang.Compiler.eval(Compiler.java:6511)
    at clojure.lang.Compiler.eval(Compiler.java:6501)
    at clojure.lang.Compiler.eval(Compiler.java:6477)
    at clojure.core$eval.invoke(core.clj:2797)
    at clojure.main$eval_opt.invoke(main.clj:297)
    at clojure.main$initialize.invoke(main.clj:316)
    at clojure.main$null_opt.invoke(main.clj:349)
    at clojure.main$main.doInvoke(main.clj:427)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:419)
    at clojure.lang.AFn.applyToHelper(AFn.java:163)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.main.main(main.java:37)
Caused by: java.io.FileNotFoundException: Flushing/test.csv (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at clojure.java.io$fn__8326.invoke(io.clj:233)
    at clojure.java.io$fn__8265$G__8230__8272.invoke(io.clj:73)
    at clojure.java.io$fn__8338.invoke(io.clj:262)
    at clojure.java.io$fn__8265$G__8230__8272.invoke(io.clj:73)
    at clojure.java.io$fn__8300.invoke(io.clj:169)
    at clojure.java.io$fn__8239$G__8234__8246.invoke(io.clj:73)
    at clojure.java.io$reader.doInvoke(io.clj:106)
    at clojure.lang.RestFn.invoke(RestFn.java:410)
    at clojure.lang.AFn.applyToHelper(AFn.java:161)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at clojure.core$apply.invoke(core.clj:603)
    at clojure.core$slurp.doInvoke(core.clj:6126)
    at clojure.lang.RestFn.invoke(RestFn.java:410)
    at opengl.route$parse_route_file.invoke(route.clj:616)
    at clojure.lang.AFn.applyToHelper(AFn.java:161)
    at clojure.lang.AFn.applyTo(AFn.java:151)
    at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3382)
    ... 48 more
Compilation failed: Subprocess failed
ahinz commented 11 years ago

@dcunited001 Sorry about that - this library is currently super experimental / pre-alpha. You'd probably be better served using OpenBVE (http://www.openbve.org/). That said - if you really want to run it just update that path to a valid route csv and it should work.

dcunited001 commented 11 years ago

I've been looking for examples of graphics with clojure and found OpenBVE.