Coder Social home page Coder Social logo

Comments (5)

ianco avatar ianco commented on July 30, 2024 1

Hmmm I wonder if this is due to a change in one of the dependencies. I'll need to test it out.

from greenlight.

ianco avatar ianco commented on July 30, 2024

Can you check the browser console to see if it is logging any errors? "more tools | developer tools | console" (in chrome)

from greenlight.

CJHunter91 avatar CJHunter91 commented on July 30, 2024

There is indeed an error being thrown. See below

Environment:

Request Method: GET
Request URL: http://tob-api:8080/api/v2/issuer?page=1

Django Version: 2.2.17
Python Version: 3.6.9
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'haystack',
'rest_framework',
'drf_generators',
'drf_yasg',
'django_filters',
'api',
'api_v2',
'api_indy',
'tob_api',
'corsheaders']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'corsheaders.middleware.CorsMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']

Traceback:

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/rest_framework/settings.py" in import_from_string
183. module = import_module(module_path)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/importlib/init.py" in import_module
126. return _bootstrap._gcd_import(name[level:], package, level)

File "" in _gcd_import
994.

File "" in _find_and_load
971.

File "" in _find_and_load_unlocked
955.

File "" in _load_unlocked
665.

File "" in exec_module
678.

File "" in _call_with_frames_removed
219.

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/drf_yasg/generators.py" in
13. from rest_framework.schemas.utils import get_pk_description

During handling of the above exception (cannot import name 'get_pk_description'), another exception occurred:

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
34. response = get_response(request)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/utils/deprecation.py" in call
93. response = self.process_request(request)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/middleware/common.py" in process_request
52. if self.should_redirect_with_slash(request):

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/middleware/common.py" in should_redirect_with_slash
70. not is_valid_path(request.path_info, urlconf) and

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/urls/base.py" in is_valid_path
157. resolve(path, urlconf)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/urls/base.py" in resolve
24. return get_resolver(urlconf).resolve(path)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/urls/resolvers.py" in resolve
536. for pattern in self.url_patterns:

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/utils/functional.py" in get
80. res = instance.dict[self.name] = self.func(instance)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/urls/resolvers.py" in url_patterns
584. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/utils/functional.py" in get
80. res = instance.dict[self.name] = self.func(instance)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/urls/resolvers.py" in urlconf_module
577. return import_module(self.urlconf_name)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/importlib/init.py" in import_module
126. return _bootstrap._gcd_import(name[level:], package, level)

File "" in _gcd_import
994.

File "" in _find_and_load
971.

File "" in _find_and_load_unlocked
955.

File "" in _load_unlocked
665.

File "" in exec_module
678.

File "" in _call_with_frames_removed
219.

File "/home/indy/tob_api/urls.py" in
17. path("api/v2/", include("api_v2.urls")),

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/django/urls/conf.py" in include
34. urlconf_module = import_module(urlconf_module)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/importlib/init.py" in import_module
126. return _bootstrap._gcd_import(name[level:], package, level)

File "" in _gcd_import
994.

File "" in _find_and_load
971.

File "" in _find_and_load_unlocked
955.

File "" in _load_unlocked
665.

File "" in exec_module
678.

File "" in _call_with_frames_removed
219.

File "/home/indy/api_v2/urls.py" in
25. permission_classes=(AllowAny,),

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/drf_yasg/views.py" in get_schema_view
67. _generator_class = generator_class or swagger_settings.DEFAULT_GENERATOR_CLASS

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/drf_yasg/app_settings.py" in getattr
122. val = perform_import(val, attr)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/rest_framework/settings.py" in perform_import
170. return import_from_string(val, setting_name)

File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/rest_framework/settings.py" in import_from_string
187. raise ImportError(msg)

Exception Type: ImportError at /api/v2/issuer
Exception Value: Could not import 'drf_yasg.generators.OpenAPISchemaGenerator' for API setting 'DEFAULT_GENERATOR_CLASS'. ImportError: cannot import name 'get_pk_description'.

from greenlight.

ianco avatar ianco commented on July 30, 2024

Fixed in this OrgBook PR: bcgov/TheOrgBook#903

from greenlight.

CJHunter91 avatar CJHunter91 commented on July 30, 2024

Great that's working now. Thanks for the help.

from greenlight.

Related Issues (20)

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.