Skip to content

Error: no module named 'logic' #47

@skim2257

Description

@skim2257

Error while running CurvedPlanarReformat.py via SlicerPython, 3D Slicer version 5.8.1.

How to reproduce:

Add following lines to end of script:

def main():
    test = CurvedPlanarReformatTest()
    test.runTest()
    print("Full unit test passed")

if __name__ == "__main__":
    print("Starting Curved Planar Reformat Module")
    main()

./PythonSlicer /path/to/CurvedPlanarReformat.py

Output:

No module named 'logic'

Traceback (most recent call last):
  File "/redacted/CurvedPlanarReformation.py", line 621, in main
    test.runTest()
  File "/redacted/CurvedPlanarReformation.py", line 508, in runTest
    self.setUp()
  File "/redacted/CurvedPlanarReformation.py", line 503, in setUp
    slicer.mrmlScene.Clear(0)
AttributeError: module 'slicer' has no attribute 'mrmlScene'

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