#๐Ÿ”’ Error Code 193 in VS Code Running Python Script in Jupyter (VS Code)

11 messages ยท Page 1 of 1 (latest)

zenith raven
#

Having issues running a script through VS code that previously worked. This is run through venv. All requirements are installed and updated. When I initially got VS code I installed 4 different versions of python (3.8, 3.9, 3.10, 3.11) if I wanted to use them at any point for version control. The script throws error code 193 in Python with the erro message "%1 is not a valid Win32 application".

I have reinstalled numpy. My architecture is on 64-bit. I checked all my python installs and they are 64-bit. I reinstalled PyWin32 as a dependenccy for 64-bit as well through pip install. At this point I am stumped as to what I might do.

FYI - this is a work computer so I cannot manually edit PATH variables.

Thoughts?

gilded totemBOT
#

@zenith raven

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

zenith raven
#

venv is based off Python 3.11 if that helps

verbal glade
zenith raven
#

That is the entire error message.

Error code 193: "%1 is not a valid Win32 application"

verbal glade
#

No other context? What do you do to make it produce this error? Maybe a screenshot of your VSCode window.

zenith raven
#

The error throws when using selenium to do web based application work. It attempts to open a test environment URL and upon doing so attempts usually 2-3x and then fails and throws that error code. The .py file nor the .ipynb file can run.

verbal glade
#

Hmm. I may not be abe to help you with this.

zenith raven
#

No worries, appreciate it

gilded totemBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.