Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Official Python 3.8 Support for Visual Studio 16.4 #5822

Closed
Anapo14 opened this issue Oct 15, 2019 · 78 comments
Closed

No Official Python 3.8 Support for Visual Studio 16.4 #5822

Anapo14 opened this issue Oct 15, 2019 · 78 comments

Comments

@Anapo14
Copy link

Anapo14 commented Oct 15, 2019

While we work to fully support code analysis for the recent inclusions to Python 3.8, below are a list of the language-specific features that our parser will not be able to recognize and will surface as ‘red squiggles’ in the IDE:

Assignment Expressions
Positional-Only Parameters
f-strings debug specifier support

Using any one of these features may trigger a warning message when you launch the project:

image

To avoid this, disable the warning by navigating to Tools > Options > Python > Debugging and deselecting the option Prompt before running when errors are present.

Moreover, for f-strings support, our current code analysis will not offer completions.

There are also some known issues with using the legacy debugger to attach to a running Python process (see GH5853).

The following capabilities that you know and love will continue to function as normal in Visual Studio for python environments such as:

• Debugging (both Native Debugging and Standard Debugging)
• Virtual/Conda Environments
• Package Manager
• Testing (pytest and unittest, Code Coverage)
• Interactive Window
• Intellisense in most scenarios

@Anapo14 Anapo14 pinned this issue Nov 4, 2019
@huguesv huguesv unpinned this issue Nov 11, 2019
@hawkerm
Copy link

hawkerm commented Feb 12, 2020

Is this supported in the VS Preview versions?

@Serene-Arc
Copy link

Is there any news on when this feature will be released?

@Analytics206
Copy link

Is there an update for 3.8 python support in visual studio?

@Praptomark
Copy link

why python not supporting visual studio any more 😥😥😥

@artcrespo
Copy link

Is there an update for 3.8 python support in visual studio?

Also looking to use python 3.8 in Visual Studio 2017 or 2019

@besart951
Copy link

Do all Python 3.8 applications not work in Visual Studio?

@PythonAutomate
Copy link

Looking to use python 3.8 and selenium for web test automation.
Looking to use python 3.8 for RESTful api testing.
Is this doable ?

@huguesv
Copy link
Contributor

huguesv commented Mar 27, 2020

If you don't use the new 3.8 language features in the files you are editing, then it should be fine for the most part. Please refer to the top of this issue for details on what the issues are and some workarounds.

@PythonAutomate
Copy link

Hi huguesv, thanks for the reply.
On Windows 10 using VS 2017 Pro, my python environment is a "custom" one that points to the 3.7 language. Flask was able to bring up a localhost webpage in chrome, but my webpage is on the qa server on the network. So no particular set up has worked for me, and there doesn't appear to be any documentation for python selenium test automation in VS 2017 or 2019 either.

@huguesv
Copy link
Contributor

huguesv commented Mar 27, 2020

@PythonAutomate I'm not familiar with using selenium, from what I've read it's a library for automating the browser and you give it the url to open in the code. If you can tell me a little more about your setup and what you are doing / trying to do, I may be able to provide some advice. Please open another issue for this, to keep this discussion here focused on Python 3.8 support.

@elez2019
Copy link

elez2019 commented Apr 6, 2020

Do anybody has the resolution how to fix this program

@Nyx5211
Copy link

Nyx5211 commented Apr 14, 2020

For now,it works

@Terafugia
Copy link

It feels like there might be more to this.
Almost May and still not rectified. I hope its just politics and not related to COVID-19.

@siemingsuan
Copy link

Why?When will it be launched?

@mrolle45
Copy link

mrolle45 commented May 2, 2020

Please post a comment when the 3.8 support is complete, and tell how to update VS (both 2017 and 2019). That way, I and others suscribing to this issue will get notified.
Thanks, Michael.

@khjian
Copy link

khjian commented May 20, 2020

Any update?

@Lunar2kPS
Copy link

Happy June!

Just updated to VS Community 2019 on version 16.6.1
Still no support?

@setzer17
Copy link

setzer17 commented Jun 4, 2020

Still no support?

@5nophilwu
Copy link

Anything update?

@localhost443
Copy link

09্/june/2020 - Python 3.8 isn't supported.

@johnwc
Copy link

johnwc commented Jun 9, 2020

@bschnurr do you think someone can chime in here and give us some ETA or news, so we can avoid anymore "Still no support" comments?

@bschnurr
Copy link
Member

