echoing-manchester-70122
05/28/2020, 10:14 PMTraceback (most recent call last):
File "/home/amckenna/.cache/pants/setup/bootstrap-Linux-x86_64/virtualenv-16.4.3/virtualenv.py", line 22, in <module>
import distutils.spawn
ModuleNotFoundError: No module named 'distutils.spawn'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
echoing-manchester-70122
05/28/2020, 10:14 PMechoing-manchester-70122
05/28/2020, 10:14 PMechoing-manchester-70122
05/28/2020, 10:15 PM$ ./pants
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 122 100 122 0 0 10166 0 --:--:-- --:--:-- --:--:-- 10166
100 281 100 281 0 0 5978 0 --:--:-- --:--:-- --:--:-- 5978
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3626k 100 3626k 0 0 22.9M 0 --:--:-- --:--:-- --:--:-- 49.6M
Traceback (most recent call last):
File "/home/amckenna/.cache/pants/setup/bootstrap-Linux-x86_64/virtualenv-16.4.3/virtualenv.py", line 22, in <module>
import distutils.spawn
ModuleNotFoundError: No module named 'distutils.spawn'
./pants: line 170: /home/amckenna/.cache/pants/setup/bootstrap-Linux-x86_64/pants.v1BtqB/install/bin/pip: No such file or directory
./pants: line 171: /home/amckenna/.cache/pants/setup/bootstrap-Linux-x86_64/pants.v1BtqB/install/bin/pip: No such file or directory
New virtual environment successfully created at /home/amckenna/.cache/pants/setup/bootstrap-Linux-x86_64/1.23.0_py38.
./pants: line 193: /home/amckenna/.cache/pants/setup/bootstrap-Linux-x86_64/1.23.0_py38/bin/python: No such file or directory
enough-analyst-54434
05/28/2020, 10:16 PMhundreds-father-404
05/28/2020, 10:16 PMsudo apt install python3-distutils -y
(disclosure: first thing I found on google)echoing-manchester-70122
05/28/2020, 10:16 PM$ python3
Python 3.7.5 (default, Nov 7 2019, 10:50:52)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils.spawn
>>>
echoing-manchester-70122
05/28/2020, 10:16 PMechoing-manchester-70122
05/28/2020, 10:17 PMechoing-manchester-70122
05/28/2020, 10:17 PMhundreds-father-404
05/28/2020, 10:18 PM./pants
script to put Py38 behind Py37. If you use the latest ./pants
script, we do this already: https://github.com/pantsbuild/setup/blob/gh-pages/pants#L110echoing-manchester-70122
05/28/2020, 10:32 PMERROR: Invalid requirement, parse error at "'["pytest'"
echoing-manchester-70122
05/28/2020, 10:32 PM**** Failed to install configparser-5.0.0 (caused by: NonZeroExit("received exit code 1 during execution of `['/usr/bin/python2.7', '-s', '-', 'bdist_wheel', '--dist-dir=/tmp/tmpy_m190mb']` while trying to execute `['/usr/bin/python2.7', '-s', '-', 'bdist_wheel', '--dist-dir=/tmp/tmpy_m190mb']`")
):
stdout:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying src/configparser.py -> build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/backports
copying src/backports/__init__.py -> build/lib.linux-x86_64-2.7/backports
creating build/lib.linux-x86_64-2.7/backports/configparser
copying src/backports/configparser/helpers.py -> build/lib.linux-x86_64-2.7/backports/configparser
copying src/backports/configparser/__init__.py -> build/lib.linux-x86_64-2.7/backports/configparser
running egg_info
stderr:
error: 'egg_base' must be a directory name (got `src`)
enough-analyst-54434
05/28/2020, 10:36 PMRROR: Invalid requirement, parse error at "'["pytest'"
coming from? Can you paste the exact snippet you removed? Is that from a pants.ini entry addition described above?echoing-manchester-70122
05/28/2020, 10:37 PMechoing-manchester-70122
05/28/2020, 10:37 PM[pytest]
timeout_requirements: pytest-timeout==1.2.0
requirements: ["pytest<3.7,>=3.0.7", "setuptools<45"]
cov_requirements: pytest-cov==2.4.0
enough-analyst-54434
05/28/2020, 10:39 PMenough-analyst-54434
05/28/2020, 10:39 PMhundreds-father-404
05/28/2020, 10:40 PMunittest2
hundreds-father-404
05/28/2020, 10:40 PMenough-analyst-54434
05/28/2020, 10:40 PMechoing-manchester-70122
05/28/2020, 10:40 PMechoing-manchester-70122
05/28/2020, 10:41 PMException message: Package SourcePackage('file:///mnt/efs-home/amckenna/code/python-commons/.pants.d/python-setup/resolved_requirements/CPython-2.7.15/configparser-5.0.0.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
hundreds-father-404
05/28/2020, 10:41 PMpytest_plugins
. https://github.com/pantsbuild/pants/blob/e162626f79020da3e4b8b3e7b9b202ff50bb7169/src/python/pants/backend/python/subsystems/pytest.py#L17-L27hundreds-father-404
05/28/2020, 10:42 PM[pytest]
pytest_plugins = +["setuptools<45"]
enough-analyst-54434
05/28/2020, 10:42 PMhundreds-father-404
05/28/2020, 10:42 PMechoing-manchester-70122
05/28/2020, 10:43 PMhundreds-father-404
05/28/2020, 10:44 PMhundreds-father-404
05/28/2020, 10:44 PM=
because that’s what TOML uses