Giter VIP home page Giter VIP logo

shuup-api-permission's Introduction

shuup-api-permission's People

Contributors

chessbr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

shuup-api-permission's Issues

Error: Could not import module 'shuup_api_permission.admin_module.views'

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.