We have plans to address this issue but its a complex process and we will update this again with more info in a few weeks.

@bschnurr
Copy link
Member

bschnurr commented Jul 1, 2020

Update here #5210 (comment)

@ghost
Copy link

ghost commented Aug 4, 2020

Hi,

Am I right in saying Python 3.8 released its first alpha in February 2019, released in October 2019 and it's now August 2020 and it is still not officially supported in Visual Studio?

What is going on with this? Is Microsoft shifting people to Visual Studio Code instead as this seems to be supported there.

@johnwc
Copy link

johnwc commented Aug 4, 2020

Yes, I've noticed this as well. It seems to be that the freebie VSCode is getting way more attention to new features than the full blown VS, that has developers and enterprises paying high rates every year for. What's going on, can VS get some love too?

@alexolog
Copy link

This issue has been open for 15 months without anything from Microsoft, keep in mind that 3.7 will be out of support in 7 months and 3.8 will go out of support in April.

Quoted from here

@viveksh1
Copy link

This issue has been open for 15 months without anything from Microsoft, keep in mind that 3.7 will be out of support in 7 months and 3.8 will go out of support in April.

Quoted from here

Apologies for not giving credit, I have fixed it.

@alexolog
Copy link

No problem, it was tongue in cheek. The important part is raising awareness.

@rustedwizard
Copy link

Is there a timeline on this issue? When can we expect the support for Python 3.8 and after come to VS 2019?

@estepankevich
Copy link

all hope abandon ye who enter here

@alexolog
Copy link

3.8 goes out of support next month.

@viveksh1
Copy link

3.8 goes out of support next month.

Visual Studio is stuck on Python 3.7.8 which is currently only on security updates. The security updates will go away on January 27, 2023 (2 years and 3 months).

The EOL dates are here:
https://endoflife.date/python
https://devguide.python.org/#status-of-python-branches

@IndustrialPerformanceDude

This is plain non-sense.
Every person on this earth have a life expectancy of a 100y.
If we spend hours, that become weeks and then years trying to make something work and then just to see that there is something else on the side that is developed faster than the thing that is supposed to be the real thing, then somebody doesn't understand users needs.

I'm new at this Visual Studio Community thing because I've been coding in Excel VBA for many years now and I wanted to switch to another language because VBA is fading out.
I've learned coding like COBOL, Fortran, Pascal and Basic and many others but this is not my main core business.

I read many article to be able to chose the right language, C++, C# and then I found that the language that will (or should) replace the VBA is Python. Pretty tired of those "Hello World" tutorials.
Most of the time, problem is more about the environment error messages, never the code.
You spend endless hours trying to find that little thing that you missed.
I thought Visual Studio was the whole kit so I wouldn't have to bother with those problems.
Already that those updates kills code that worked really fine before any update.

I started in VS Community and then when I started watching tutorials, they use VS Code ?????
Why is there a "sideways" environment ?
Isn't it all Microsoft ?
The right hand doesn't know what the the left hand does ?

If VS Code will always be many versions in front of Visual Studio Community, why should I use that VSC ?

@viveksh1
Copy link

viveksh1 commented Apr 7, 2021

This is plain non-sense.
Every person on this earth have a life expectancy of a 100y.
If we spend hours, that become weeks and then years trying to make something work and then just to see that there is something else on the side that is developed faster than the thing that is supposed to be the real thing, then somebody doesn't understand users needs.

I'm new at this Visual Studio Community thing because I've been coding in Excel VBA for many years now and I wanted to switch to another language because VBA is fading out.
I've learned coding like COBOL, Fortran, Pascal and Basic and many others but this is not my main core business.

I read many article to be able to chose the right language, C++, C# and then I found that the language that will (or should) replace the VBA is Python. Pretty tired of those "Hello World" tutorials.
Most of the time, problem is more about the environment error messages, never the code.
You spend endless hours trying to find that little thing that you missed.
I thought Visual Studio was the whole kit so I wouldn't have to bother with those problems.
Already that those updates kills code that worked really fine before any update.

I started in VS Community and then when I started watching tutorials, they use VS Code ?????
Why is there a "sideways" environment ?
Isn't it all Microsoft ?
The right hand doesn't know what the the left hand does ?

If VS Code will always be many versions in front of Visual Studio Community, why should I use that VSC ?

Honestly, it really seems like Microsoft is shifting Python from Visual Studio to VS Code.

@johnwc
Copy link

