https://pantsbuild.org/ logo
#general
Title
# general
a

ambitious-student-81104

03/02/2022, 5:16 PM
hi! not sure if anyone else has had this problem before: when I run a pants build with a
fastparquet
dependency, it errors out on
numpy
being installed already:
Copy code
FileExistsError: [Errno 17] File exists: '/private/var/folders/5c/tp4p_z3d2bnc6fb68lth0d4w0000gp/T/process-executionyhk5sS/.tmp/pip-req-build-vkux75ls/.eggs/numpy-1.14.5-py3.7-macosx-10.16-x86_64.egg'
this is python
3.7.10
, pants
2.9.0
.
fastparquet==0.7.1
meanwhile I can
pip install fastparquet==0.7.1
just fine, but it's using a cached wheel. it seems to be a known problem for fastparquet 0.7.1 (github link) but I don't know what exactly the solution is
p

polite-garden-50641

03/02/2022, 5:32 PM
I have seen a similar problem in other packages, sometimes forget to explicitly declare a dependency. in a lot of cases this won't cause any issues with other python environments since that dependency might already be installed into the venv. But with pants being very granular about the 3rd party packages it will break stuff. example: https://github.com/jazzband/django-axes/pull/803 Anyway, the way to work around that is to add that dependency explicitly in the BUILD file. Obviously submitting a patch to the upstream package is also a good idea long term.
h

hundreds-father-404

03/02/2022, 5:43 PM
Hey Horus 🙂
Anyway, the way to work around that is to add that dependency explicitly in the BUILD file.
Like this https://www.pantsbuild.org/docs/python-third-party-dependencies#requirements-with-undeclared-dependencies
7 Views