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

Windows Store Python causes crash on start #2293

Open
tonybaloney opened this issue Jul 16, 2022 · 2 comments · May be fixed by #2292
Open

Windows Store Python causes crash on start #2293

tonybaloney opened this issue Jul 16, 2022 · 2 comments · May be fixed by #2292

Comments

@tonybaloney
Copy link
Contributor

tonybaloney commented Jul 16, 2022

What were you trying to do?

Launch from a virtual environment

What steps did you take to trigger the issue?

  1. Install Python 3.8 from the Windows store
  2. Create a virtual environment
  3. Start mu

mu.config.DATA_DIR will be C:\Users\<user>\AppData\Local\python\mu

But, this an app execution alias, so the path is actually something like:

C:\\Users\\<user>\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\LocalCache\\Local\\python\\mu\\

This only causes an issue when launching a subprocess, like when mu will create virtual environments, because Windows cannot apply the alias redirect to the subprocess.

Operating System Version

Windows 11

Mu Version

main (1.1.1)

Other Info

No response

Editor Log

No response

@tonybaloney tonybaloney changed the title Windows Store Python causes Windows Store Python causes crash on start Jul 16, 2022
@tonybaloney
Copy link
Contributor Author

Related: platformdirs/platformdirs#90

@Jeffrey04
Copy link
Contributor

Jeffrey04 commented Jul 17, 2022

I also needed to do this to get mu-editor running with windows store python (apart from applying the patch)
https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd#enable-long-paths-in-windows-10-version-1607-and-later

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

Successfully merging a pull request may close this issue.

2 participants