Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error importing file_manager during tests. #560

Open
rnlahaye opened this issue Dec 16, 2024 · 1 comment
Open

Error importing file_manager during tests. #560

rnlahaye opened this issue Dec 16, 2024 · 1 comment
Labels
not a bug This doesn't seem right. Maybe misunderstanding support For support, please refer to the Discord server

Comments

@rnlahaye
Copy link

When trying to run the unit tests (via test/runner.sh), I get the following error:

Traceback (most recent call last):
  File "/home/rynildredeth/Happy-Hare/test/components/test_mmu_server.py", line 13, in setUp
    self.subject = MmuServer(MagicMock())
  File "/home/rynildredeth/Happy-Hare/components/mmu_server.py", line 80, in __init__
    self.setup_placeholder_processor(config)
  File "/home/rynildredeth/Happy-Hare/components/mmu_server.py", line 736, in setup_placeholder_processor
    from .file_manager import file_manager
ModuleNotFoundError: No module named 'components.file_manager'

This error occurs both on my laptop and when ssh-ed into the printer.

@moggieuk
Copy link
Owner

I'm away from my printer / system, but I believe you need to cd into the components/file_manager or at least the components directory under moonraker for this to work because that is where mmu_server.py will normally be loaded by moonraker.

@moggieuk moggieuk added not a bug This doesn't seem right. Maybe misunderstanding support For support, please refer to the Discord server labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not a bug This doesn't seem right. Maybe misunderstanding support For support, please refer to the Discord server
Projects
None yet
Development

No branches or pull requests

2 participants