thoth-station / user-api

Web Service exposing Thoth functions to the RESTful worlds
https://thoth-station.github.io/
GNU General Public License v3.0
8 stars 18 forks source link

ImportError: cannot import name 'CacheMiss' from 'thoth.storages.exceptions' #1836

Closed harshad16 closed 1 year ago

harshad16 commented 1 year ago

Describe the bug The following issue is showing up in the user-api v0.35.9

ImportError: cannot import name 'CacheMiss' from 'thoth.storages.exceptions' (/opt/app-root/lib64/python3.8/site-packages/thoth/storages/exceptions.py)
(6 additional frame(s) were not displayed)
...
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/app-root/src/thoth/user_api/api_v1.py", line 53, in <module>
    from thoth.storages.exceptions import CacheMiss

ResolverError: <ResolverError: Cannot resolve operationId "thoth.user_api.api_v1.post_provenance_python"! Import error was "cannot import name 'CacheMiss' from 'thoth.storages.exceptions' 

To Reproduce Steps to reproduce the behavior: Run the user-api

Expected behavior user-api should run smoothly