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

Exec format error [Errno 8] #81

Open
3nthusia5t opened this issue May 16, 2024 · 0 comments
Open

Exec format error [Errno 8] #81

3nthusia5t opened this issue May 16, 2024 · 0 comments
Labels
bug Something isn't working platform: windows

Comments

@3nthusia5t
Copy link

3nthusia5t commented May 16, 2024

(venv) PS F:\machine-learning\testingjupyter> py .\ai.py tui
Running ai.py process
Traceback (most recent call last):
  File "F:\machine-learning\testingjupyter\ai.py", line 68, in <module>
    process()
  File "F:\machine-learning\testingjupyter\venv\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\machine-learning\testingjupyter\venv\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "F:\machine-learning\testingjupyter\venv\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\machine-learning\testingjupyter\venv\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\machine-learning\testingjupyter\venv\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\machine-learning\testingjupyter\venv\Lib\site-packages\click\decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\machine-learning\testingjupyter\venv\Lib\site-packages\trogon\trogon.py", line 296, in wrapped_tui
    Trogon(app, app_name=name, command_name=command, click_context=ctx).run()
  File "F:\machine-learning\testingjupyter\venv\Lib\site-packages\trogon\trogon.py", line 264, in run
    os.execvp(program_name, arguments)
  File "<frozen os>", line 580, in execvp
  File "<frozen os>", line 621, in _execvpe
  File "<frozen os>", line 613, in _execvpe
OSError: [Errno 8] Exec format error

obraz

I have tried to change the default app for ".py" files as it was set to vs code. It still didn't work. Maybe it is affected by the virtual environment?

From what i can see on the uploaded picture, the command that is launched is "ai.py ". Maybe on Windows platform it's more reliable to use "py.exe" launcher?

@daneah daneah added the bug Something isn't working label Sep 20, 2024
@daneah daneah mentioned this issue Sep 20, 2024
@daneah daneah changed the title Windows Platform - Exec format error [Errno 8] Exec format error [Errno 8] Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: windows
Projects
None yet
Development

No branches or pull requests

2 participants