Skip to content

Cannot import chisel3.tester and dotvisualizer in 2.1_first_module.ipynb (Docker) #12

@jin11109

Description

@jin11109

When running the Chisel Bootcamp notebook 2.1_first_module.ipynb inside the official Docker container, the initial import of chisel3.tester and dotvisualizer fails, preventing the notebook from compiling and running properly.

To Reproduce

  1. Run the official Docker container:
$ docker run -it --rm -p 8888:8888 sysprog21/chisel-bootcamp
  1. Open the notebook in JupyterLab at
http://127.0.0.1:8888/lab/tree/2.1_first_module.ipynb
  1. Execute the first cell to load Ivy modules:
val path = System.getProperty("user.dir") + "/source/load-ivy.sc"
interp.load.module(ammonite.ops.Path(java.nio.file.FileSystems.getDefault().getPath(path)))
  1. Execute the next cell:
import chisel3._
import chisel3.util._
import chisel3.tester._
import chisel3.tester.RawTester.test
import dotvisualizer._

Error

Compilation fails with:

cmd8.sc:3: object tester is not a member of package chisel3
import chisel3.tester._
               ^cmd8.sc:5: not found: value dotvisualizer
import dotvisualizer._
       ^cmd8.sc:4: object tester is not a member of package chisel3
import chisel3.tester.RawTester.test
               ^Compilation Failed
Compilation Failed

Environment

Reported by JupyterLab console at http://127.0.0.1:8888/lab

  • Almond 0.9.1
  • Ammonite 1.7.4
  • Scala library version 2.12.10 -- Copyright 2002-2019, LAMP/EPFL and Lightbend, Inc.
  • Java 11.0.29

Docker version

  • Docker version 29.0.2, build 8108357

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions