Skip to content

Fix Windows ModuleNotFoundError on unit testing workflow#57

Merged
kagami-l merged 2 commits intomainfrom
fix/windows-module-not-found-error-#226
Jan 29, 2024
Merged

Fix Windows ModuleNotFoundError on unit testing workflow#57
kagami-l merged 2 commits intomainfrom
fix/windows-module-not-found-error-#226

Conversation

@yangbobo2021
Copy link
Copy Markdown
Contributor

This pull request addresses the issue where Windows users experienced a ModuleNotFoundError when running the unit testing workflow. The problem was due to an incorrect file path.

Changes:

  • Adjusted the sys.path.append to ensure it occurs earlier in main.py
  • Modified path handling to support Windows directory structure for unit tests

By moving the path append to an earlier phase and adjusting path access, it should now properly locate the needed modules on the Windows platform.

This resolves the issue reported in devchat-ai/devchat#226.

- Moved 'sys.path.append' lines to the start of 'main.py'
- Ensured correct directory access for unit tests in Windows environment
@yangbobo2021 yangbobo2021 requested a review from kagami-l January 29, 2024 01:43
@kagami-l kagami-l merged commit 5d156e5 into main Jan 29, 2024
@kagami-l kagami-l deleted the fix/windows-module-not-found-error-#226 branch January 29, 2024 04:32
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