hundreds-father-404
11/18/2021, 12:30 AMwitty-crayon-22786
11/18/2021, 12:53 AMbusy-vase-39202
11/18/2021, 12:59 AMhundreds-father-404
11/18/2021, 12:59 AMdazzling-diamond-4749
11/18/2021, 6:14 AM2.8.0
and I'm running into some trouble with conftest
My conftest would complain about missing module, if I run ./pants test path/to/my/test.py:tests
But when I run the same target in ./pants repl path/to/my/test.py:tests
and import the same missing module, python is able to find the module.modern-wolf-36228
11/18/2021, 2:01 PMmodern-wolf-36228
11/18/2021, 2:03 PMpip install mmcv-full -f <https://download.openmmlab.com/mmcv/dist/cu110/torch1.7.0/index.html>
How can I map the -f ...
? I'm building a pex file.happy-kitchen-89482
11/18/2021, 5:21 PMbusy-vase-39202
11/18/2021, 6:37 PMfull-toothbrush-75676
11/18/2021, 7:35 PMpants run
on a pex_binary
that runs gunicorn
and have noticed that Pants doesn’t stop the pex process after I interrupt it with ctrl + c. Has anyone run into something similar in the past? (Am I missing something obvious?)loud-laptop-17949
11/18/2021, 10:01 PMmodern-wolf-36228
11/19/2021, 11:13 AM"Error storing Digest { hash: Fingerprint<8210e4baffa32e2b7f531d76924f977d15dda07da621707329d3d2bdacd7e886>, size_bytes: 2167569207 }: Input/output error"
Is there something I can do if the pex file is huge?modern-wolf-36228
11/19/2021, 11:20 AM./pants package
command?modern-wolf-36228
11/19/2021, 1:25 PM13:56:41.19 [INFO] Completed: Building src.python.deep_inference/bin.pex with 6 requirements: aiofiles==0.5.0, detectron2==0.4, fastapi==0.63.0, torch==1.8.0+cu111, transformers==4.10.2, tritonclient[http]==2.9.0
13:56:41.19 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Building src.python.deep_inference/bin.pex with 6 requirements: aiofiles==0.5.0, detectron2==0.4, fastapi==0.63.0, torch==1.8.0+cu111, transformers==4.10.2, tritonclient[http]==2.9.0' failed with exit code 1.
stdout:
stderr:
pid 202552 -> /home/marcelo/.cache/pants/named_caches/pex_root/venvs/a2165d3f6719b079b1c03853efddd88f871936b7/624fc382ea9d2957658d79aa06c6f6fdd35f7a29/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /home/marcelo/.cache/pants/named_caches/pex_root --log /tmp/process-executionPLvrEj/.tmp/tmp9bx7lq25/pip.log download --dest /tmp/process-executionPLvrEj/.tmp/tmp2uh7yi3y/home.marcelo.anaconda3.envs.extract-monorepo.bin.python3.8 aiofiles==0.5.0 detectron2==0.4 fastapi==0.63.0 torch==1.8.0+cu111 transformers==4.10.2 tritonclient[http]==2.9.0 --index-url <https://pypi.org/simple/> --find-links <https://download.pytorch.org/whl/torch_stable.html> --find-links <https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.8/index.html> --find-links <https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html> --retries 5 --timeout 15 exited with -9 and STDERR:
None
stale-nightfall-29801
11/19/2021, 1:25 PMresources
out of a relocated_files
? I've got a folder in /library/stuff
with files I need in multiple projects. Can I relocate them into those projects with relocated_files
then turn them into resources that will be packaged (at those new, relocated, paths)nice-florist-55958
11/19/2021, 3:37 PMbitter-ability-32190
11/19/2021, 4:01 PMr/programming
a while ago on Slack vs Forums, linking to a blog post:
https://www.reddit.com/r/programming/comments/qpz8jz/you_should_use_forums_rather_than_slackdiscord_to/
https://www.mooreds.com/wordpress/archives/3451
The blog post suggest forums are better because (filtering to the first two, the other points IMO are less important):
• Slack Free plan has limited history, so information is lossy
• Google can't index Slack chats
However, Reddit comments do highlight that Slack is free and easy and forums don't have an equivalent "free-and-easy" drop-in.
I wonder how much support could be lifted from the devs here if Google was able to index the answers y'all provide to questions 🤔
(Obviously there's no silver bullet, and Slack is great for a ton of things. Just food for thought. Maybe there's a slack Q&A bot with fancy AI stuff? Who knows)dazzling-diamond-4749
11/19/2021, 5:51 PMrapid-bird-79300
11/19/2021, 7:13 PMbash-3.2$ pip3 install pantsbuild.pants==2.7.0 --verbose
Using pip 21.3.1 from /Users/dinesh/.pyenv/versions/3.9.5/lib/python3.9/site-packages/pip (python 3.9)
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants==2.7.0 (from versions: 0.0.17, 0.0.18, 0.0.20, 0.0.21, 0.0.22, 0.0.23, 0.0.24, 0.0.25, 0.0.26, 0.0.27, 0.0.28, 0.0.29, 0.0.30, 0.0.31, 0.0.32, 0.0.33, 0.0.34, 0.0.35, 0.0.36, 0.0.37, 0.0.38, 0.0.39, 0.0.40, 0.0.41, 0.0.42, 0.0.43, 0.0.44, 0.0.45, 0.0.46, 0.0.47, 0.0.48, 0.0.49, 0.0.50, 0.0.51, 0.0.52, 0.0.53, 0.0.54, 0.0.55, 0.0.56, 0.0.57, 0.0.58, 0.0.59, 0.0.60, 0.0.61, 0.0.62, 0.0.63, 0.0.64, 0.0.65, 0.0.66, 0.0.67, 0.0.68, 0.0.69, 0.0.70, 0.0.71, 0.0.72, 0.0.73, 0.0.74, 0.0.75, 0.0.76, 0.0.77, 0.0.79, 0.0.80, 0.0.81, 0.0.82, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.15.0, 1.16.0, 1.17.0, 1.18.0, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.23.0, 1.24.0, 1.25.0, 1.26.0, 1.27.0, 1.28.0)
ERROR: No matching distribution found for pantsbuild.pants==2.7.0
any ideas why the package cannot be found or a good way to debug this?busy-vase-39202
11/19/2021, 7:24 PMpowerful-boots-1234
11/19/2021, 7:27 PMloud-laptop-17949
11/19/2021, 9:48 PMbroad-monkey-41613
11/19/2021, 11:48 PMplatform darwin -- Python 3.6.5, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /private/var/folders/t2/h7w2qkz95jj9pwg9w87q7tc00000gp/T/process-executionRbwpkq
plugins: cov-3.0.0
collected 0 items / 1 error
==================================== ERRORS ====================================
_ ERROR collecting python/monitor_spot_instances/tests/test_monitor_spot_instances.py _
ImportError while importing test module '/private/var/folders/t2/h7w2qkz95jj9pwg9w87q7tc00000gp/T/process-executionRbwpkq/python/monitor_spot_instances/tests/test_monitor_spot_instances.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Users/cris/.pyenv/versions/3.6.5/lib/python3.6/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
python/monitor_spot_instances/tests/test_monitor_spot_instances.py:4: in <module>
import boto3
E ModuleNotFoundError: No module named 'boto3'
- generated xml file: /private/var/folders/t2/h7w2qkz95jj9pwg9w87q7tc00000gp/T/process-executionRbwpkq/python.monitor_spot_instances.tests.test_monitor_spot_instances.py.xml -
=========================== short test summary info ============================
ERROR python/monitor_spot_instances/tests/test_monitor_spot_instances.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.15s ===============================
𐄂 python/monitor_spot_instances/tests/test_monitor_spot_instances.py failed.
All my requirements (boto
) reside within the monitor_spot_instances
directory and have a BUILD
file with python_requirements()
generated in itbroad-monkey-41613
11/19/2021, 11:48 PMpython_tests()
broad-monkey-41613
11/19/2021, 11:49 PMpython_requirements(requirements_relpath="../requirements.txt")
broad-monkey-41613
11/19/2021, 11:49 PMbusy-vase-39202
11/20/2021, 10:46 PMhappy-pizza-30507
11/21/2021, 12:53 PMpants lint
. I notice that pants 2.9.0.dev2 uses pylint 2.11.0+, which supports --output
option for generating report file. I have that specified as [pylint].args = "--output=./pylint.report.txt"
in pants.toml. I observe that the output isn't printed on the console but, after the run, I can't find the generated report anywhere under the project root. Maybe I forgot to check somewhere else?fast-terabyte-66624
11/21/2021, 9:31 PMTraceback (most recent call last):
File "/Users/foobar/.cache/pants/setup/bootstrap-Darwin-arm64/1.30.4_py38/bin/pants", line 5, in <module>
from pants.bin.pants_loader import main
ModuleNotFoundError: No module named 'pants'
rich-church-77699
11/22/2021, 11:41 AM