cool-account-59189
06/16/2023, 9:18 PM[tool.poetry.dependencies]
databricks-connect = "~=11.3"
poetry update handles this ok
pants generate-lockfiles does not...it returns an error as follows:
❯ pants generate-lockfiles
15:58:36.52 [INFO] Initialization options changed: reinitializing scheduler...
15:58:45.43 [INFO] Scheduler initialized.
16:06:31.66 [INFO] Completed: Generate lockfile for python-default
16:06:31.68 [ERROR] 1 Exception encountered:
Engine traceback:
in `generate-lockfiles` goal
ProcessExecutionFailure: Process 'Generate lockfile for python-default' failed with exit code 1.
stdout:
stderr:
Expected one top-level project directory to be extracted from /private/var/folders/t1/vn8r4hys02n0q0cn7jjsg_lw0000gp/T/pants-sandbox-bGVGvP/.tmp/tmpo8sydw0u/usr.local.var.pyenv.versions.3.9.5.bin.python3.9/databricks-connect-11.3.14.tar.gz, found 11: delta, PKG-INFO, DBCONNECT_LICENSE.txt, pyspark, <http://MANIFEST.in|MANIFEST.in>, README.md, setup.py, databricks_connect.egg-info, lib, deps, setup.cfg
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
The pants version is:
❯ pants --version
2.16.0rc7
cool-account-59189
06/16/2023, 9:22 PMcool-account-59189
06/16/2023, 9:24 PMbroad-processor-92400
06/17/2023, 8:49 AM[python]
pip_version = “23.0.1”
broad-processor-92400
06/17/2023, 8:52 AMcool-account-59189
06/20/2023, 12:18 PMcool-account-59189
06/20/2023, 12:24 PM[python]
#enable_resolves = true # This one came from <https://www.pantsbuild.org/docs/python-lockfiles>
interpreter_constraints = ['==3.9.5']
pip_version = "23.0.1"
Nevermind...yeah apparently that just turned off generating the lockfile 😉cool-account-59189
06/20/2023, 1:34 PMenough-analyst-54434
06/20/2023, 2:48 PMenough-analyst-54434
06/20/2023, 2:50 PMcool-account-59189
06/20/2023, 2:51 PMcool-account-59189
06/20/2023, 2:51 PM[tool.poetry.dependencies]
....
# databricks-connect = "~=11.3"
delta-spark = "2.1.0" # Not directly visible in the pip list of the databricks environment, but there was a comment that said this is the what is running there.
pyspark = "3.3.0" # pinned to the same version as our databricks environment
...
enough-analyst-54434
06/20/2023, 2:52 PMcool-account-59189
06/20/2023, 2:53 PM