Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIP 517 issues #454

Closed
espenfl opened this issue Jan 13, 2020 · 2 comments
Closed

PIP 517 issues #454

espenfl opened this issue Jan 13, 2020 · 2 comments

Comments

@espenfl
Copy link

espenfl commented Jan 13, 2020

Just got this when we played with some Ansible tests:

fatal: [instance]: FAILED! => {"changed": false, "cmd": ["/root/.virtualenvs/aiida/bin/pip3", "install", "aiida-quantumespresso"], "msg": "stdout: Collecting aiida-quantumespresso\n  Downloading https://files.pythonhosted.org/packages/46/a5/ef8548bc265e2efbb2b908a859798c58e15082ad63ad10485c11e95552c6/aiida_quantumespresso-2.1.0.tar.gz (171kB)\nCollecting aiida_core[atomic_tools]<1.0.0,>=0.12.0 (from aiida-quantumespresso)\n  Downloading https://files.pythonhosted.org/packages/8e/50/5ef0bf7094a16255572c5a161c67ad1b999599e7e2ea675dea8e0eb2c2aa/aiida-core-0.12.4.tar.gz (2.0MB)\n  Installing build dependencies: started\n  Installing build dependencies: finished with status 'done'\n  Getting requirements to build wheel: started\n  Getting requirements to build wheel: finished with status 'error'\n  Complete output from command /root/.virtualenvs/aiida/bin/python3 /root/.virtualenvs/aiida/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpc2byihcl:\n  Traceback (most recent call last):\n    File \"/root/.virtualenvs/aiida/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py\", line 207, in <module>\n      main()\n    File \"/root/.virtualenvs/aiida/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py\", line 197, in main\n      json_out['return_val'] = hook(**hook_input['kwargs'])\n    File \"/root/.virtualenvs/aiida/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py\", line 48, in get_requires_for_build_wheel\n      backend = _build_backend()\n    File \"/root/.virtualenvs/aiida/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py\", line 39, in _build_backend\n      obj = getattr(obj, path_part)\n  AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'\n  \n  ----------------------------------------\n\n:stderr: Command \"/root/.virtualenvs/aiida/bin/python3 /root/.virtualenvs/aiida/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpc2byihcl\" failed with error code 1 in /tmp/pip-install-cvsxaj8b/aiida-core\nYou are using pip version 19.0.3, however version 19.3.1 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.\n"}

Check here: pypa/setuptools#1694 (comment)
And the commit to AiiDA core: marvel-nccr/ansible-role-aiida@314e585#diff-248f43bd9f5aeddecb70d683c9f7c832

@sphuber
Copy link
Contributor

sphuber commented Jan 13, 2020

This is because aiida-quantumespresso==2.1 is not python 3 compatible. Use 3.0.0a5 for a python 3 compatible version

@espenfl
Copy link
Author

espenfl commented Jan 13, 2020

thanks, will update the ansible stuff, closing.

@espenfl espenfl closed this as completed Jan 13, 2020
@espenfl espenfl reopened this Jan 13, 2020
@espenfl espenfl closed this as completed Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants