Skip to content

Windows Store Python causes crash on start #2293

Open
@tonybaloney

Description

@tonybaloney

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions