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 π
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.
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
This is probably because I'm on Linux and browse-url might not be supported
It's weird though that this happens when requiring already? I'm using the latest master
Could be a require mistake on my part. Can you run (clojure.java.browse/browse-url "<http://localhost:8000>")
in your REPL?
Interestingly, if I (require 'clojure.java.browse)
before applied-science.waqi
both work
So maybe it's something about clojure.java.browse
being present in your environment without explicitly requiring it but not in mine
So yeah, I can use waqi like that π Thanks for the link, will give it a try!
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.
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. π
I opened a PR in the project that should fix it
It's a bit rough because it requires the entire namespace but I didn't want to change more lines than necessary
That's pretty neat! Thanks