Skip to content

Conversation

@JulieLorin
Copy link

When running fastmcp dev src/creative_agent/server.py directly, Python doesn't treat the file as part of a package, causing relative imports to fail with "ImportError: attempted relative import with no known parent package".

Changed all relative imports to absolute imports:

  • .data.standard_formats → creative_agent.data.standard_formats
  • .schemas → creative_agent.schemas
  • .schemas.manifest → creative_agent.schemas.manifest
  • .validation → creative_agent.validation
  • .storage → creative_agent.storage

This ensures the server works both as a module entry point and when run directly with fastmcp dev.

🤖 Generated with Claude Code

When running `fastmcp dev src/creative_agent/server.py` directly,
Python doesn't treat the file as part of a package, causing relative
imports to fail with "ImportError: attempted relative import with no
known parent package".

Changed all relative imports to absolute imports:
- .data.standard_formats → creative_agent.data.standard_formats
- .schemas → creative_agent.schemas
- .schemas.manifest → creative_agent.schemas.manifest
- .validation → creative_agent.validation
- .storage → creative_agent.storage

This ensures the server works both as a module entry point and when
run directly with fastmcp dev.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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