question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OSError: [WinError 193] %1 is not a valid Win32 application Ask Question

See original GitHub issue

Issue

Hey, I think there is a problem with using windows and the run command, because you don’t specify the executable. This happens, because run calls execute see here and then here without any extra windows care.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
mardiroscommented, Jun 28, 2020

OK, so to avoid the issue.

C:\blah\ poetry run python.exe .\myprod\whatever.py

Actually it works fine to me, I am just lost on windows 😃

I re-read how to use the run command.

2reactions
samuelpetrolinecommented, Jun 17, 2020

Is there any way to fix this? I haven’t been able to find a workaround

Read more comments on GitHub >

github_iconTop Results From Across the Web

OSError: [WinError 193] %1 is not a valid Win32 application
The error is pretty clear. The file hello.py is not an executable file. You need to specify the executable: subprocess.call(['python.exe', ...
Read more >
OSError: [WinError 193] %1 is not a valid Win32 application
I am trying to run the following code with anaconda 4.7.12 from __future__ import print_function import torch x = torch.rand(5, ...
Read more >
Oserror: [Winerror 193] %1 Is Not a Valid win32 Application
The error code that reads oserror: [winerror 193] %1 is not a valid win32 application occurs when using Python or a Python software...
Read more >
OSError: [WinError 193] - Get Help - Codecademy Forums
Hi, While importing pandas, I am getting OS error- OSError Traceback (most ... OSError: [WinError 193] %1 is not a valid Win32 application....
Read more >
Python 3 - OSError: [WinError 193] %1 is not a valid Win32 ...
This error was driving me demented a couple days ago - I was running 64bit python 3.9.1 and calling pandas. Every time i...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found