Description:
Python 3.12.0 gives this error if code is run from IDLE.
If I run this from command line it works.
Same error with Pythons 3.9.5 and 3.10.0
Error printout:
(Traceback (most recent call last):
File "C:\WORK_PYTHON\scamp\scamp.py", line 1, in <module>
from scamp import *
File "C:\WORK_PYTHON\scamp\scamp.py", line 3, in <module>
s = Session()
NameError: name 'Session' is not defined)
The full code that resulted in the error:
(from scamp import *
s = Session()
cello = s.new_part("cello")
cello.play_note(48, 1.0, 1.0))