Skip to content

fix: create namespace package init with pkgutil.extend_path#23

Merged
aquemy merged 1 commit intomainfrom
fix/namespace-package-init
Jan 1, 2026
Merged

fix: create namespace package init with pkgutil.extend_path#23
aquemy merged 1 commit intomainfrom
fix/namespace-package-init

Conversation

@aquemy
Copy link
Member

@aquemy aquemy commented Jan 1, 2026

Summary

Creates the missing hother/__init__.py file to properly support Python namespace packages.

Changes

  • Create src/hother/__init__.py with pkgutil.extend_path() call
  • This enables packages like hother.streamblocks, hother.cancelable, and hother.reactive_agent to coexist

Technical Details

The hother/__init__.py file was completely missing from this repository. Without it and the pkgutil.extend_path() call, only the last installed package in the hother namespace is accessible, causing ModuleNotFoundError when trying to import other packages in the namespace.

New file:

# Namespace package
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

Testing

  • All pre-commit hooks pass
  • Local testing confirms namespace packages work correctly after this fix

Impact

This is a critical fix for the hother namespace package ecosystem. It enables proper installation of multiple hother-* packages.

Related

- Create missing hother/__init__.py file
- Add pkgutil.extend_path() for namespace package support
- Enables other packages in hother namespace to be imported
@aquemy aquemy merged commit a68c695 into main Jan 1, 2026
4 checks passed
@aquemy aquemy deleted the fix/namespace-package-init branch January 1, 2026 19:16
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.

1 participant