johnwc commented Apr 7, 2021

I read many article to be able to chose the right language, C++, C# and then I found that the language that will (or should) replace the VBA is Python. Pretty tired of those "Hello World" tutorials.

Wait... whaaat? Where did you read that Python was the replacement for VBA?? Visual Basic for Applications(VBA) is Visual Basic "lite", the closest language to it would be... Visual Basic .Net. If you were to pickup a language coming off VBA; VB .Net would be your quickest transition, with C# being recommended over VB with a bit of learning curve from VB.

@viveksh1
Copy link

viveksh1 commented Apr 7, 2021

This is plain non-sense.
Every person on this earth have a life expectancy of a 100y.
If we spend hours, that become weeks and then years trying to make something work and then just to see that there is something else on the side that is developed faster than the thing that is supposed to be the real thing, then somebody doesn't understand users needs.

I'm new at this Visual Studio Community thing because I've been coding in Excel VBA for many years now and I wanted to switch to another language because VBA is fading out.
I've learned coding like COBOL, Fortran, Pascal and Basic and many others but this is not my main core business.

I read many article to be able to chose the right language, C++, C# and then I found that the language that will (or should) replace the VBA is Python. Pretty tired of those "Hello World" tutorials.
Most of the time, problem is more about the environment error messages, never the code.
You spend endless hours trying to find that little thing that you missed.
I thought Visual Studio was the whole kit so I wouldn't have to bother with those problems.
Already that those updates kills code that worked really fine before any update.

I started in VS Community and then when I started watching tutorials, they use VS Code ?????
Why is there a "sideways" environment ?
Isn't it all Microsoft ?
The right hand doesn't know what the the left hand does ?

If VS Code will always be many versions in front of Visual Studio Community, why should I use that VSC ?

If you're a VBA developer who uses it to make Office programs, Microsoft has been pushing C# and JavaScript for years, I suggest you give that a try. Python isn't capable of making Office add-ins.

@IndustrialPerformanceDude

Hi Guys.

Didn't think I would get a reaction so fast.

As for JohnWC, Thanks John.
You can find it here 👍 https://support.pyxll.com/hc/en-gb/articles/360036822173**-Can-Python-be-used-to-replace-VBA**-#:~:text=Yes%2C%20absolutely!,can%20be%20achieved%20with%20Python.
And
https://www.pyxll.com/docs/userguide/vba.html#vba.

As for my background, I'm not that big of a developer.
I'm a Reliability and Maintenance specialist who happens to be also a Physics Scientist that learned how to code.
I develop KPI Interfaces for Industrial Maintenance environment.
Companies spend millions on CMMS Software and don't want to pay salary for people who will enter data, analyze them and give an image of where the company is and what they should do according to the data.
But they want to spend on a code that will automate that interface.

I didn't read or try the above links yet, still trying to use a simple VS Code environment.
I did watch all the 45 YouTube Videos on Vs Code and it was simple.
For the Python itself, witch is (the language), it is never a problem.
But when you run a piece of code and the first stuff you get is
pip install virtualenv = It worked but
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
So it doesn't install the latest version by itself.
I went to get the upgrade and got it and installed it.
Then, another message
WARNING: The script virtualenv.exe is installed in 'C:\Users\xxxxxx\AppData\Roaming\Python\Python39\Scripts' which is not on PATH = ?????
I read some on the Net and then I found that I need to modify Settings.json.
Then I went back to the Preferences and Settings.json file and try to wrap my head around it a bit.
Because nothing was bouging. No Start at all.
Then I realize there was double backslash between subfolders in the calling for the PATH.
So I went back and added the double backslash, and it solve the problem.
Replaced
"python.pythonPath": "C:\Program Files\Python39\python.exe",
with
"python.pythonPath": "c:\Users\xxxxxx\Documents\VSCode\Python\venv\Scripts\python.exe"
It worked... After many hours.
Then another problem because Program Files is written in 2 words with a space between so, even if I cut and paste, I need to add " " around any subfolder that has 2 words.
Another couple of hours just to find this.
I'm not even the one who decided to put Program Files to start with.

In a couple of years, I will probably laugh at what I just wrote here but for now, I don't really have time so it gets on my nerves when we read that programming and coding is so advance when simple things don't get solved easily.

We should be focusing on coding and less on how to configure our environment.
That's why I was hoping to keep learning the Visual Studio Community environment, I thought it would be that way.

I started at C#, was easy but I was using it until I read that it would take more time and that Python is closer to VBA so I switch. But I was pissed off when I saw that I was using Visual Studio Community and tried to install Python 3.9.3 and the VS Community interface told me I would get many problem because it doesn't support that version that I'm using with VS Code.

So I will keep going with VS Code because I cannot be using the version behind when there is new version coming out.

Thanks guys.

@johnwc
Copy link

johnwc commented Apr 7, 2021

@IndustrialPerformanceDude That is a third party product blog pushing their product, not a replacement at all from the software manufacturer. Big difference. One huge drawback of using that third party product is that every user would have to have it installed in order for it to work. And with the push for office documents to be viewed online within O365 web viewers/editors, this as well would not run in those.

That blog is a far push for saying Python is a replacement for Office's built-in native support for VBA.

@viveksh1
Copy link

viveksh1 commented Apr 7, 2021

@IndustrialPerformanceDude That is a third party product blog pushing their product, not a replacement at all from the software manufacturer. Big difference. One huge drawback of using that third party product is that every user would have to have it installed in order for it to work. And with the push for office documents to be viewed online within O365 web viewers/editors, this as well would not run in those.

That blog is a far push for saying Python is a replacement for Office's built-in native support for VBA.

@IndustrialPerformanceDude I agree with @johnwc , Microsoft isn't pushing Python as an alternative at all. In fact they're pushing JavaScript as an alternative to VBA.

@JetteChristensen
Copy link

What about IronPhyton Wpf Application. This is no longer available in the latest Visual Studio 2019 v. 16.9.4. It is no longer possible to select IronPhyton wpf application project, when you create a new project. Why is this no longer available ?

@viveksh1
Copy link

What about IronPhyton Wpf Application. This is no longer available in the latest Visual Studio 2019 v. 16.9.4. It is no longer possible to select IronPhyton wpf application project, when you create a new project. Why is this no longer available ?

@JetteChristensen Unfortunately, IronPython in Visual Studio is being slowly phased out and is no longer supported. I recommend switching to an alternative.

@JetteChristensen
Copy link

JetteChristensen commented May 12, 2021 via email

@viveksh1
Copy link

Thanks for answer. So it means you can not write python wpf applications ? What would you suggest to use as a python Gui for Windows then ? Best Regards Jette On Wednesday, May 12, 2021, 06:27:58 PM GMT+2, VladPutinEu @.***> wrote: What about IronPhyton Wpf Application. This is no longer available in the latest Visual Studio 2019 v. 16.9.4. It is no longer possible to select IronPhyton wpf application project, when you create a new project. Why is this no longer available ? @JetteChristensen Unfortunately, IronPython in Visual Studio is being slowly phased out and is no longer supported. I recommend switching to an alternative. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

@JetteChristensen On my Visual Studio 2019 v. 16.9.4 installation, I see an option to install "IronPython" even though it says that it is out of support.

Are you running Windows 10? Is your Visual Studio installation linked to an organization? Are you on Visual Studio Community?

@alexolog
Copy link

In other news, Python 3.8 is out of support since 2021-05-03.

@JetteChristensen
Copy link

JetteChristensen commented May 12, 2021 via email

@rustedwizard
Copy link

Good sign. See the branch of pylance feature got merged Here

@greazer greazer closed this as completed Jul 28, 2021
@ghost
Copy link

ghost commented Jul 29, 2021

So I'm confused, this has been closed off because 3.8 is now EOL I assume.

Is there any Python version that is now officially supported or are we expected to raise a new issue for 3.9 and start this process from the beginning until MS do something?

Just seems like a right cop out. I am so annoyed.

@johnwc
Copy link

johnwc commented Jul 29, 2021

@Phoebian I'm pretty sure it was covered in the comments that support is expected to be in visual studio 2022.

@ghost
Copy link

ghost commented Jul 29, 2021

@Phoebian I'm pretty sure it was covered in the comments that support is expected to be in visual studio 2022.

@johnwc, apologies but I couldn't see that anywhere, but it is probably my lack of knowledge on GitHub. I'll talk your word for it. Thanks.

Screenshot_20210729_070151

@umairabid205
Copy link

I'm able to execute the program but the pops at the top.

@gha-zund
Copy link

gha-zund commented Nov 8, 2021

Python 3.9.5 is supported in Visual Studio 2022 as it seems

@osiemomatrixx
Copy link

Awesome interactions and conversation. I learnt a thing from this awesome chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests