[GH-ISSUE #250] Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. #225

Closed
opened 2026-02-26 12:20:52 +03:00 by kerem · 6 comments
Owner

Originally created by @xman213 on GitHub (Mar 14, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/250

I am making a app the is composed of 12 .py files. I convert it to a exe and the main.py file runs just fine. when the program calls for a driffrent py file I get this "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases."

How would I fix this?

Originally created by @xman213 on GitHub (Mar 14, 2022). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/250 I am making a app the is composed of 12 .py files. I convert it to a exe and the main.py file runs just fine. when the program calls for a driffrent py file I get this "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases." How would I fix this?
kerem closed this issue 2026-02-26 12:20:53 +03:00
Author
Owner

@brentvollebregt commented on GitHub (Mar 15, 2022):

Are you trying to call another script using python, as in the binary?

The python binary may not exist on the host - you need to import scripts and then execute functions within them.

<!-- gh-comment-id:1067857203 --> @brentvollebregt commented on GitHub (Mar 15, 2022): Are you trying to call another script using `python`, as in the binary? The python binary may not exist on the host - you need to import scripts and then execute functions within them.
Author
Owner

@xman213 commented on GitHub (Mar 15, 2022):

I had something like this to call the file,

import myfile
subprocess.call(["python", "myfile.py"], shell = False)

not sure if thats exactly what I had because im at school but I am 99% sure
thats what I did.

<!-- gh-comment-id:1068024415 --> @xman213 commented on GitHub (Mar 15, 2022): I had something like this to call the file, import myfile subprocess.call(["python", "myfile.py"], shell = False) not sure if thats exactly what I had because im at school but I am 99% sure thats what I did.
Author
Owner

@brentvollebregt commented on GitHub (Mar 17, 2022):

You cannot make those kind of calls when packaging a script like this. You need to import the scripts and call functions from within them.

<!-- gh-comment-id:1070525996 --> @brentvollebregt commented on GitHub (Mar 17, 2022): You cannot make those kind of calls when packaging a script like this. You need to import the scripts and call functions from within them.
Author
Owner

@xman213 commented on GitHub (Mar 17, 2022):

ok

<!-- gh-comment-id:1070969054 --> @xman213 commented on GitHub (Mar 17, 2022): ok
Author
Owner

@perfectans commented on GitHub (Oct 6, 2022):

[Removed as it was not relevant to this specific issue]

<!-- gh-comment-id:1269458460 --> @perfectans commented on GitHub (Oct 6, 2022): [Removed as it was not relevant to this specific issue]
Author
Owner

@brentvollebregt commented on GitHub (Oct 6, 2022):

@perfectans I ask that you remove your most recent comment here as it is not related to this specific issue. I would rather people see relevant solutions sorry.

<!-- gh-comment-id:1269905770 --> @brentvollebregt commented on GitHub (Oct 6, 2022): @perfectans I ask that you remove your most recent comment here as it is not related to this specific issue. I would rather people see relevant solutions sorry.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#225
No description provided.