You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I run python and import swagger_client, get this error
/usr/bin/python3.5 /home/fmussi/atomProjs/sandbox/skyline/test_SMSapi_swagger.py
Traceback (most recent call last):
File "/home/fmussi/atomProjs/sandbox/skyline/test_SMSapi_swagger.py", line 3, in
import swagger_client
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/init.py", line 19, in
from swagger_client.api.selections_api import SelectionsApi
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/api/init.py", line 6, in
from swagger_client.api.selections_api import SelectionsApi
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/api/selections_api.py", line 21, in
from swagger_client.api_client import ApiClient
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/api_client.py", line 27, in
import swagger_client.models
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/models/init.py", line 20, in
from swagger_client.models.error import Error
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/models/error.py", line 19, in
from swagger_client.models.error import Error # noqa: F401,E501
ImportError: cannot import name 'Error'
Process finished with exit code 1
The text was updated successfully, but these errors were encountered:
This is an issue in the swagger-codegen for Python: swagger-api/swagger-codegen#7541. The Error model recursively references itself, and the Python client codegen is trying to import itself. There appears to be a pull request up to fix it, but it hasn't had any activity in a few months.
Steps done:
2.1 -> unzip python-client-generated.zip
2.2 -> pip install python-client
/usr/bin/python3.5 /home/fmussi/atomProjs/sandbox/skyline/test_SMSapi_swagger.py
Traceback (most recent call last):
File "/home/fmussi/atomProjs/sandbox/skyline/test_SMSapi_swagger.py", line 3, in
import swagger_client
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/init.py", line 19, in
from swagger_client.api.selections_api import SelectionsApi
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/api/init.py", line 6, in
from swagger_client.api.selections_api import SelectionsApi
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/api/selections_api.py", line 21, in
from swagger_client.api_client import ApiClient
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/api_client.py", line 27, in
import swagger_client.models
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/models/init.py", line 20, in
from swagger_client.models.error import Error
File "/home/fmussi/.local/lib/python3.5/site-packages/swagger_client/models/error.py", line 19, in
from swagger_client.models.error import Error # noqa: F401,E501
ImportError: cannot import name 'Error'
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: