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

Unable to Run Python3 in WSL2 #6856

Closed
1 of 2 tasks
yonicarver opened this issue Apr 23, 2021 · 5 comments
Closed
1 of 2 tasks

Unable to Run Python3 in WSL2 #6856

yonicarver opened this issue Apr 23, 2021 · 5 comments

Comments

@yonicarver
Copy link

Windows Build Number

Microsoft Windows [Version 10.0.19041.867]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.4.72

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

Run "python3" in Ubuntu

Expected Behavior

Launch into Python3

Actual Behavior

Got this traceback

/usr/bin/python3: line 1: $'\225:\362n\002Y\236P\264': command not found
/usr/bin/python3: line 1: $'\201\272\223\363\215\365^\223\200G\255\326\373w': command not found
/usr/bin/python3: line 2: $'\311+\341\213\350i\263.9J^\207ʘ\230\315\ER\265': command not found
/usr/bin/python3: line 2: $'\217\030\345': command not found
/usr/bin/python3: line 3: syntax error near unexpected token )' /usr/bin/python3: line 3: e<tP-U1< z�>됪kT��mC�Nf7*ancɈ%r�0RF��{s9 >�[Eao�ל�ӝ�IWyM5OܒN�-F4QQW|�aiR�H�8T{:<Ӯf- OGMLL0q�UC{+�)�ZW�͟Gkid0-56H5�؛�].\ڠAE�ԣ]*�FQBNK$fȷ�\rІ|X�.+uKZ|ip$�<'O�J-!e2sCz{PE��D'(Bx[�Mk0 �.OŮ�K5�O(w"@:&�V9W�y08F4hlB�qoUYV,m=ڄ)tA<q�#Ao wܳ<?�䐍X)�H��b/eHT7#jy$cWJ>b'�+I)���Y<[|/jK{K]�xٰ'

Diagnostic Logs

No response

@therealkenc
Copy link
Collaborator

Ref #6325 in the sense that python is receiving garbage input.

@craigloewen-msft
Copy link
Member

I'm unable to reproduce this issue, when I try and run python3 I am able to.

If you try this on another distro do you get the same error (Like Debian)?

As well, could you please collect logs for us? /logs

@ghost
Copy link

ghost commented Apr 27, 2021

Hello! Could you please provide more logs to help us better diagnose your issue? You can find instructions on how to attach logs here, please make sure to post the link to the Feedback Hub item in this chat so we can see it.

Thank you!

@therealkenc
Copy link
Collaborator

Logs never hurt, but like #6325 the error is from inside the Linux distro. The python interpreter (via the Linux kernel, via the VM) is faithfully executing garbage in the script text itself. Why the script text gets corrupted is unknown. That /bin/bash binary is not also corrupt is presumably by sheer luck. Otherwise you'd never make it to a prompt.

@ghost ghost closed this as completed May 5, 2021
@ghost
Copy link

ghost commented May 5, 2021

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

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

No branches or pull requests

3 participants