You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/greg/PythonProject/shop-oscar/manage.py", line 22, in <module>
main()
~~~~^^
File "/home/greg/PythonProject/shop-oscar/manage.py", line 18, in main
execute_from_command_line(sys.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
~~~~~~~~~~~~~~~^^
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar_elasticsearch/search/management/commands/update_oscar_index.py", line 7, in handle
call_command("update_index_products")
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/django/core/management/__init__.py", line 194, in call_command
return command.execute(*args, **defaults)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar_elasticsearch/search/management/commands/update_index_products.py", line 28, in handle
index.reindex_objects(chunk)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar_elasticsearch/search/indexing/indexer.py", line 136, in reindex_objects
es_data = self.make_documents(objects)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar_elasticsearch/search/api/product.py", line 59, in make_documents
ProductElasticSearchMapping = get_class(
"search.mappings.products", "ProductElasticSearchMapping"
)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar/core/loading.py", line 40, in get_class
return get_classes(module_label, [classname], module_prefix)[0]
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar/core/loading.py", line 50, in get_classes
return class_loader(module_label, classnames, module_prefix)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar/core/loading.py", line 120, in default_class_loader
local_module = _import_module(local_module_label, classnames)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar/core/loading.py", line 141, in _import_module
return __import__(module_label, fromlist=classnames)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar_elasticsearch/search/mappings/__init__.py", line 1, in <module>
from .categories import *
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar_elasticsearch/search/mappings/categories.py", line 11, in <module>
OscarElasticSearchResourceMixin = get_class(
"search.mappings.mixins", "OscarElasticSearchResourceMixin"
)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar/core/loading.py", line 40, in get_class
return get_classes(module_label, [classname], module_prefix)[0]
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar/core/loading.py", line 50, in get_classes
return class_loader(module_label, classnames, module_prefix)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar/core/loading.py", line 120, in default_class_loader
local_module = _import_module(local_module_label, classnames)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar/core/loading.py", line 141, in _import_module
return __import__(module_label, fromlist=classnames)
File "/home/greg/PythonProject/shop-oscar/env/lib/python3.13/site-packages/oscar_elasticsearch/search/mappings/mixins.py", line 1, in <module>
from oscar_odin.resources._base import OscarResource
ModuleNotFoundError: No module named 'oscar_odin.resources._base'
One of the difference can be seen in search>mappings>mixins.py . The lines:
from oscar.core.loading import get_class
OscarResource = get_class("oscar_odin.resources.base", "OscarResource")
are missing and mandatory.
You can also compare with the sandbox which is up to date
The text was updated successfully, but these errors were encountered:
https://pypi.org/project/django-oscar-elasticsearch/ version is from 20th of september.
Some CLI command like
python manage.py update_oscar_index
need a "newer" version:One of the difference can be seen in search>mappings>mixins.py . The lines:
are missing and mandatory.
You can also compare with the sandbox which is up to date
The text was updated successfully, but these errors were encountered: