Skip to content

Errror importing swagger_client Python module #20

@fmussi

Description

@fmussi

Steps done:

  1. Generated pyhon client from tag.yml -> Ok
  2. installed on Debian machine with python3 ('3.5.3 (default, Sep 27 2018, 17:25:39) \n[GCC 6.3.0 20170516]')
    2.1 -> unzip python-client-generated.zip
    2.2 -> pip install python-client
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodegenIssue with swagger-codegen

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions