Skip to content

Conversation

@anirbanbasu
Copy link
Owner

  • Corrected code to support Windows.
  • Added tests for Windows (server only).

Potentially fixes #20

@anirbanbasu anirbanbasu marked this pull request as ready for review October 16, 2025 11:49
@anirbanbasu anirbanbasu self-assigned this Oct 16, 2025
@anirbanbasu anirbanbasu added bug Something isn't working enhancement New feature or request labels Oct 16, 2025
@anirbanbasu anirbanbasu requested a review from Copilot October 16, 2025 11:51
@anirbanbasu
Copy link
Owner Author

Partly fixes #20 but HF model download issues are not Windows-specific, so that will be handled in a separate PR.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Oct 16, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds Windows support to the ollama-downloader project by implementing platform-specific compatibility fixes and adding Windows-specific test coverage.

Key changes:

  • Added Windows compatibility by conditionally importing Unix-specific modules
  • Enhanced error handling with more detailed HTTP error messages
  • Fixed path handling to use cross-platform compatible methods

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/ollama_downloader/sysinfo.py Added conditional import of grp module for Unix/Linux compatibility
src/ollama_downloader/cli.py Enhanced error logging with HTTP response details
src/ollama_downloader/data/data_models.py Updated default path construction for cross-platform compatibility
src/ollama_downloader/init.py Changed path separator to use os.path.join for Windows compatibility
src/ollama_downloader/downloader/model_downloader.py Fixed variable scoping by moving model/tag parsing before match statement
src/ollama_downloader/downloader/hf_model_downloader.py Added default handling for missing tag in model identifier
pyproject.toml Added Windows-specific pywin32 dependency
.github/workflows/uv-pytest.yml Updated workflow naming and removed comments
tests_on_windows.txt Added list of Windows-compatible tests

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@anirbanbasu anirbanbasu merged commit 75a3cfd into master Oct 16, 2025
2 checks passed
@anirbanbasu anirbanbasu deleted the windows-eval branch October 16, 2025 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ModuleNotFoundError: No module named 'grp' when running 'od' command on Windows

2 participants