Re: [scala-breeze] error while importing breeze package

410 views
Skip to first unread message

David Hall

unread,
Sep 5, 2012, 2:14:35 PM9/5/12
to scala-...@googlegroups.com
how are you starting the scala interpreter?

-- David

On Wed, Sep 5, 2012 at 11:11 AM, shash <sashidh...@gmail.com> wrote:
> hi, I got the latest copy of breeze from git yesterday. I went to bin and
> did ./sbt and followed the usual update -> compile -> publish-local routine.
> I start scala interpreter and do a
>
> scala> import breeze.linalg._
> <console>:7: error: not found: value breeze
> import breeze.linalg._
> ^
>
> any help in solving this problem would be appreciated.
>
> thanks
> sashidhar
>
> --
> You received this message because you are subscribed to the Google Groups
> "Scala Breeze" group.
> To post to this group, send email to scala-...@googlegroups.com.
> To unsubscribe from this group, send email to
> scala-breeze...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/scala-breeze/-/Ak-y_2MGpHAJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

shash

unread,
Sep 5, 2012, 2:17:36 PM9/5/12
to scala-...@googlegroups.com
I have tried in all these ways

  • ./sbt (in bin directory of breeze) and then update -> compile -> publish-local -> console
  • scala -cp <ivy path to jars>
  • scala
    • scala> :cp <path to each jar>

David Hall

unread,
Sep 5, 2012, 2:24:32 PM9/5/12
to scala-...@googlegroups.com
I'm having trouble reproducing:

> dhcp-39-250:breeze dlwh (master)$ bin/sbt
[info] Loading global plugins from /Users/dlwh/.sbt/plugins
[info] Loading project definition from /Users/dlwh/src/breeze/project
[info] Set current project to breeze (in build file:/Users/dlwh/src/breeze/)
> console
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.9.2 (Java HotSpot(TM) 64-Bit Server VM,
Java 1.7.0_04).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import breeze.linalg._
import breeze.linalg._

scala> val x = DenseVector(1,2,2)
x: breeze.linalg.DenseVector[Int] = DenseVector(1, 2, 2)

============================

dhcp-39-250:breeze dlwh (master)$ scala
Welcome to Scala version 2.9.2 (Java HotSpot(TM) 64-Bit Server VM,
Java 1.7.0_04).
Type in expressions to have them evaluated.
Type :help for more information.

scala> :cp math/target/scala-2.9.2/breeze-math_2.9.2-0.1.jar
Added '/Users/dlwh/src/breeze/math/target/scala-2.9.2/breeze-math_2.9.2-0.1.jar'.
Your new classpath is:
".:/Users/dlwh/src/breeze/math/target/scala-2.9.2/breeze-math_2.9.2-0.1.jar"

scala> import breeze.linalg._
import breeze.linalg._

scala> val v = DenseVector(1,2,3)
v: breeze.linalg.DenseVector[Int] = DenseVector(1, 2, 3)

scala>
> https://groups.google.com/d/msg/scala-breeze/-/bVy9MFkBGvEJ.

shash

unread,
Sep 5, 2012, 3:02:01 PM9/5/12
to scala-...@googlegroups.com
I was in bin directory and executing ./sbt instead of executing bin/sbt in the breeze directory. Now, it's working. thanks a lot

sashidhar
Reply all
Reply to author
Forward
0 new messages