chessbr / shuup-api-permission Goto Github PK
View Code? Open in Web Editor NEWShuup API Permission
License: MIT License
Shuup API Permission
License: MIT License
Hi
Thanks for the plugin. I have installed the package by pip install shuup-api-permission
. After that I have configured the settings as shown in the documentation. However when I try to run the project, I am getting below error.
django.core.exceptions.ImproperlyConfigured: Load: Could not import module 'shuup_api_permission.admin_module.views' to load 'APIAccessEditView' from. (ModuleNotFoundError("No module named 'rest_framework.schemas.generators'; 'rest_framework.schemas' is not a package"))
Below is complete stack trace. Could let me know how to resolve this issue.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 228, in wrapper
fn(*args, **kwargs)
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 116, in inner_run
autoreload.raise_last_exception()
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 251, in raise_last_exception
six.reraise(*_exception)
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/site-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 228, in wrapper
fn(*args, **kwargs)
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/site-packages/django/__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/site-packages/django/apps/registry.py", line 116, in populate
app_config.ready()
File "/Users/ravi/PythonWorkspace/shuup-mart9/shuup/shuup/core/__init__.py", line 52, in ready
install_error_handlers()
File "/Users/ravi/PythonWorkspace/shuup-mart9/shuup/shuup/core/error_handling.py", line 83, in install_error_handlers
root_urlconf = import_module(root_urlconf_module)
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/ravi/PythonWorkspace/shuup-mart9/ecommerce/ecommerce/urls.py", line 25, in <module>
namespace="shuup_admin", app_name="shuup_admin")),
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/site-packages/django/conf/urls/__init__.py", line 50, in include
urlconf_module = import_module(urlconf_module)
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/ravi/PythonWorkspace/shuup-mart9/shuup/shuup/admin/urls.py", line 103, in <module>
urlpatterns = get_urls()
File "/Users/ravi/PythonWorkspace/shuup-mart9/shuup/shuup/admin/urls.py", line 43, in get_urls
urls.extend(get_module_urls())
File "/Users/ravi/PythonWorkspace/shuup-mart9/shuup/shuup/admin/module_registry.py", line 48, in get_module_urls
for url in module.get_urls(): # pragma: no branch
File "/Users/ravi/PythonWorkspace/shuup-mart9/venv/lib/python3.7/site-packages/shuup_api_permission/admin_module/__init__.py", line 23, in get_urls
permissions=get_default_model_permissions(APIAccess)
File "/Users/ravi/PythonWorkspace/shuup-mart9/shuup/shuup/admin/utils/urls.py", line 160, in get_edit_and_list_urls
permissions=(name_template % "edit",)
File "/Users/ravi/PythonWorkspace/shuup-mart9/shuup/shuup/admin/utils/urls.py", line 126, in admin_url
view = importing.load(view)
File "/Users/ravi/PythonWorkspace/shuup-mart9/shuup/shuup/utils/importing.py", line 29, in load
six.raise_from(exc, ie)
File "<string>", line 3, in raise_from
django.core.exceptions.ImproperlyConfigured: Load: Could not import module 'shuup_api_permission.admin_module.views' to load 'APIAccessEditView' from. (ModuleNotFoundError("No module named 'rest_framework.schemas.generators'; 'rest_framework.schemas' is not a package"))
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.