wide-midnight-78598
03/23/2022, 6:53 PMhundreds-father-404
03/23/2022, 9:05 PMcurved-television-6568
03/24/2022, 9:26 AMeager-dress-66405
03/24/2022, 4:16 PMbetter-sunset-63499
03/24/2022, 7:36 PMpytest
with the pytest_dynamodb
plugin which requires the pytest runner to spin off a subprocess. I'm having an issue where even providing the full /usr/bin/java
path, Pants' pytest runner can't find the binarydry-analyst-73584
03/24/2022, 8:57 PMhundreds-father-404
03/25/2022, 5:21 AMmain
branch, where you install from a file on the filesystem? John just landed support for VCS/git requirements with Pex lockfiles 🎉 We're trying to figure out how to prioritize local requirementsprehistoric-afternoon-67621
03/25/2022, 4:27 PM./pants fmt ::
with black
to run on my BUILD files? I've seen reference to that ability but not sure how to wire it up. 😇loud-laptop-17949
03/25/2022, 6:43 PMhelp
command?sparse-lifeguard-95737
03/25/2022, 6:51 PMmysterious-motherboard-97366
03/26/2022, 12:12 AMincalculable-yacht-75851
03/27/2022, 7:09 AMrapid-exabyte-76685
03/27/2022, 8:24 AMPIP_NO_BINARY
for a single dependency, via an override
key on poetry_requirements
etc? I'm currently developing on an M1 and there is currently an issue with the grpc package and the way its binary is shipped (see https://groups.google.com/g/grpc-io/c/9iM4SPpOyC8 for a great summary).high-yak-85899
03/28/2022, 2:40 AMbitter-ability-32190
03/28/2022, 2:50 PMincalculable-yacht-75851
03/28/2022, 5:05 PMwide-zoo-86070
03/28/2022, 6:50 PMpants_version = "2.10.0+gitb27a00dd"
.
BuildConfigurationError: Version mismatch: Requested version was 2.10.0, our version is 2.10.0+gitb27a00dd.
gorgeous-eve-12553
03/28/2022, 7:29 PMbitter-ability-32190
03/28/2022, 7:39 PMgorgeous-eve-12553
03/28/2022, 10:13 PMwide-midnight-78598
03/28/2022, 11:42 PMfreezing-area-97131
03/29/2022, 12:45 AM./pants --level=debug binary ...
What does this mean and how to fix it?
00:24:57 [DEBUG] urllib3.connectionpool:pid=2668: <https://files.pythonhosted.org:443> "GET /packages/64/de/7e79ee9dd4fad3750f3fd6a1b4f2c7dcece54c486e765747e1593f8df029/googleads-15.0.1.tar.gz HTTP/1.1" 200 53290
00:24:57 [DEBUG] pants.process.lock:pid=2668: releasing lock: <pants.process.lock.OwnerPrintingInterProcessFileLock object at 0x7cf0925dd310>
Dumping requirement: PythonRequirement(jenkinsapi==0.3.9)
Waiting for background workers to finish.
00:24:58 00:17 [complete]
timestamp: 2022-03-29T00:24:58.083088
Exception caught: (pex.archiver.UnpackError) (backtrace omitted)
Exception message: Could not extract /tmp/tmpObxfk2/myproject.common-1.0.tar.gz
FAILURE
Error: Process completed with exit code 1.
incalculable-yacht-75851
03/29/2022, 4:19 AMdocker compose
in conjunction with PEX. For example, I have a common "logger" package which I want all of my services to use. The best way to deploy "logger" as a dependency of these services is in a PEX file. (Or maybe there's another way?) I want to use docker compose
to run my entire codebase (front end on port 8080, various microservices, postgresql on port 5432, etc.) Any suggestions, ideas, or otherwise?rapid-exabyte-76685
03/29/2022, 4:46 AM./pants test
to bootstrap, build the venvs, and run the tests and find I have continuous loop...
14:39:12.61 [INFO] Filesystem changed during run: retrying `Test` in 500ms...
14:39:12.64 [INFO] Canceled: Building requirements.pex with 4 requirements: <requirements elided>
14:40:12.36 [INFO] Filesystem changed during run: retrying `Test` in 500ms...
14:40:12.39 [INFO] Canceled: Building requirements.pex with 4 requirements:
<requirements elided>
freezing-area-97131
03/29/2022, 6:57 AM1.17.0
. Now I am at 1.23.0
, and I ran into this error when running ./pants test
, which I have encountered before and solved by specifying the version of coverage
under [pytest]
in pants.ini
.
No cached artifacts for 254 targets.
Invalidated 254 targets.06:44:34 [WARN] /home/cedriczheng/.cache/pants/setup/bootstrap-Linux-x86_64/1.23.0_py36/lib/python3.6/site-packages/pants/backend/python/tasks/pytest_prep.py:92: DeprecationWarning: DEPRECATED: Pants defaulting to a Python 2-compatible Pytest version will be removed in version 1.25.0.dev2.
Pants will soon start defaulting to Pytest 5.x, which no longer supports running tests with Python 2. In preparation for this change, you should explicitly set what version of Pytest to use in your `pants.ini` under the section `pytest`.
If you need to keep running tests with Python 2, set `version` to `pytest>=4.6.6,<4.7` (the current default). If you don't have any tests with Python 2 and want the newest Pytest, set `version` to `pytest>=5.2.4`.
return PyTest.global_instance().get_requirement_strings()
06:44:34 [WARN] /home/cedriczheng/.cache/pants/setup/bootstrap-Linux-x86_64/1.23.0_py36/lib/python3.6/site-packages/pants/backend/python/tasks/pytest_prep.py:92: DeprecationWarning: DEPRECATED: Pants defaulting to a Python 2-compatible Pytest version will be removed in version 1.25.0.dev2.
Pants will soon start defaulting to Pytest 5.x, which no longer supports running tests with Python 2. In preparation for this change, you should explicitly set what version of Pytest to use in your `pants.ini` under the section `pytest`.
If you need to keep running tests with Python 2, set `version` to `pytest>=4.6.6,<4.7` (the current default). If you don't have any tests with Python 2 and want the newest Pytest, set `version` to `pytest>=5.2.4`.
return PyTest.global_instance().get_requirement_strings()
**** Failed to install coverage-6.3.2 (caused by: NonZeroExit("received exit code 1 during execution of `['/usr/bin/python2.7', '-s', '-', 'bdist_wheel', '--dist-dir=/tmp/tmp8zl5tznp']` while trying to execute `['/usr/bin/python2.7', '-s', '-', 'bdist_wheel', '--dist-dir=/tmp/tmp8zl5tznp']`",)
):
stdout:
stderr:
Traceback (most recent call last):
File "<stdin>", line 14, in <module>
File "<string>", line 80
classifier_list.append(f"Development Status :: {devstat}")
^
SyntaxError: invalid syntax
Waiting for background workers to finish.
23:44:37 00:47 [complete]
FAILURE
ERROR: Package SourcePackage('file:///home/cedriczheng/myrepo/.pants.d/python-setup/resolved_requirements/CPython-2.7.12/coverage-6.3.2.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
(Use --print-exception-stacktrace to see more error details.)
But in previous version (1.22 or 1.21), the instructions suggested me to remove those settings. If I put them back, I will get this error instead:
23:51:52 00:04 [complete]
FAILURE
ERROR: Could not satisfy all requirements for coverage==5.0.3:
coverage==5.0.3, coverage>=5.2.1(from: pytest-cov<3,>=2.8.1)
I don’t know what to do now…rapid-exabyte-76685
03/29/2022, 9:22 AM[WARN] The target src/xyz.py imports `Abc`, but Pants cannot safely infer a dependency because more than one target owns this module, so it is ambiguous which to use: ['src/abc/__init__.py', 'test/abc/__init__.py'].
test/abc/__init__.py
is blank. The source for Abc
is in src/abc/__init__.py
. src/xyz.py
contains from abc import Abc
My repo has src
and test
roots that largely mirror each other in their hierarchy. Is this a bad pattern? Is there a way to default the dependency inference to consider the src
root over the test
root - unless there is an explicit override?
Also is there a way to retest the whole codebase for this class of error as it appears to appear for one invocation of ./pants dependencies src/xyz.py
but then disappears (and I think I have other similar issues that I would like to resolve)happy-kitchen-89482
03/29/2022, 1:45 PMcoverage-6.3.2
uses f-strings in its setup.py, so it cannot run on python 2.7.happy-kitchen-89482
03/29/2022, 1:45 PMhappy-kitchen-89482
03/29/2022, 1:45 PMcoverage==5.0.3
it looks likehappy-kitchen-89482
03/29/2022, 1:47 PMcoverage>=5.2.1
requirement of the version of pytest-cov
you're using