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

v0.60.0 broken due to missing django_components.utils module #403

Closed
kaiku opened this issue Mar 24, 2024 · 2 comments · Fixed by #404
Closed

v0.60.0 broken due to missing django_components.utils module #403

kaiku opened this issue Mar 24, 2024 · 2 comments · Fixed by #404

Comments

@kaiku
Copy link

kaiku commented Mar 24, 2024

v0.60.0 refuses to load due to a missing __init__.py in the newly created utils dir introduced in #395, cc @JuroOravec.

Relevant stack trace:

    from django_components.utils.autodiscover import search
ModuleNotFoundError: No module named 'django_components.utils'

I'm not able to test this now but I think the solution is easy:

  1. Add an __init__.py to utils
  2. (Preferred) Rename utils/autodiscover.py to utils.py. I think for simplicity's sake, everything can and should go in one file for this project.
@JuroOravec
Copy link
Collaborator

@kaiku Thanks for making an issue for this, I've noticed it too last night, but it was already too late. Working on an MR for this atm.

@EmilStenstrom
Copy link
Owner

@kaiku Thanks for reporting, a fix for this is released as 0.61 in pypi. Please update!

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 a pull request may close this issue.

3 participants