aloof-angle-91616
05/29/2019, 2:26 PMpip3 install setuptools==40.0.0
, which i didn't try to push a fix for because i thought it was isolated to the environment i was in, and it was running pants from source -- could you let me know if that does anything?flaky-photographer-75744
05/29/2019, 2:27 PMalexis@alexis master ● pip3 install setuptools==40.0.0
Collecting setuptools==40.0.0
Cache entry deserialization failed, entry ignored
Downloading <https://files.pythonhosted.org/packages/ff/f4/385715ccc461885f3cedf57a41ae3c12b5fec3f35cce4c8706b1a112a133/setuptools-40.0.0-py2.py3-none-any.whl> (567kB)
100% |████████████████████████████████| 573kB 2.2MB/s
Installing collected packages: setuptools
Successfully installed setuptools-40.0.0
alexis@alexis master ● ./pants ng-killall
Traceback (most recent call last):
File "/home/alexis/.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/alexis/.cache/pants/setup/bootstrap-Linux-x86_64/pants.90NBRR/install/bin/pip: No such file or directory
./pants: line 171: /home/alexis/.cache/pants/setup/bootstrap-Linux-x86_64/pants.90NBRR/install/bin/pip: No such file or directory
New virtual environment successfully created at /home/alexis/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0_py36.
./pants: line 193: /home/alexis/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0_py36/bin/python: No such file or directory
aloof-angle-91616
05/29/2019, 2:28 PMaloof-angle-91616
05/29/2019, 2:28 PMflaky-photographer-75744
05/29/2019, 2:29 PMaloof-angle-91616
05/29/2019, 2:30 PM> rm -rf ~/.cache/pants/setup
> PEX_VERBOSE=9 ./pants ... (whatever pants command you were running just now)
flaky-photographer-75744
05/29/2019, 2:33 PMPEX_VERBOSE=9 ./pants ng-killall
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 122 100 122 0 0 231 0 --:--:-- --:--:-- --:--:-- 231
100 281 100 281 0 0 417 0 --:--:-- --:--:-- --:--:-- 417
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 3626k 100 3626k 0 0 2841k 0 0:00:01 0:00:01 --:--:-- 36.0M
Traceback (most recent call last):
File "/home/alexis/.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/alexis/.cache/pants/setup/bootstrap-Linux-x86_64/pants.1sNjRg/install/bin/pip: No such file or directory
./pants: line 171: /home/alexis/.cache/pants/setup/bootstrap-Linux-x86_64/pants.1sNjRg/install/bin/pip: No such file or directory
New virtual environment successfully created at /home/alexis/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0_py36.
./pants: line 193: /home/alexis/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0_py36/bin/python: No such file or directory
witty-crayon-22786
05/31/2019, 12:59 AMpants
script?witty-crayon-22786
05/31/2019, 1:00 AMwitty-crayon-22786
05/31/2019, 1:01 AMdev
versions in general. would stick to either rcs
or final versions.flaky-photographer-75744
05/31/2019, 7:35 AM1.15.0
version. It's just I tracked the issue back to the 1.15.0.dev0
versionhundreds-father-404
05/31/2019, 3:54 PMpants.ini
under the section GLOBAL
the entry pants_runtime_python_version: 2.7
?
This is a deprecated option that will tell Pants to run the tool with Python 2.7 (different than what is used to run your actual code / tests). Right now, it looks like it’s using Python 3.6.flaky-photographer-75744
05/31/2019, 3:56 PMhundreds-father-404
05/31/2019, 3:59 PMhundreds-father-404
05/31/2019, 4:04 PMapt-get install python3-distutils
, remove the pants_runtime_python_version
line, and try to run ./pants
? No worries if you can’t install things like that in your environment.flaky-photographer-75744
06/03/2019, 7:31 AMflaky-photographer-75744
06/03/2019, 7:31 AMflaky-photographer-75744
06/03/2019, 8:48 AM[python-setup]
interpreter_constraints: ["CPython==2.7.*,<3"]
option to fix the compile goal which results in the following error otherwise:
10:47:10 00:01 [conan-prep]**** Failed to install setuptools-40.4.3 (caused by: NonZeroExit("received exit code 1 during execution of `['/usr/bin/python3.6', '-', 'bdist_egg', '--dist-dir=/tmp/tmpLsVFAN']` while trying to execute `['/usr/bin/python3.6', '-', 'bdist_egg', '--dist-dir=/tmp/tmpLsVFAN']`",)
):
stdout:
stderr:
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 5, in <module>
import distutils.core
ModuleNotFoundError: No module named 'distutils.core'
flaky-photographer-75744
06/03/2019, 8:48 AMflaky-photographer-75744
06/11/2019, 8:03 AMhundreds-father-404
06/11/2019, 2:16 PMflaky-photographer-75744
06/11/2019, 2:19 PMhundreds-father-404
06/20/2019, 6:54 PMdistutils
installed, which is what’s causing this error.
Everyone recommends fixing it via apt-get install python3-distutils
. I know that didn’t work last time - I’m wondering what was the output when you ran apt-get install python3-distutils
?
Could you also try this for me please? python3.6 -c 'import distutils'
and the same with python3.7
flaky-photographer-75744
06/21/2019, 7:25 AMflaky-photographer-75744
06/21/2019, 7:25 AMvirtualenv venv --python=python3.6
i run into File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 25, in <module>
import distutils.spawn
ModuleNotFoundError: No module named 'distutils.spawn'
and not when running virtualenv venv --python=python3.7
flaky-photographer-75744
06/21/2019, 7:43 AMhundreds-father-404
06/21/2019, 1:48 PM