https://dagster.io/ logo
#dagster-plus
Title
# dagster-plus
l

Leo Qin

05/23/2023, 3:14 AM
Hello, we encountered a deploy failure late today after quite a few successful deploys earlier in the day. On further investigation we found that
typing-extensions
version differed between the early and late deploys (was
4.5.0
, now
4.6.0
) - dagster calls for
typing_extensions>=4.4.0
. The new version (
4.6.0
) was released between 5-6pm US Pacific Time... changenotes here. Our CI/CD pipeline installs dagster fresh on each run, so there is some reason to believe that one of the changes may not be forward compatible. Pinning
typing-extensions
to
4.5.0
resolved the issue.
error we encountered:
Copy code
#14 1.186 Traceback (most recent call last):
#14 1.186   File "/usr/local/bin/dagster-cloud", line 5, in <module>
#14 1.186     from dagster_cloud_cli.entrypoint import app
#14 1.186   File "/usr/local/lib/python3.8/site-packages/dagster_cloud_cli/entrypoint.py", line 16, in <module>
#14 1.186     from .<http://commands.ci|commands.ci> import app as ci_app
#14 1.186   File "/usr/local/lib/python3.8/site-packages/dagster_cloud_cli/commands/ci/__init__.py", line 27, in <module>
#14 1.186     from . import checks, state
#14 1.186   File "/usr/local/lib/python3.8/site-packages/dagster_cloud_cli/commands/ci/state.py", line 11, in <module>
#14 1.186     class DockerBuildOutput(BaseModel, extra=Extra.forbid):
#14 1.186   File "pydantic/main.py", line 197, in pydantic.main.ModelMetaclass.__new__
#14 1.186   File "pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
#14 1.186   File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.__init__
#14 1.186   File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
#14 1.186   File "pydantic/fields.py", line 668, in pydantic.fields.ModelField._type_analysis
#14 1.186   File "/usr/local/lib/python3.8/typing.py", line 774, in __subclasscheck__
#14 1.186     return issubclass(cls, self.__origin__)
#14 1.186 TypeError: issubclass() arg 1 must be a class
#14 1.324 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.
#14 ERROR: process "/bin/sh -c 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" did not complete successfully: exit code: 1
i

Ivan Tsarev

05/23/2023, 11:49 AM
Just caught the same error. Gonna try the solution, thank you so much for posting!
d

daniel

05/23/2023, 11:58 AM
Looks like this issue here: https://github.com/python/typing_extensions/issues/179 - we'll see about pinning if a fix doesn't come out quickly
b

Brian Stroh

05/23/2023, 10:04 PM
I was running into the same issue earlier today, but since the pydantic issue was addressed a few hours ago, I haven't had any problems.
34 Views