build fails with python 3.7
Brought to you by:
anthon
I am in the process of upgrading python to 3.7 for Alpine Linux, but get into an error when running.python3 setup.py build
:
sys.argv ['setup.py', 'build'] Warning: 'keywords' should be a list, got type 'NoneType' Traceback (most recent call last): File "setup.py", line 922, in <module> main() File "setup.py", line 910, in main setup(**kw) File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.7/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/usr/lib/python3.7/site-packages/setuptools/dist.py", line 447, in __init__ k: v for k, v in attrs.items() File "/usr/lib/python3.7/distutils/dist.py", line 267, in __init__ getattr(self.metadata, "set_" + key)(val) File "/usr/lib/python3.7/distutils/dist.py", line 1203, in set_keywords self.keywords = _ensure_list(value, 'keywords') File "/usr/lib/python3.7/distutils/dist.py", line 40, in _ensure_list value = list(value) TypeError: 'NoneType' object is not iterable
(originally posted on 2019-04-15 at 08:21:19 by ncopa <ncopa@bitbucket>)
None
(originally posted on 2019-04-15 at 08:21:48 by ncopa <ncopa@bitbucket>)
I cannot reproduce this:
Make sure the
pip
andsetuptools
in your (virtual) environment are up-to-date. Retry this in a clean virtualenv as above and include the output ofpip list
ran after you get the error (assuming it persists), and the output ofpython --version
(originally posted on 2019-04-15 at 08:47:24)
Does this use the
setup.py
?What happens if you do
python3 setup.py build
?I was not able to reproduce with pip either.
(originally posted on 2019-04-15 at 10:25:24 by ncopa <ncopa@bitbucket>)
I am now using this as a workaround:
(originally posted on 2019-04-15 at 10:26:21 by ncopa <ncopa@bitbucket>)