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

[Issue-#186] - Fix - Windows issues on mox cli command and utils argparser #191

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

s3bc40
Copy link
Contributor

@s3bc40 s3bc40 commented Jan 27, 2025

Related issue: #186


  • init.py: Windows error (UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f40d') when the param encoding="utf-8" for open` is not set
  • compile.py: Windows does not support fork method for multiprocessing.set_start_method(), hence changed to "spawn"
  • vars.py: added general constant IS_WINDOWS for future use and avoid any duplicates
  • fixed utils CLI command running an error when no arguments passed + fixed some var typo

- `init.py`: windows error `(UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f40d')` when the param `encoding="utf-8" for `open` is not set
- `compile.py`: windows does not support `fork` method for `multiprocessing.set_start_method()`, hence changed to "spawn"
- `vars.py`: added general constant `IS_WINDOWS` for future use and avoid any duplicates
- fixed utils CLI command running an error when no arguments passed + fixed some var typo
@s3bc40 s3bc40 changed the title [Issue-#186fix: windows issues on mox cli command and utils argparser [Issue-#186] - Fix - Windows issues on mox cli command and utils argparser Jan 27, 2025
@s3bc40 s3bc40 marked this pull request as draft January 27, 2025 16:22
@s3bc40 s3bc40 marked this pull request as ready for review January 27, 2025 16:35
@PatrickAlphaC
Copy link
Member

Supporting windows makes me nervous... I'd rather just not support it... but this feels benign... Tests look good.

@PatrickAlphaC PatrickAlphaC merged commit 4d2106b into Cyfrin:main Jan 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants