Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newb here, need help. #51

Open
ramrattle opened this issue Oct 27, 2022 · 0 comments
Open

newb here, need help. #51

ramrattle opened this issue Oct 27, 2022 · 0 comments

Comments

@ramrattle
Copy link

I cloned this repo and installed openai generator, ran agains the NRF like this

root@Focal:/tmp/test# openapi-generator-cli generate -i TS29510_Nnrf_NFManagement.yaml -g python-flask -o /tmp/test/

when I run the server using pip3 -m openapi_server I get the below msg,

File "/usr/local/lib/python3.8/dist-packages/connexion/apis/abstract.py", line 119, in init
self.add_paths()
File "/usr/local/lib/python3.8/dist-packages/connexion/apis/abstract.py", line 229, in add_paths
self._handle_add_operation_error(path, method, err.exc_info)
File "/usr/local/lib/python3.8/dist-packages/connexion/apis/abstract.py", line 244, in _handle_add_operation_error
raise value.with_traceback(traceback)
File "/usr/local/lib/python3.8/dist-packages/connexion/resolver.py", line 68, in resolve_function_from_operation_id
return self.function_resolver(operation_id)
File "/usr/local/lib/python3.8/dist-packages/connexion/utils.py", line 128, in get_function_from_name
raise last_import_error
File "/usr/local/lib/python3.8/dist-packages/connexion/utils.py", line 116, in get_function_from_name
module = importlib.import_module(module_name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in find_and_load_unlocked
ModuleNotFoundError: No module named 'openapi_server.controllers.nf_instances
(store)controller'

Will be great if someone can help me with this since I'm new to openapi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant