:wave: Hey folks, I am trying to run a CLI provide...
# general
e
๐Ÿ‘‹ Hey folks, I am trying to run a CLI provided by one of my Python dependencies (BentoML). I can do
pants run 3rdparty/python:common#bentoml
just fine, however the trouble is that I need another Python dependency present as well (
fs-gcsfs
), which
bentoml
doesn't explicitly depend on. Is there some way I can include that dependency, or force Pants to do so? ๐Ÿงต
โœ… 1
I tried
Copy code
pex_binary(
    name="bentoml_gcs",
    dependencies=[
        "3rdparty/python:common#bentoml",
        "3rdparty/python:common#fs-gcsfs",
    ],
    executable=("bentoml"),
)
but this gives me
Copy code
โฏ pants run libs/shared:bentoml_gcs
13:54:33.34 [INFO] Preserving local process execution dir /private/var/folders/z2/877msnyx3qx5bt51vqmgmk540000gq/T/pants-sandbox-M7OxU3 for Building 2 requirements for libs.shared/bentoml_gcs.pex from the 3rdparty/python/default.lock resolve: bentoml==1.2.7, fs-gcsfs@ git+<https://github.com/dvgica/gcsfs@e7d97373280f551722dfe9d81cfe1f9895a05603>
13:54:33.34 [INFO] Completed: Building 2 requirements for libs.shared/bentoml_gcs.pex from the 3rdparty/python/default.lock resolve: bentoml==1.2.7, fs-gcsfs@ git+<https://github.com/dvgica/gcsfs@e7d97373280f551722dfe9d81cfe1f9895a>... (5 characters truncated)
13:54:33.34 [ERROR] 1 Exception encountered:

Engine traceback:
  in `run` goal

ProcessExecutionFailure: Process 'Building 2 requirements for libs.shared/bentoml_gcs.pex from the 3rdparty/python/default.lock resolve: bentoml==1.2.7, fs-gcsfs@ git+<https://github.com/dvgica/gcsfs@e7d97373280f551722dfe9d81cfe1f9895a05603>' failed with exit code 1.
stdout:

stderr:
[Errno 2] No such file or directory: '/private/var/folders/z2/877msnyx3qx5bt51vqmgmk540000gq/T/pants-sandbox-M7OxU3/.tmp/tmpxbm86qok/__pex_executable__.py'
which is a bit mysterious
oh. It just needs to be
script
not
executable
๐Ÿคฆ
w
I think it needs to be never mind, you got there ๐Ÿ˜†