Skip to content

Cannot import chisel3.tester and chisel3.tester.RawTester.test #15

@JimmyCh1025

Description

@JimmyCh1025

Problem Description

When running the Chisel Bootcamp "2.1_first_module.ipynb" notebook in the official Docker container, I occurred issues with importing chisel3.tester and chisel3.tester.RawTester.test.

To Reproduce

  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

Error

The following error occurred:

cmd2.sc:3: object tester is not a member of package chisel3
import chisel3.tester._
               ^cmd2.sc:4: object tester is not a member of package chisel3
import chisel3.tester.RawTester.test
               ^Compilation Failed

Compilation Failed

Attempts to Fix

To resolve the tester import issue, I attempted to downgrade chiseltest from 0.6.+ to 0.5.+. This resolved the import error, but it introduced a new issue related to json4s.

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