Skip to content

Conversation

@tijmenstor
Copy link
Member

Summary

Add resource blocks for requests and its dependencies to fix missing module errors on fresh installs.

Problem

The formula used venv.pip_install_and_link buildpath which installs the package but doesn't resolve dependencies, causing:

ModuleNotFoundError: No module named 'requests'

Solution

  • Add 5 resource blocks (certifi, charset-normalizer, idna, requests, urllib3)
  • Call venv.pip_install resources before installing the main package

Test plan

  • Fresh install works without errors
  • devleaps-policy-client --help succeeds
  • devleaps-policy-client install works

Fixes the issue where dependencies weren't being installed from the venv.

🤖 Generated with Claude Code

Add resource blocks for requests and its dependencies:
- certifi, charset-normalizer, idna, requests, urllib3

This fixes "ModuleNotFoundError: No module named 'requests'" on fresh installs.

The formula was using pip_install_and_link which doesn't resolve dependencies
from package metadata. Now explicitly declares all required resources.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy link
Member

@SkPhilipp SkPhilipp left a comment

Choose a reason for hiding this comment

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

OK but cleaner would be to generate them as we previously did.

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