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

custom model registration fails inside of hub/__init__.py due to __pycache__ #440

Open
outtanames opened this issue Oct 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@outtanames
Copy link
Contributor

When registering custom models with the new yaml flow, module_exec fails to to find module attribute corresponding to the class name. This appears to be due to the __pycache__ storing old/invalid module specs. Need a way to clear out the cache or skip it entirely when registering these models.

@outtanames outtanames added the bug Something isn't working label Oct 25, 2023
@outtanames
Copy link
Contributor Author

Workaround is to delete the cache when this occurs, but not an easy fix given that it might occur inside the nos container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant