Hi, I like your package, but I encountered error while adding on my django-tenants package.
This is the error that I encountered.
Proposed Actions
Any suggestions to solve it?
2023-10-21T15:16:39+0700 | DEBUG | ReactPy is in debug mode
changing tenant: public
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\code\venv\Lib\site-packages\django\template\utils.py", line 69, in getitem
return self._engines[alias]
KeyError: 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\Program Files\Python311\Lib\threading.py", line 975, in run
self.target(*self.args, **self.kwargs)
File "C:\code\venv\Lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:\code\venv\Lib\site-packages\django\core\management\commands\runserver.py", line 125, in inner_run
autoreload.raise_last_exception()
File "C:\code\venv\Lib\site-packages\django\utils\autoreload.py", line 87, in raise_last_exception
raise exception[1]
File "C:\code\venv\Lib\site-packages\django\core\management_init.py", line 394, in execute
autoreload.check_errors(django.setup)()
File "C:\code\venv\Lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:\code\venv\Lib\site-packages\django_init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\code\venv\Lib\site-packages\django\apps\registry.py", line 124, in populate
app_config.ready()
File "C:\code\venv\Lib\site-packages\reactpy_django\apps.py", line 11, in ready
ComponentPreloader().run()
File "C:\code\venv\Lib\site-packages\reactpy_django\utils.py", line 128, in run
paths = self.get_paths()
^^^^^^^^^^^^^^^^
File "C:\code\venv\Lib\site-packages\reactpy_django\utils.py", line 155, in get_paths
for loader in self.get_loaders():
^^^^^^^^^^^^^^^^^^
File "C:\code\venv\Lib\site-packages\reactpy_django\utils.py", line 139, in get_loaders
for e in engines.all():
^^^^^^^^^^^^^
File "C:\code\venv\Lib\site-packages\django\template\utils.py", line 94, in all
return [self[alias] for alias in self]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\code\venv\Lib\site-packages\django\template\utils.py", line 94, in
return [self[alias] for alias in self]
~~~~^^^^^^^
File "C:\code\venv\Lib\site-packages\django\template\utils.py", line 85, in getitem
engine = engine_cls(params)
^^^^^^^^^^^^^^^^^^
File "C:\code\venv\Lib\site-packages\django\template\backends\django.py", line 24, in init
options["libraries"] = self.get_templatetag_libraries(libraries)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\code\venv\Lib\site-packages\django\template\backends\django.py", line 42, in get_templatetag_libraries
libraries = get_installed_libraries()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\code\venv\Lib\site-packages\django\template\backends\django.py", line 116, in get_installed_libraries
return {
^
File "C:\code\venv\Lib\site-packages\django\template\backends\django.py", line 116, in
return {
^
File "C:\code\venv\Lib\site-packages\django\template\backends\django.py", line 105, in get_template_tag_modules
for name in get_package_libraries(pkg):
File "C:\code\venv\Lib\site-packages\django\template\backends\django.py", line 128, in get_package_libraries
module = import_module(entry[1])
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\importlib_init.py", line 126, in import_module
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1203, in _gcd_import
File "", line 1116, in _sanity_check
ValueError: Empty module name
Current Situation
Hi, I like your package, but I encountered error while adding on my django-tenants package. This is the error that I encountered.
Proposed Actions
Any suggestions to solve it?