Closed Benvii closed 6 years ago
Error when deploying stable/production dependencies.
Ansible trace :
TASK [base : Install OPV modules] ********************************************** changed: [opvmaster] => (item=https://github.com/OpenPathView/DirectoryManager.git) failed: [opvmaster] => (item=https://github.com/OpenPathView/OPV_DBRest.git) => {"cmd": "/home/opv/venvs/opv/bin/pip install -U --process-dependency-links git+https://github.com/OpenPathView/OPV_DBRest.git", "failed": true, "item": "https://github.com/OpenPathView/OPV_DBRest.git", "msg": "stdout: Collecting git+https://github.com/OpenPathView/OPV_DBRest.git\n Cloning https://github.com/OpenPathView/OPV_DBRest.git to ./pip-req-build-uflksqxp\n Complete output from command python setup.py egg_info:\n Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/tmp/pip-req-build-uflksqxp/setup.py\", line 12, in <module>\n long_description=open('README.md').read(),\n File \"/usr/lib/python3.5/encodings/ascii.py\", line 26, in decode\n return codecs.ascii_decode(input, self.errors)[0]\n UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 569: ordinal not in range(128)\n \n ----------------------------------------\n\n:stderr: Command \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-req-build-uflksqxp/\n"}
When I try to install it directly in the container (user: opv and in the venv), I get :
$ pip install git+https://github.com/OpenPathView/OPV_DBRest.git Collecting git+https://github.com/OpenPathView/OPV_DBRest.git Cloning https://github.com/OpenPathView/OPV_DBRest.git to ./pip-req-build-vtgh6tlj Collecting GeoAlchemy2 (from dbrest==0.0.0) Using cached https://files.pythonhosted.org/packages/a9/78/3e17296bfda7e4b31e6353af8756c9748b57b441037408598cf287bae30e/GeoAlchemy2-0.4.2-py2.py3-none-any.whl Collecting hug (from dbrest==0.0.0) Using cached https://files.pythonhosted.org/packages/03/69/4987f33c0327bc4550a91858fa7c737ea4516c315801878f48c88921f7a9/hug-2.4.0.tar.gz Collecting marshmallow-sqlalchemy (from dbrest==0.0.0) Using cached https://files.pythonhosted.org/packages/14/6f/2e119f85565d6337cab5ee436579859c70b74bd1f9e1ec387408c7d54b93/marshmallow_sqlalchemy-0.14.0-py2.py3-none-any.whl Collecting SQLAlchemy (from dbrest==0.0.0) Using cached https://files.pythonhosted.org/packages/28/99/ad4dd8240ff8a98c8786fef6d2b392fb2309b0c2bcf23fdfbf3a4cb1a499/SQLAlchemy-1.2.9.tar.gz Collecting psycopg2-binary (from dbrest==0.0.0) Using cached https://files.pythonhosted.org/packages/bd/30/50e9aa0193777c4a169e5606effa8cb18c7f937d462367dd3de0a9371e91/psycopg2_binary-2.7.5-cp35-cp35m-manylinux1_x86_64.whl Requirement already satisfied: opv_api_client in /home/opv/venvs/opv/lib/python3.5/site-packages (from dbrest==0.0.0) (0.0.0) Collecting gunicorn (from dbrest==0.0.0) Using cached https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl Collecting sqlalchemy-migrate (from dbrest==0.0.0) Using cached https://files.pythonhosted.org/packages/05/18/6d339bd6222f7a7613638fafc9ff4c4f0e312843d359e85489dc07b21df5/sqlalchemy-migrate-0.11.0.tar.gz Requirement already satisfied: docopt in /home/opv/venvs/opv/lib/python3.5/site-packages (from dbrest==0.0.0) (0.6.2) Collecting pg_dump_filtered (from dbrest==0.0.0) Could not find a version that satisfies the requirement pg_dump_filtered (from dbrest==0.0.0) (from versions: ) No matching distribution found for pg_dump_filtered (from dbrest==0.0.0)
Seems to be a missing dependency in OPV_DBRest ... I will follow the investigation.
Still have the same error with the fix from https://github.com/OpenPathView/OPV_DBRest/pull/37
It appear that the error comes from default LC that are not correctly set by Ansible, I will publish a fix today.
Error when deploying stable/production dependencies.
Ansible trace :
When I try to install it directly in the container (user: opv and in the venv), I get :
Seems to be a missing dependency in OPV_DBRest ... I will follow the investigation.