When i try to run sample code i got import error. It looks like something between falcon and http…
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import os
import asposewordscloud
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/asposewordscloud/rest.py”, line 41, in
import urllib3
File “/usr/local/lib/python3.9/dist-packages/urllib3/init.py”, line 11, in
from . import exceptions
File “/usr/local/lib/python3.9/dist-packages/urllib3/exceptions.py”, line 3, in
from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead
File “/usr/local/lib/python3.9/dist-packages/urllib3/packages/six.py”, line 234, in create_module
return self.load_module(spec.name)
File “/usr/local/lib/python3.9/dist-packages/urllib3/packages/six.py”, line 209, in load_module
mod = mod._resolve()
File “/usr/local/lib/python3.9/dist-packages/urllib3/packages/six.py”, line 118, in _resolve
return _import_module(self.mod)
File “/usr/local/lib/python3.9/dist-packages/urllib3/packages/six.py”, line 87, in _import_module
import(name)
File “/root/www/http.py”, line 4, in
import falcon
File “/usr/local/lib/python3.9/dist-packages/falcon/init.py”, line 31, in
from falcon.app import API
File “falcon/app.py”, line 22, in init falcon.app
File “falcon/app_helpers.py”, line 19, in init falcon.app_helpers
File “/usr/local/lib/python3.9/dist-packages/falcon/util/init.py”, line 22, in
from http import cookies as http_cookies
ImportError: cannot import name ‘cookies’ from partially initialized module ‘http’ (most likely due to a circular import) (/root/www/http.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.9/dist-packages/asposewordscloud/init.py”, line 8, in
from asposewordscloud.apis.words_api import WordsApi
File “/usr/local/lib/python3.9/dist-packages/asposewordscloud/apis/init.py”, line 6, in
from asposewordscloud.apis.words_api import WordsApi
File “/usr/local/lib/python3.9/dist-packages/asposewordscloud/apis/words_api.py”, line 34, in
from asposewordscloud.rest import ApiException
File “/usr/local/lib/python3.9/dist-packages/asposewordscloud/rest.py”, line 43, in
raise ImportError(‘Swagger python client requires urllib3.’)
ImportError: Swagger python client requires urllib3.