Cannot import name BoolQuery, swagger-client python

Hi,
I'm trying out the swagger client to connect with ECE using python. For now I'm attempting this on my windows workstation running python 2.7.
The swagger-client installs but trying to import it yields this error.
$ python
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import swagger_client
Traceback (most recent call last):
File "", line 1, in
File "swagger_client_init_.py", line 19, in
from swagger_client.api.clusters_elasticsearch_api import ClustersElasticsearchApi
File "swagger_client\api_init_.py", line 6, in
from swagger_client.api.clusters_elasticsearch_api import ClustersElasticsearchApi
File "swagger_client\api\clusters_elasticsearch_api.py", line 21, in
from swagger_client.api_client import ApiClient
File "swagger_client\api_client.py", line 27, in
import swagger_client.models
File "swagger_client\models_init_.py", line 32, in
from swagger_client.models.bool_query import BoolQuery
File "swagger_client\models\bool_query.py", line 19, in
from swagger_client.models.query_container import QueryContainer # noqa: F401,E501
File "swagger_client\models\query_container.py", line 19, in
from swagger_client.models.bool_query import BoolQuery # noqa: F401,E501
ImportError: cannot import name BoolQuery

Any ideas on this?

I re-read the doc on setting up the swagger client, and I posted this issue to the swagger github, like your article recommends.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.