Interpreter version selection error
See original GitHub issueEnvironment data
VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: MacOS 10.12.6
Actual behavior
Run correctly
Expected behavior
Syntax error
Steps to reproduce:
if use such code on the python3 file:
from abc import ABCMeta, abstractmethod
class class_name(metaclass=ABCMeta):
def __init__(self):
pass
when click run button at the top right corner, the running result goes syntax error:
class class_name(metaclass=ABCMeta):
^
SyntaxError: invalid syntax
even I have chosen the version 3.6.3 as interpreter.
Might be a bug?
Logs
Output from Python
output panel
class Role(metaclass=ABCMeta):
^
SyntaxError: invalid syntax
Output from Console window
(Help->Developer Tools menu)
#No error output
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
Interpreter version selection error · Issue #483 - GitHub
Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: MacOS 10.12.6 Actual behavior ...
Read more >How to change Python Version (Interpreter) in VSCode ...
This tutorial will show you the fastest way to change your Python environment in Visual Studio code.00:00 VSCode how to change Python ...
Read more >Configure a Python interpreter | PyCharm Documentation
Select the target interpreter. View interpreters. When PyCharm stops supporting any of the outdated Python versions, the corresponding ...
Read more >Error: A Python Interpreter Could not be Loaded
The current solution involves opening FME Workbench > Tools > FME Options > Translation. If you select the Dropdown menu for the Preferred ......
Read more >Error:Python interpreter is not selected. Please setup Python ...
Go to File -> Settings -> Project: [Your project name] -> Python Interpreter. Then: Select the Python interpreter you wish to use from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome, and Merry Christmas
Merry Christmas.