data-science

Data science, data analysis, and machine learning in Clojure https://scicloj.github.io/pages/chat_streams/ for additional discussions
heyarne 2020-06-22T21:28:11.330800Z

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 πŸ™

daveliepmann 2020-06-23T14:16:58.331200Z

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.

heyarne 2020-06-23T15:15:16.331400Z

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

heyarne 2020-06-23T15:15:38.331700Z

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

heyarne 2020-06-23T15:17:52.331900Z

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

daveliepmann 2020-06-23T16:35:31.332200Z

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

heyarne 2020-06-23T16:45:51.332500Z

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

heyarne 2020-06-23T16:47:55.332700Z

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

1
heyarne 2020-06-23T16:48:06.332900Z

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

πŸ’― 1
daveliepmann 2020-06-23T16:48:55.333100Z

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.

daveliepmann 2020-06-23T16:49:59.333300Z

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. πŸ˜•

heyarne 2020-06-23T16:51:42.333700Z

I opened a PR in the project that should fix it

heyarne 2020-06-23T16:52:08.333900Z

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

heyarne 2020-06-23T16:55:51.334100Z

That's pretty neat! Thanks