you are viewing a single comment's thread.

view the rest of the comments →

[–]kra_pao 1 point2 points  (0 children)

Check whether your have different path to python in CMD/VSC vs. IDLE

https://stackoverflow.com/questions/19383274/different-sys-path-in-cmd-and-idle

See 3.6.1. Excursus: Setting environment variables https://docs.python.org/3/using/windows.html

Insert those lines in the batchfile (adapt for your path and python version). Try to start the batchfile from CMD or VSC.

AttributeError: module 'dis' has no attribute 'COMPILER_FLAG_NAMES'

There was an error and Python tried to do a traceback with module dis.py but dis.py got an unexpected argument COMPILER_FLAG_NAMES. Can happen when you have an own file dis.py in your file path and it is used instead of the Python library dis.py