https://prefect.io logo
#prefect-community
Title
# prefect-community
n

Nace Plesko

10/14/2022, 5:30 PM
Hi again, This is probably very basic python question, but I'm having trouble that Prefect can't find my module. I already have module
database
and a few files in it and all those work fine, but now that I created a new one, the run on the Prefect is saying that it can't find it. I'm probably just missing something obvious, but because of my lack of knowledge of both Python and Prefect I'd really appreciate help on this. Thank you in advance!
1
b

Bianca Hoch

10/14/2022, 5:56 PM
Hey Nace! Here is an article that you can take a look at. Anna provided some additional context in this GitHub post for why this error can be thrown.
👀 1
n

Nace Plesko

10/14/2022, 7:46 PM
I found lots of good info on that link and narrowed it down that we are using
setup.py
to package everything, but for some reason it's not packaging new files. I also bumped up the version because I thought it might be cached in GCS, but still when registering the flow it's pushing to GCS just the file that has a flow in it but not the dependencies. Is there a way to "force" update packages? In my flow file I'm already importing a file from that module, so it must be that just the new file is not being pushed https://github.com/anna-geller/packaging-prefect-flows/blob/master/setup.py
Just realized that none of dependencies are in GCS bucket, it might be taking them from the docker image. Testing it out now
Ohhhh mmyyy, let's goooo!!! That was it!! Thanks for pointing me to those links, they led me to the right direction!
b

Bianca Hoch

10/14/2022, 8:41 PM
letsgo
Great job finding out what the problem was!