Fork me on GitHub
#data-science
<
2020-06-22
>
heyarne21:06:11

Hi! I'm having some trouble with getting oz up and running. I'm referring to this issue basically: https://github.com/metasoarous/oz/issues/115 If somebody experienced something similar and / or could help that would be very appreciated πŸ™

daveliepmann14:06:58

I haven't encountered that issue, but if you're using deps.edn and only need the most basic functionality (Vega plots in the browser from Clojure) I'd be interested to hear if https://github.com/applied-science/waqi/ works for you, or if a deeper browser issue is blocking websockets for both libs.

heyarne15:06:16

I get an Error when executing (require '[applied-science.waqi :as waqi]):

Syntax error (ClassNotFoundException) compiling at (applied_science/waqi.clj:128:4).
clojure.java.browse

heyarne15:06:38

This is probably because I'm on Linux and browse-url might not be supported

heyarne15:06:52

It's weird though that this happens when requiring already? I'm using the latest master

daveliepmann16:06:31

Could be a require mistake on my part. Can you run (clojure.java.browse/browse-url "") in your REPL?

heyarne16:06:51

Interestingly, if I (require 'clojure.java.browse) before applied-science.waqi both work

heyarne16:06:55

So maybe it's something about clojure.java.browse being present in your environment without explicitly requiring it but not in mine

3
heyarne16:06:06

So yeah, I can use waqi like that πŸ™‚ Thanks for the link, will give it a try!

πŸ’― 3
daveliepmann16:06:55

yeah that was my fault. sloppy require. thanks for taking the time to report and work through itβ€”I'll fix it for the next person.

daveliepmann16:06:59

I'm pretty sure you have the cause exactly right: clojure.* libs will work if you've ever required them in any project ever, but still break in prod or on someone else's machine. πŸ˜•

heyarne16:06:42

I opened a PR in the project that should fix it

heyarne16:06:08

It's a bit rough because it requires the entire namespace but I didn't want to change more lines than necessary

heyarne16:06:51

That's pretty neat! Thanks