Closed WenT-Ethan closed 6 years ago
The current version of PyYaml does not support python3.7. It's a well-know problem discussed here
Fortunately, it seems that the PyYaml developers are working on it:
PyYAML 3.13 should go out today or tomorrow. That will have PyYAML exact same as 3.12 but works with Python 3.7.
Note that the python versions officially supported by AbiPy are 2.7 and 3.6. python 3.7.0 has been released six days ago so there may be libraries used by AbiPy that have not yet been ported to py3.7.
Noted. Thank you for your kind answers.😊😊
Best regards. WenT
差出人: Melanie notifications@github.com 送信日時: 2018年7月4日 5:29:44 宛先: abinit/abipy CC: Buntsu Riku; Author 件名: Re: [abinit/abipy] The error just showed when I was installing the abipy. How to fixed it? (#156)
@gmatteohttps://github.com/gmatteo is there a workaround though? looking at that thread it was suggested pip3 install pyyaml==4.2b4 could be a workaround until the release but I'm not making any progress currently with that solution.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/abinit/abipy/issues/156#issuecomment-402283146, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Am1t3emIf4c576XIclUsYNilWX7ePBtiks5uC9Q4gaJpZM4VA7aL.
Collecting abipy Downloading https://files.pythonhosted.org/packages/36/af/649c18c323504e445d22419fa6fcbf7f21a74f21b875340e7b0a5fe18303/abipy-0.5.0-py2.py3-none-any.whl (14.7MB) 100% |████████████████████████████████| 14.7MB 1.4MB/s Requirement already satisfied: pandas in /usr/local/lib/python3.7/site-packages (from abipy) (0.23.1) Requirement already satisfied: scipy in /usr/local/lib/python3.7/site-packages (from abipy) (1.1.0) Requirement already satisfied: netCDF4 in /usr/local/lib/python3.7/site-packages (from abipy) (1.4.0) Collecting prettytable (from abipy) Downloading https://files.pythonhosted.org/packages/ef/30/4b0746848746ed5941f052479e7c23d2b56d174b82f4fd34a25e389831f5/prettytable-0.7.2.tar.bz2 Collecting html2text (from abipy) Downloading https://files.pythonhosted.org/packages/16/20/de2b458ef434713053dd83209a03a5431ebe0527c8e14d9ae7838ff67d8a/html2text-2018.1.9-py3-none-any.whl Requirement already satisfied: numpy in /usr/local/lib/python3.7/site-packages (from abipy) (1.14.5) Requirement already satisfied: tabulate in /usr/local/lib/python3.7/site-packages (from abipy) (0.8.2) Collecting apscheduler==2.1.0 (from abipy) Collecting pyyaml>=3.11 (from abipy) Downloading https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz (253kB) 100% |████████████████████████████████| 256kB 2.7MB/s Requirement already satisfied: matplotlib in /usr/local/lib/python3.7/site-packages (from abipy) (2.2.2) Requirement already satisfied: pydispatcher>=2.0.5 in /usr/local/lib/python3.7/site-packages (from abipy) (2.0.5) Collecting seaborn (from abipy) Collecting pymatgen==2018.6.11 (from abipy) Downloading https://files.pythonhosted.org/packages/e3/46/6d0a39b75776fc3297022ceb4997f2368fed8f8628388a0f1eeb43c851a4/pymatgen-2018.6.11.tar.gz (1.7MB) 100% |████████████████████████████████| 1.8MB 1.5MB/s Requirement already satisfied: six in /usr/local/lib/python3.7/site-packages (from abipy) (1.11.0) Requirement already satisfied: spglib in /usr/local/lib/python3.7/site-packages (from abipy) (1.10.3.65) Collecting tqdm (from abipy) Downloading https://files.pythonhosted.org/packages/93/24/6ab1df969db228aed36a648a8959d1027099ce45fad67532b9673d533318/tqdm-4.23.4-py2.py3-none-any.whl (42kB) 100% |████████████████████████████████| 51kB 1.3MB/s Requirement already satisfied: pytz>=2011k in /usr/local/lib/python3.7/site-packages (from pandas->abipy) (2018.5) Requirement already satisfied: python-dateutil>=2.5.0 in /usr/local/lib/python3.7/site-packages (from pandas->abipy) (2.7.3) Requirement already satisfied: cftime in /usr/local/lib/python3.7/site-packages (from netCDF4->abipy) (1.0.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.7/site-packages (from matplotlib->abipy) (2.2.0) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.7/site-packages (from matplotlib->abipy) (1.0.1) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.7/site-packages (from matplotlib->abipy) (0.10.0) Requirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (from pymatgen==2018.6.11->abipy) (2.19.1) Requirement already satisfied: ruamel.yaml>=0.15.6 in /usr/local/lib/python3.7/site-packages (from pymatgen==2018.6.11->abipy) (0.15.42) Requirement already satisfied: monty>=0.9.6 in /usr/local/lib/python3.7/site-packages (from pymatgen==2018.6.11->abipy) (1.0.3) Requirement already satisfied: palettable>=2.1.1 in /usr/local/lib/python3.7/site-packages (from pymatgen==2018.6.11->abipy) (3.1.1) Requirement already satisfied: sympy in /usr/local/lib/python3.7/site-packages (from pymatgen==2018.6.11->abipy) (1.1.1) Requirement already satisfied: cython in /usr/local/lib/python3.7/site-packages (from cftime->netCDF4->abipy) (0.28.3) Requirement already satisfied: setuptools>=18.0 in /usr/local/lib/python3.7/site-packages (from cftime->netCDF4->abipy) (39.2.0) Requirement already satisfied: urllib3<1.24,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->pymatgen==2018.6.11->abipy) (1.23) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->pymatgen==2018.6.11->abipy) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->pymatgen==2018.6.11->abipy) (2018.4.16) Requirement already satisfied: idna<2.8,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->pymatgen==2018.6.11->abipy) (2.7) Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.7/site-packages (from sympy->pymatgen==2018.6.11->abipy) (1.0.0) Installing collected packages: prettytable, html2text, apscheduler, pyyaml, seaborn, pymatgen, tqdm, abipy Running setup.py install for prettytable ... done Running setup.py install for pyyaml ... error Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/tmp/pip-install-olko9aul/pyyaml/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/tmp/pip-record-3_n6shgj/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.macosx-10.13-x86_64-3.7 creating build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/scanner.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/error.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/constructor.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/composer.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/events.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/init.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/representer.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/tokens.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/dumper.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/cyaml.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/parser.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/reader.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/loader.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/resolver.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/serializer.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/nodes.py -> build/lib.macosx-10.13-x86_64-3.7/yaml copying lib3/yaml/emitter.py -> build/lib.macosx-10.13-x86_64-3.7/yaml running build_ext creating build/temp.macosx-10.13-x86_64-3.7 checking if libyaml is compilable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c build/temp.macosx-10.13-x86_64-3.7/check_libyaml.c -o build/temp.macosx-10.13-x86_64-3.7/check_libyaml.o checking if libyaml is linkable clang build/temp.macosx-10.13-x86_64-3.7/check_libyaml.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lyaml -o build/temp.macosx-10.13-x86_64-3.7/check_libyaml skipping 'ext/_yaml.c' Cython extension (up-to-date) building '_yaml' extension creating build/temp.macosx-10.13-x86_64-3.7/ext clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c ext/_yaml.c -o build/temp.macosx-10.13-x86_64-3.7/ext/_yaml.o In file included from ext/_yaml.c:271: ext/_yaml.h:10:9: warning: 'PyString_CheckExact' macro redefined [-Wmacro-redefined]
define PyString_CheckExact PyBytes_CheckExact
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/tmp/pip-install-olko9aul/pyyaml/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/tmp/pip-record-3_n6shgj/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-olko9aul/pyyaml/