Skip to content

[CI Issue] Travis CI failed itself due to "ImportError: cannot import name 'FileStorage'" #5235

Closed
@wing328

Description

@wing328

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description

Travis CI failed itself with the following errors:

Installing collected packages: filelock, toml, tox, pyflakes, entrypoints, pycodestyle, mccabe, flake8
Successfully installed entrypoints-0.3 filelock-3.0.12 flake8-3.7.9 mccabe-0.6.1 pycodestyle-2.5.0 pyflakes-2.1.1 toml-0.10.0 tox-3.14.3
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
py3 create: /home/travis/build/OpenAPITools/openapi-generator/samples/server/petstore/python-aiohttp/.tox/py3
py3 installdeps: -r/home/travis/build/OpenAPITools/openapi-generator/samples/server/petstore/python-aiohttp/requirements.txt, -r/home/travis/build/OpenAPITools/openapi-generator/samples/server/petstore/python-aiohttp/test-requirements.txt
py3 installed: aiohttp==3.6.2,aiohttp-jinja2==1.1.0,async-timeout==3.0.1,atomicwrites==1.3.0,attrs==19.3.0,certifi==2019.11.28,chardet==3.0.4,Click==7.0,clickclick==1.2.2,connexion==2.0.2,coverage==5.0.3,Flask==1.1.1,idna==2.8,idna-ssl==1.1.0,importlib-metadata==1.5.0,inflection==0.3.1,itsdangerous==1.1.0,Jinja2==2.11.1,jsonschema==2.6.0,MarkupSafe==1.1.1,more-itertools==8.2.0,multidict==4.7.4,openapi-spec-validator==0.2.8,packaging==20.1,pluggy==0.13.1,py==1.8.1,pyparsing==2.4.6,pytest==4.6.9,pytest-aiohttp==0.3.0,pytest-cov==2.8.1,pytest-randomly==1.2.3,PyYAML==5.3,requests==2.22.0,six==1.14.0,swagger-ui-bundle==0.0.2,typing-extensions==3.7.4.1,urllib3==1.25.8,wcwidth==0.1.8,Werkzeug==1.0.0,yarl==1.4.2,zipp==2.1.0
py3 run-test-pre: PYTHONHASHSEED='3714362342'
py3 run-test: commands[0] | pytest --cov=openapi_server
ImportError while loading conftest '/home/travis/build/OpenAPITools/openapi-generator/samples/server/petstore/python-aiohttp/tests/conftest.py'.
tests/conftest.py:5: in <module>
    import connexion
.tox/py3/lib/python3.6/site-packages/connexion/__init__.py:3: in <module>
    from .apis import AbstractAPI  # NOQA
.tox/py3/lib/python3.6/site-packages/connexion/apis/__init__.py:1: in <module>
    from .abstract import AbstractAPI  # NOQA
.tox/py3/lib/python3.6/site-packages/connexion/apis/abstract.py:9: in <module>
    from ..operations import make_operation
.tox/py3/lib/python3.6/site-packages/connexion/operations/__init__.py:1: in <module>
    from .abstract import AbstractOperation  # noqa
.tox/py3/lib/python3.6/site-packages/connexion/operations/abstract.py:11: in <module>
    from ..decorators.response import ResponseValidator
.tox/py3/lib/python3.6/site-packages/connexion/decorators/response.py:12: in <module>
    from .validation import ResponseBodyValidator
.tox/py3/lib/python3.6/site-packages/connexion/decorators/validation.py:9: in <module>
    from werkzeug import FileStorage
E   ImportError: cannot import name 'FileStorage'
ERROR: InvocationError for command /home/travis/build/OpenAPITools/openapi-generator/samples/server/petstore/python-aiohttp/.tox/py3/bin/pytest --cov=openapi_server (exited with code 4)
___________________________________ summary ____________________________________
ERROR:   py3: commands failed
Makefile:18: recipe for target 'test-all' failed
make: *** [test-all] Error 1
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (test) on project PythonAiohttpServer: Command execution failed. Process exited with an error: 2 (Exit value: 2) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
openapi-generator version

Latest master

Suggest a fix

We'll comment out the test for the time being.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions