ancient-vegetable-10556
02/24/2022, 8:17 PMhigh-yak-85899
02/24/2022, 8:18 PMpants test
failure today that we are having trouble reproducing. Seems almost entirely due to pants/pex based on the error log, but would appreciate guidance on making a bug ticket in the right capacity.fast-nail-55400
02/24/2022, 8:18 PMlively-exabyte-12840
02/24/2022, 8:59 PMincalculable-yacht-75851
02/24/2022, 9:28 PMancient-vegetable-10556
02/24/2022, 10:09 PMfast-nail-55400
02/24/2022, 10:12 PMancient-vegetable-10556
02/24/2022, 11:01 PMwonderful-yak-59945
02/24/2022, 11:08 PMancient-vegetable-10556
02/24/2022, 11:11 PMacoustic-librarian-3937
02/25/2022, 12:50 AMcryptography
library. This requires rust and openssl. It fails to compile because it cannot find headers for openssl.
build/temp.macosx-12.1-arm64-3.9/_openssl.c:575:10: fatal error: 'openssl/opensslv.h' file not found
#include <openssl/opensslv.h>
I am surprised by this, because I explicitly set some env variables to avoid this.
$ echo $CPPFLAGS $LDFLAGS $PKG_CONFIG_PATH
-I/opt/homebrew/opt/openssl@3/include -L/opt/homebrew/opt/openssl@3/lib /opt/homebrew/opt/openssl@3/lib/pkgconfig
$ ls /opt/homebrew/opt/openssl@3/include/openssl/opensslv.h
/opt/homebrew/opt/openssl@3/include/openssl/opensslv.h
What should I change to get cargo to look in the right spot for that file?lively-exabyte-12840
02/25/2022, 1:14 PMdoppler run -- ./pants test path/to/test.py
works great (though I still need to configure test/extra_env_vars so that env vars in the Pants env carry over to the env running the tests)echoing-london-29138
02/25/2022, 2:22 PMnice-florist-55958
02/25/2022, 2:26 PMancient-vegetable-10556
02/25/2022, 4:53 PMicy-hair-30586
02/25/2022, 9:01 PM./pants generate-lockfiles --resolve=python-default
. I have ca_certs_path = "/Users/a.../.ca_bundle/certs.pem"
added to pants.toml, but I still get
Updating dependencies
Resolving dependencies...
SSLError
HTTPSConnectionPool(host='<http://pypi.org|pypi.org>', port=443): Max retries exceeded with url: /pypi/prefect/json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)')))
at ~/.cache/pants/named_caches/pex_root/venvs/s/268d4737/venv/lib/python3.7/site-packages/requests/adapters.py:517 in send
I have also set export REQUESTS_CA_BUNDLE=...
to the same file with the certs, just in case.
Is there any other setting I’m missing?kind-hydrogen-975
02/26/2022, 2:57 PMechoing-london-29138
02/28/2022, 2:56 PMbitter-orange-16997
02/28/2022, 3:28 PMlively-exabyte-12840
02/28/2022, 4:20 PMpython_requirement(
name="snowflake",
requirements=[
"snowflake-connector-python==2.7.2",
"snowflake-sqlalchemy==1.3.2"
],
modules=["snowflake"]
)
brief-flag-35586
02/28/2022, 5:59 PMgo: updates to go.mod needed, disabled by -mod=readonly; to update it:
go mod tidy
Thought that it’s because of my local go versions or something, but an example from here works fine on my system, even if delete go.mod and go.sum and create it by myself. What could be the problem. My go.mod looks like:
// private repo
module <http://github.com/{my-org}/{repo}|github.com/{my-org}/{repo}>
go 1.17
require (
<http://github.com/aws/aws-lambda-go|github.com/aws/aws-lambda-go> v1.28.0
<http://github.com/fnproject/fdk-go|github.com/fnproject/fdk-go> v0.0.16
<http://github.com/tencentyun/scf-go-lib|github.com/tencentyun/scf-go-lib> v0.0.0-20211123032342-f972dcd16ff6
)
mysterious-action-44812
02/28/2022, 7:04 PMbusy-vase-39202
02/28/2022, 8:23 PMhigh-energy-55500
02/28/2022, 10:20 PMpantsbuild.pants
requires PyYAML 6 as a minimum requirement? https://github.com/pantsbuild/pants/blob/main/3rdparty/python/requirements.txt#L21
i believe we use this as an optional dev dependency for typing hints, but this conflicts with a few other dependencies, such as sagemaker: https://github.com/aws/sagemaker-python-sdk/blob/dev/setup.py#L55hundreds-father-404
03/01/2022, 12:11 AMbackend_packages
order is respected, which matters a lot for the fmt
goal (e.g. run Autoflake before Black/isort)fresh-cat-90827
03/01/2022, 12:18 AMloud-laptop-17949
03/01/2022, 4:03 AMplain-fireman-49959
03/01/2022, 9:48 AMechoing-london-29138
03/01/2022, 12:02 PMprocess_result = await Get(
FallibleProcessResult,
PexProcess(
importlinter_pex,
argv=[],
description="Running ImportLinter Playbook...",
input_digest=merged_digest,
level=LogLevel.DEBUG,
extra_env={"PYTHONPATH": ":".join(pythonpath)},
cache_scope=ProcessCacheScope.PER_RESTART_SUCCESSFUL,
),
)
lively-exabyte-12840
03/01/2022, 3:30 PM