rapid-crayon-8232
12/11/2019, 10:01 PM22:46:20 00:00 [main]
(To run a reporting server: ./pants server)
22:46:21 00:01 [setup]
22:46:21 00:01 [parse]
Executing tasks in goals: gen -> pyprep -> test
22:46:21 00:01 [gen]
22:46:21 00:01 [thrift-py]
22:46:21 00:01 [py-thrift-namespace-clash-check]
22:46:21 00:01 [pyprep]
22:46:21 00:01 [interpreter]
22:46:21 00:01 [build-local-dists]
22:46:21 00:01 [requirements]
22:46:21 00:01 [cache]
No cached artifacts for 22 targets.
Invalidated 22 targets.pex: Resolving for:
pex: Isolating pex in Chroot(/var/folders/n6/cx4l_npd6s39czmkmyk2p3tc0000gn/T/tmpxvvj_a1o {fs:}): 299.4ms
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/n6/cx4l_npd6s39czmkmyk2p3tc0000gn/T/pip-download-wa2d7k0w/pycocotools/PythonAPI/setup.py'"'"'; __file__='"'"'/private/var/folders/n6/cx4l_npd6s39czmkmyk2p3tc0000gn/T/pip-download-wa2d7k0w/pycocotools/PythonAPI/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg egg_info --egg-base /private/var/folders/n6/cx4l_npd6s39czmkmyk2p3tc0000gn/T/pip-download-wa2d7k0w/pycocotools/PythonAPI/pip-egg-info
cwd: /private/var/folders/n6/cx4l_npd6s39czmkmyk2p3tc0000gn/T/pip-download-wa2d7k0w/pycocotools/PythonAPI
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/n6/cx4l_npd6s39czmkmyk2p3tc0000gn/T/pip-download-wa2d7k0w/pycocotools/PythonAPI/setup.py", line 2, in <module>
import numpy as np
ModuleNotFoundError: No module named 'numpy'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Waiting for background workers to finish.
22:46:43 00:23 [complete]
FAILURE
ERROR: pid: 94702 -> /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -s -m pip --disable-pip-version-check --isolated --exists-action i -q --cache-dir /Users/XXX/.pants.d/python-setup/resolved_requirements download --dest /var/folders/n6/cx4l_npd6s39czmkmyk2p3tc0000gn/T/tmpvp9nqvlx/resolved_dists/cp-37-cp37m --index-url <https://pypi.org/simple/> Cython==0.29.14 numpy==1.17.3 pycocotools@ git+<https://github.com/cocodataset/cocoapi.git@f67e873971bcf289c994e061c5bc359d0bbe8ff7#subdirectory=PythonAPI> raised Executing /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -s -m pip --disable-pip-version-check --isolated --exists-action i -q --cache-dir /Users/XXX/.pants.d/python-setup/resolved_requirements download --dest /var/folders/n6/cx4l_npd6s39czmkmyk2p3tc0000gn/T/tmpvp9nqvlx/resolved_dists/cp-37-cp37m --index-url <https://pypi.org/simple/> Cython==0.29.14 numpy==1.17.3 pycocotools@ git+<https://github.com/cocodataset/cocoapi.git@f67e873971bcf289c994e061c5bc359d0bbe8ff7#subdirectory=PythonAPI> failed with 1
rapid-crayon-8232
12/11/2019, 10:03 PMhundreds-father-404
12/11/2019, 10:04 PMpycocotools
you also explicitly depend on numpy
and Cython
?rapid-crayon-8232
12/11/2019, 10:06 PMnumpy
and Cython
, and it still tries to install everything at the same timeenough-analyst-54434
12/11/2019, 10:10 PMenough-analyst-54434
12/11/2019, 10:11 PMenough-analyst-54434
12/11/2019, 10:11 PMrapid-crayon-8232
12/11/2019, 10:15 PMrapid-crayon-8232
12/12/2019, 2:57 PMdependencies=[],
in python_requirement_library
then ?rapid-crayon-8232
12/12/2019, 2:59 PMnumpy
in my 3rdpary
package, and I want pycocotools
to be built with that version of numpy
, so that there will be no conflict between numpy
used to build and numpy
used later in the system.enough-analyst-54434
12/12/2019, 3:51 PM