localstack / localstack/chalice-local

cannot run chalice local on windows 11 : OSError: [WinError 193] %1 is not a valid Win32 application

Open
#9 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cannot-reproduce usage
Dominant language
Python
Stars
21
Forks
3
PR merge metrics
No merged PRs in 30d

Description

i just installed chalice local thru: pip install chalice-local
and i created project and run thru
```
PS C:\Scopic\workspace\AngioCloud\chalice-local-test\chalice-demo-sns> chalice-local local

C:\Scopic\workspace\AngioCloud\chalice-local-test\chalice-demo-sns>python C:\Users\user\AppData\Local\Programs\Python\Python37\Scripts\\chalice-local local
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\chalice\cli\__init__.py", line 599, in main
return cli(obj={})
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\click\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\chalice\cli\__init__.py", line 147, in local
server_factory, os.environ, project_dir)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\chalice\cli\reloader.py", line 111, in run_with_reloader
start_parent_process(env)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\chalice\cli\reloader.py", line 56, in start_parent_process
process.main()
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\chalice\cli\reloader.py", line 86, in main
process = self._popen(sys.argv, env=self._env)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
OSError: [WinError 193] %1 is not a valid Win32 application
```
pip 20.1.1
(python 3.7)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Windows 11 with the documented pip install and `chalice-local local` command. Start in `chalice/cli/reloader.py`, especially `start_parent_process()` and `_popen()`; done means the local command starts without `OSError: [WinError 193]`.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.