Manny Schneck

12/06/2021, 10:54 PM
I apologize because this is more of a python question than a dagster question, but I am trying to break my code up into separate files, and I'm running into import issues when doing
dagit -f ....
I'm able to reproduce this in the hacker news example repo: (see thread)
====> git rev-parse --short HEAD

====> pwd

=====> dagit -f
Using temporary directory /Users/mannyschneck/cbio/repo/external/dagster/examples/hacker_news/hacker_news/tmpvyarfsyz for storage. This will be removed when dagit exits.
To persist information across sessions, set the environment variable DAGSTER_HOME to a directory to use.

/Users/mannyschneck/cbio/repo/external/dagster/python_modules/dagster/dagster/core/workspace/ UserWarning: Error loading repository location Encountered ImportError: `attempted relative import with no known parent package` while importing module repo from file /Users/mannyschneck/cbio/repo/external/dagster/examples/hacker_news/hacker_news/ Consider using the module-based options `-m` for CLI-based targets or the `python_package` workspace.yaml target.

Stack Trace:
  File "/Users/mannyschneck/cbio/repo/external/dagster/python_modules/dagster/dagster/grpc/", line 205, in __init__