Getting a build error with Travis CI I never had before with Python v3.7
DBUS Python works fine for Python 3.6, 3.8, 3.9, and 3.10 (in Travis Runners). It’s just 3.7 that is recently broken.
The exact error is as follows:
Collecting dbus-python
Downloading dbus-python-1.3.2.tar.gz (605 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
Traceback (most recent call last):
File "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-moyuvu18/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 923, in get_requires_for_build_wheel
with _project(config_settings) as project:
File "/opt/python/3.7.1/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/tmp/pip-build-env-moyuvu18/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 903, in _project
build_dir=config_settings.get('builddir'),
File "/opt/python/3.7.1/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/tmp/pip-build-env-moyuvu18/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 547, in with_temp_working_dir
yield cls(source_dir, tmpdir, build_dir)
File "/tmp/pip-build-env-moyuvu18/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 424, in __init__
import pyproject_metadata # noqa: F811
File "/tmp/pip-build-env-moyuvu18/overlay/lib/python3.7/site-packages/pyproject_metadata/__init__.py", line 13, in <module>
from typing import Any, DefaultDict, Dict, List, Mapping, Optional, OrderedDict, Tuple, Union
ImportError: cannot import name 'OrderedDict' from 'typing' (/opt/python/3.7.1/lib/python3.7/typing.py)
[end of output]