Nick James
08/21/2023, 8:01 PMError: buildx failed with: ERROR: failed to solve: process "/bin/sh -c dagster-cloud --version" did not complete successfully: exit code: 127
I’ve tried having dagster-cloud in both the setup.py and requirements.txt files, but it doesn’t seem to install the library when the action builds its container. Hoping it’s just a simple config I’m missing, and I’m pointing in the wrong place.
Here’s my dagster_cloud.yml
file
locations:
- location_name: swingleft_dagster
code_source:
package_name: swingleft_dagster
and here’s my setup.py inside the dagster location:
from setuptools import find_packages, setup
setup(
name="swingleft_dagster",
packages=find_packages(exclude=["swingleft_dagster_tests"]),
install_requires=[
"dagster",
"dagster-cloud",
],
extras_require={"dev": ["dagster-webserver", "pytest"]},
)
and here’s the directory structure for the project (this is my DBT project that I’m adding dagster to, but just including the dagster stuff here for now as that’s not relevant yet)
.
├── README.md
└── swingleft-dagster
├── README.md
├── dagster_cloud.yaml
├── analytics.hackernews
├── pyproject.toml
├── setup.cfg
├── setup.py
├── swingleft_dagster
│ ├── __init__.py
│ ├── assets.py
│ ├── requirements.txt
│ └── resources
│ ├── __init__.py
├── swingleft_dagster.egg-info
│ ├── PKG-INFO
│ ├── SOURCES.txt
│ ├── dependency_links.txt
│ ├── requires.txt
│ └── top_level.txt
└── swingleft_dagster_tests
├── __init__.py
└── test_assets.py
Nick James
08/21/2023, 8:02 PM=> ERROR [9/9] RUN if ! dagster-cloud --version; then echo "Could not find the 0.3s
------
> [9/9] RUN if ! dagster-cloud --version; then echo "Could not find the dagster-cloud package. Make sure you include the dagster-cloud package in your setup.py or requirements.txt file to ensure that it is installed as part of your workspace."; exit 1; fi:
#14 0.245 /bin/sh: 1: dagster-cloud: not found
#14 0.246 Could not find the dagster-cloud package. Make sure you include the dagster-cloud package in your setup.py or requirements.txt file to ensure that it is installed as part of your workspace.
ben
08/21/2023, 8:46 PMdagster-cloud
also found in the requrements.txt
?Nick James
08/21/2023, 8:46 PMNick James
08/21/2023, 8:47 PMdagster_cloud.yaml
file into the actual dagster project so it’s all in the same placeNick James
08/21/2023, 8:48 PMdagster-cloud
now, but now I’m seeing this:
Exception: Error in location config:
Must specify a field at path root:code_source if more than one field is defined. Defined
fields: ['module_name', 'package_name', 'python_file']
Nick James
08/21/2023, 8:55 PMShalabh Chaturvedi
08/21/2023, 9:16 PMNick James
08/21/2023, 9:17 PMNick James
08/21/2023, 9:17 PMNick James
08/21/2023, 9:22 PMNick James
08/21/2023, 9:33 PMShalabh Chaturvedi
08/21/2023, 10:11 PMdagster_cloud.yaml
right next to the setup.py
. If you want to deploy with the cli, can you try this command:
cd swingleft-dagster
dagster-cloud serverless deploy-python-executable --location-file=dagster_cloud.yaml --location-name=swingleft_dagster