Probably simple error, but my current Visual Studio project is not able to run debug Python interactive. I had this working with same computer and environment before.
I have Python project open in Visual Studio, test with new module1.py
file in project, the contents of file is just print('test output to console')
.
Python 3.7 showing as virtual environment in the project still, as previously, I click Debug -> Execute File in Python Interactive.
Then it fails to run after not finding Traceback
file, trace as follows:
Resetting Python state.
Running C:\Users\will_\Documents\Repos\Facebook1\FacebookNonConfVersion\module1.py
Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Microsoft\Python\Core\ptvsd_repl_launcher.py", line 27, in <module>
import traceback
ModuleNotFoundError: No module named 'traceback'
The interactive Python process has exited.
Also, after activating this project's Python 3.7 virtual environment in command prompt, this module1.py
file will still run, so I assume that the virtual environment is not corrupted, and this error is something to do with my VS setup, but I may be wrong.
I'm probably missing something obvious.