Quickstart: Error downloading spatial library dependency

41 views
Skip to first unread message

Allen Vannoppen

unread,
May 27, 2020, 10:57:04 PM5/27/20
to Spatial Users
Hi - I'm trying to run the spatial quick-start application and am getting the following error:

"sbt.librarymanagement.ResolveException: Error downloading edu.stanford.cs.dawn:spatial_2.13:1.1-SNAPSHOT"

I've changed nothing but the scala version in build.sbt and believe have all necessary dependencies installed.

It seems like there is a version discrepancy? The complete terminal output is attached.

macos
sbt version: 1.3.10
scala: 2.13.2
openjdk: 13.0.2

Thanks!
Allen
Screen Shot 2020-05-27 at 9.48.35 PM.png

Matt F

unread,
May 27, 2020, 11:33:26 PM5/27/20
to Spatial Users
Hi.  The quick fix to this is to use scala 2.12 instead.  We just haven't published jars for 2.13 yet.  If you need scala 2.13, you can probably get it going yourself instead of waiting for the new jar to be published if you work with spatial from source (https://github.com/stanford-ppl/spatial instead of https://github.com/stanford-ppl/spatial-quickstart).  It should just be a matter of changing the build.sbt there unless if there are some incompatibilities.

Allen Vannoppen

unread,
May 29, 2020, 11:02:41 AM5/29/20
to Spatial Users
Ok that did work but I am still having issues with dependencies. I believe this is a basic library dependency problem but I can't seem to get it together. The error I'm now getting when make install-ing both spatial-quickststart and spatial is:

"java.io.IOError: java.lang.RuntimeException: /packages cannot be represented as URI"

I tried installing jdk1.8 and setting the JAVA_HOME path variable but that resulted in no change. Any help with this headache is much appreciated!

Matt F

unread,
May 29, 2020, 1:02:12 PM5/29/20
to spatial-l...@googlegroups.com
I haven't seen this particular error before but it sounds like it is related to sbt/scala/jdk versions.  From what I saw, I'm guessing it could be fixed by using an older sbt or scala 2.12.10.  These versions of sbt and jdk should work for now while I try to work out the kinks with newer versions of everything.

mattfel@mattfel-pc:~/sp_fixes/spatial (develop)$ sbt sbtVersion
Picked up _JAVA_OPTIONS: -Xmx10g -Xss8912k -Xms4g
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /home/mattfel/sp_fixes/spatial/project
[info] Loading settings from build.sbt ...
[info] Set current project to spatial (in build file:/home/mattfel/sp_fixes/spatial/)
[info] 1.1.1
 
mattfel@mattfel-pc:~/sp_fixes/spatial (develop)$ java -version
Picked up _JAVA_OPTIONS: -Xmx10g -Xss8912k -Xms4g
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)


Sorry about all the java/scala pain!

Allen Vannoppen

unread,
May 29, 2020, 4:48:06 PM5/29/20
to Spatial Users
No worries! It's all on my end.

My java versions are slightly different so I'll fix those and everything should work fine.

(base) avnjr@Allens-MBP spatial-quickstart % sbt sbtVersion                                                 
[info] Loading project definition from /Users/avnjr/Documents/work/feio/spatial-quickstart/project
[info] Loading settings for project spatial-quickstart from build.sbt ...
[info] Set current project to spatial-app (in build file:/Users/avnjr/Documents/work/feio/spatial-quickstart/)
[info] 1.3.10
(base) avnjr@Allens-MBP spatial-quickstart % java -version
openjdk version "13.0.2" 2020-01-14
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)

Thanks for the info

Allen Vannoppen

unread,
May 29, 2020, 7:00:18 PM5/29/20
to Spatial Users
Got it working! Just needed to properly source jdk1.8. Thanks for the help and loving Spatial. So far my favorite structured framework for accelerated applications out of the variety I've tested.

Matt F

unread,
May 29, 2020, 9:53:56 PM5/29/20
to Spatial Users
Cool!  Feel free to ask about anything if you get stuck.  Most likely there is an example or tutorial I can point you towards that could be hard to find on your own, depending on how complex your work gets.
Reply all
Reply to author
Forward
0 new messages