In a clean virtualenv with python 3.6.2.
pip install connexion (1.1.16)
pathlib 1.0.1 is installed.
pathlib shouldn't be installed with python version > 3.4
Related issue: #493
python --version: 3.6.2pip show connexion | grep "^Version\:" : 1.1.16Also, it seems that the pathlib is deprecated in favour of pathlib2 as:
https://pypi.python.org/pypi/pathlib/ (Attention section)
@chimeno thanks for reporting this. Would you be interested in providing a fix in the form of a PR?
Based on @NicolasLM , and If I'm not wrong, publishing a new release with a recent enough setuptools could fix the issue.
This should now be fixed with the latest 1.2 release (pathlib is no longer installed):
hjacobs@foobar:~/.venv$ ./bin/pip install connexion
Collecting connexion
Downloading connexion-1.2-py2.py3-none-any.whl (1.0MB)
100% |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 1.0MB 415kB/s
Collecting jsonschema>=2.5.1 (from connexion)
Using cached jsonschema-2.6.0-py2.py3-none-any.whl
Collecting clickclick>=1.2 (from connexion)
Downloading clickclick-1.2.2-py2.py3-none-any.whl
Collecting PyYAML>=3.11 (from connexion)
Collecting swagger-spec-validator>=2.0.2 (from connexion)
Collecting inflection>=0.3.1 (from connexion)
Collecting six>=1.9 (from connexion)
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting requests>=2.9.1 (from connexion)
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting flask>=0.10.1 (from connexion)
Using cached Flask-0.12.2-py2.py3-none-any.whl
Collecting typing>=3.6.1; python_version < "3.6" (from connexion)
Downloading typing-3.6.2-py3-none-any.whl
Collecting click>=4.0 (from clickclick>=1.2->connexion)
Using cached click-6.7-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests>=2.9.1->connexion)
Downloading certifi-2017.11.5-py2.py3-none-any.whl (330kB)
100% |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 337kB 566kB/s
Collecting idna<2.7,>=2.5 (from requests>=2.9.1->connexion)
Using cached idna-2.6-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.9.1->connexion)
Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests>=2.9.1->connexion)
Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting Jinja2>=2.4 (from flask>=0.10.1->connexion)
Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)
100% |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 133kB 549kB/s
Collecting itsdangerous>=0.21 (from flask>=0.10.1->connexion)
Collecting Werkzeug>=0.7 (from flask>=0.10.1->connexion)
Using cached Werkzeug-0.12.2-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask>=0.10.1->connexion)
Installing collected packages: jsonschema, PyYAML, click, clickclick, six, swagger-spec-validator, inflection, certifi, idna, chardet, urllib3, requests, MarkupSafe, Jinja2, itsdangerous, Werkzeug, flask, typing, connexion
Successfully installed Jinja2-2.10 MarkupSafe-1.0 PyYAML-3.12 Werkzeug-0.12.2 certifi-2017.11.5 chardet-3.0.4 click-6.7 clickclick-1.2.2 connexion-1.2 flask-0.12.2 idna-2.6 inflection-0.3.1 itsdangerous-0.24 jsonschema-2.6.0 requests-2.18.4 six-1.11.0 swagger-spec-validator-2.1.0 typing-3.6.2 urllib3-1.22
@chimeno can you check?
I confirm that the release 1.2 fixes the issue.
Confirmed!
Most helpful comment
Based on @NicolasLM , and If I'm not wrong, publishing a new release with a recent enough
setuptoolscould fix the issue.