Skip to content

Importing the pytrinamic.datalogger before any product will result in an cyclic import issue #134

Description

@trinamic-bp

This is easy to recreate, just import the DataLogger in an otherwise empty script:

from pytrinamic.datalogger import DataLogger

This will result in the ImportError: cannot import name 'DataLogger' from partially initialized module 'pytrinamic.datalogger' (most likely due to a circular import) error.
The way it works fine is importing an Eval or Module first:

from pytrinamic.modules import TMCM1617
from pytrinamic.datalogger import DataLogger

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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