bitter-ability-32190
01/05/2022, 12:36 PMjoshuacannon@CEPHANDRIUS:~/work/pants$ set RUST_BACKTRACE=1
joshuacannon@CEPHANDRIUS:~/work/pants$ ./pants peek src/python/pants/backend/python/dependency_inference/scripts/BUILD
06:36:15.38 [ERROR] panic at 'called `Result::unwrap()` on an `Err` value: PyErr { type: <class 'TypeError'>, value: TypeError("'int' object cannot be converted to 'PyString'"), traceback: None }', src/externs/mod.rs:145
06:36:15.38 [ERROR] Please set RUST_BACKTRACE=1, re-run, and then file a bug at <https://github.com/pantsbuild/pants/issues>.
BUILD
file that seemingly makes this unhappy is:
resources(name="resources", sources=["*.py"])
# Also expose scripts as `python_sources` so they get formatted/linted/checked
python_sources()
0887ee2cd4adbfce6a488382fbd0580cbc7e81f0
BUILD
file might be a red herringProcess
and set an env
value to an int, this will happen.mypy
would've told me, but the dogfooding made it impossible to run mypy
without first hitting this error 😂witty-crayon-22786
01/05/2022, 5:13 PMpants
script in the repobitter-ability-32190
01/05/2022, 5:15 PMcurved-television-6568
01/05/2022, 5:43 PMwitty-crayon-22786
01/05/2022, 5:44 PM./pants package src/python/pants/bin:pants
will build the pex, and then you can run it with ./dist/*.pex
busy-vase-39202
01/05/2022, 7:20 PMwitty-crayon-22786
01/05/2022, 7:21 PM