question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Interpreter version selection error

See original GitHub issue

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

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:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Dec 25, 2017

Awesome, and Merry Christmas

0reactions
Spacebodycommented, Dec 25, 2017

Merry Christmas.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found