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

Nehil Jain

02/14/2024, 3:13 AM
I am new to setting up dagster cloud for a project. After making my first change to the template repo I created with from dagster-ui I am getting an error. The code runs great locally. What am I doing wrong? Something is not jiving with the python dependencies used in the project I feel
Copy code
Exception: Code server failed to start up.

Task logs:
    from dagster._annotations import public
  File "/venvs/c63102bcc84c/lib/python3.10/site-packages/dagster/_annotations.py", line 8, in <module>
    from dagster._core.decorator_utils import (
  File "/venvs/c63102bcc84c/lib/python3.10/site-packages/dagster/_core/decorator_utils.py", line 30, in <module>
    from dagster._core.errors import DagsterInvalidDefinitionError
  File "/venvs/c63102bcc84c/lib/python3.10/site-packages/dagster/_core/errors.py", line 23, in <module>
    from dagster._utils.interrupts import raise_interrupts_as
  File "/venvs/c63102bcc84c/lib/python3.10/site-packages/dagster/_utils/__init__.py", line 51, in <module>
    import dagster._seven as seven
  File "/venvs/c63102bcc84c/lib/python3.10/site-packages/dagster/_seven/__init__.py", line 13, in <module>
    import pendulum
  File "/venvs/c63102bcc84c/lib/python3.10/site-packages/pendulum/__init__.py", line 33, in <module>
    from pendulum.testing.traveller import Traveller
  File "/venvs/c63102bcc84c/lib/python3.10/site-packages/pendulum/testing/traveller.py", line 59, in <module>
    import time_machine
  File "/venvs/c63102bcc84c/lib/python3.10/site-packages/time_machine/__init__.py", line 23, in <module>
    from unittest import mock
  File "/usr/local/lib/python3.10/unittest/mock.py", line 26, in <module>
    import asyncio
  File "/venvs/c63102bcc84c/lib/python3.10/site-packages/asyncio/__init__.py", line 21, in <module>
    from .base_events import *
  File "/venvs/c63102bcc84c/lib/python3.10/site-packages/asyncio/base_events.py", line 296
    future = tasks.async(future, loop=self)
                   ^^^^^
SyntaxError: invalid syntax
  File "/dagster-cloud/dagster_cloud/workspace/user_code_launcher/user_code_launcher.py", line 1420, in _reconcile
    self._wait_for_new_server_ready(
  File "/dagster-cloud/dagster_cloud/workspace/ecs/launcher.py", line 560, in _wait_for_new_server_ready
    self._wait_for_dagster_server_process(
  File "/dagster-cloud/dagster_cloud/workspace/user_code_launcher/user_code_launcher.py", line 1823, in _wait_for_dagster_server_process
    self._wait_for_server_process(
  File "/dagster-cloud/dagster_cloud/workspace/user_code_launcher/user_code_launcher.py", line 1872, in _wait_for_server_process
    additional_check()
  File "/dagster-cloud/dagster_cloud/workspace/ecs/launcher.py", line 554, in <lambda>
    additional_check = lambda: _assert_new_pex_server_did_not_crash()
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/dagster-cloud/dagster_cloud/workspace/ecs/launcher.py", line 548, in _assert_new_pex_server_did_not_crash
    raise Exception(
d

daniel

02/14/2024, 3:16 AM
Hi Nehil - could you share the python dependencies?
i looked around for that error a bit and got a couple of hits like this: https://github.com/pyinstaller/pyinstaller/issues/6156#issuecomment-904534078 - is it possible you're explicitly including "asyncio" in your requirements? seems like its in the standard library and doesn't need to be explicitly listed as a requirement
(and that doing so installs https://pypi.org/project/asyncio/ which is only needed for very old versions of python)
2 Views