Skip to content

Conversation

@dylanbowman314
Copy link
Contributor

@dylanbowman314 dylanbowman314 commented Oct 1, 2025

Getting import errors without this single-line change.


Note

Update MCPServer import in hud/server/router.py from .server to hud.server.server.

Written by Cursor Bugbot for commit 8285fca. This will update automatically on new commits. Configure here.

@dylanbowman314
Copy link
Contributor Author

Specifically fixing

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/app/src/controller/server.py", line 15, in <module>
    from hud.server import MCPServer
  File "/usr/local/lib/python3.12/site-packages/hud/server/__init__.py", line 3, in <module>
    from .router import MCPRouter
  File "/usr/local/lib/python3.12/site-packages/hud/server/router.py", line 8, in <module>
    from hud.server import MCPServer
ImportError: cannot import name 'MCPServer' from partially initialized module 'hud.server' (most likely due to a circular import) (/usr/local/lib/python3.12/site-packages/hud/server/__init__.py)

@promptless
Copy link
Contributor

promptless bot commented Oct 1, 2025

Copy link
Contributor

@Parth220 Parth220 left a comment

Choose a reason for hiding this comment

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

Good catch, not sure how I didn't see this earlier

@Parth220 Parth220 merged commit 3513ca0 into main Oct 1, 2025
6 of 9 checks passed
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.

3 participants