I can't use mingus library

I wanted to implement music in python, and I found the mingus library.
I’m currently using Python 3.9 on VSC, (which works with other programs) and I installed mingus (I checked after installing it), but when I try to use it :
import mingus.core.notes as notes

an error appears :
partially initialized module ‘mingus’ has no attribute ‘core’ (most likely due to a circular import)

but it isn’t a circular import as my file’s name isn’t mingus or anything related
so I don’t understand why it doesn’t work.


It works fine for me:

❯ pip install mingus
Collecting mingus
  Downloading mingus-0.6.1-py2.py3-none-any.whl (140 kB)
     |████████████████████████████████| 140 kB 656 kB/s
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, mingus
Successfully installed mingus-0.6.1 six-1.16.0
❯ py
Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mingus.core.notes as notes
>>> print(notes.augment("C"))

Sorry I can’t suggest anything more concrete, but maybe try reinstalling the package? You’re clearly already aware of the possibility of a stray mingus.py or mingus.pyc file on your path, so that doesn’t seem to be the problem (although personally, that’s the sort of thing I’d double check - I’ve been caught out by not clearing out unexpected .pyc files before now… :slightly_frowning_face:)