Fix ModuleNotFoundError for integrations package#1450
Fix ModuleNotFoundError for integrations package#1450LokiMetaSmith wants to merge 1 commit intomainfrom
Conversation
Added `__init__.py` to `pipecatapp/integrations` to ensure it is recognized as a Python package. This resolves the `ModuleNotFoundError` encountered when `pipecatapp/tools/openclaw_tool.py` attempts to import `integrations.openclaw` in environments where implicit namespace packages are not supported or correctly resolved. Co-authored-by: LokiMetaSmith <5054116+LokiMetaSmith@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
The application was failing to start with a
ModuleNotFoundError: No module named 'integrations'.This was caused by
pipecatapp/integrationslacking an__init__.pyfile, preventing Python from treating it as a package in the deployment environment.This change creates an empty
pipecatapp/integrations/__init__.pyto explicitly mark the directory as a package.Verified by creating a script that attempts the import and confirming it proceeds past the module lookup (failing later on missing dependencies in the test environment, which confirms the module was found).
PR created automatically by Jules for task 13198800040126701617 started by @LokiMetaSmith