https://dagster.io/ logo
#ask-community
Title
# ask-community
d

Danny Steffy

07/05/2023, 7:30 PM
This message contains interactive elements.
j

Joe Napolitano

07/05/2023, 8:22 PM
Start by reading the basics of how modules and import works: https://docs.python.org/3/reference/import.html
👍 1
Then “one way” to solve this is having your code defined as a package in setup.py:
Copy code
setup(
    name='your_project_repo',
    packages=['dagster_code'],
    install_requires=[
        'autopep8',
Easy to take this for granted when you’re working with a framework like django cause it’s doing some magic behind the scenes, but for data stuff you’re usually in the wild west, so you need to dig a little deeper
Familiarize yourself with the python path variable as well, which is useful for troubleshooting: https://stackoverflow.com/questions/1489599/how-do-i-find-out-my-pythonpath-using-python
d

Danny Steffy

07/05/2023, 8:38 PM
I guess what's confusing to me is that the fully featured project has tests but doesn't seem to do anything special with the path that I can see? Unless I'm missing something there
j

Joe Napolitano

07/11/2023, 5:47 PM
“fully featured project” — one of the quickstart projects?
“doesn’t seem to do anything special with the path” — I mentioned that’s for troubleshooting
2 Views