Skip to content

Circular Import Issue #23

@JLenzy

Description

@JLenzy

I've tried running the default intro code block:

import miditoolkit
path_midi = miditoolkit.midi.utils.example_midi_file()
midi_obj = miditoolkit.midi.parser.MidiFile(path_midi)
print(midi_obj)

Which results in:

AttributeError: partially initialized module 'miditoolkit' has no attribute 'midi' (most likely due to a circular import)

I am running this on Python 3.9 with pip installation of miditoolkit. I verified that it is imported correctly and all the subfolders (i.e. midi, parser) are being referenced.

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