we have installed required packages that need to c...
# prefect-community
d
we have installed required packages that need to connect to the redshift cluster but still when we try to register the flows we are seeing the following error
Copy code
Failed to load and execute Flow's environment: FlowStorageError('An error occurred while unpickling the flow:\n  ModuleNotFoundError("No module named \'redshift_connector\'")\nThis may be due to a missing Python module in your current environment. Please ensure you have all required flow dependencies installed.')
e
You might be missing a locally developed module in your environment. Is the
redshift_connector
module in your local environment, or is it pip installed? It seems like it is a local module, and it isn't present in the environment that you are attempting to register from.
d
@emre Flow is registering from local but when we try to run from the container is failing with the above error.(we have installed the package on docker container as well)
e
I can't think of anything else, sorry. Just to be sure, how exactly is the package in question installed on the docker container? Are you absolutely sure that your package is on
PYTHONPATH
, and not simply in the default working directory of your docker container? I'm asking this because I believe prefect ends up running on a different working directory when it is triggered by prefect server, since it overwrites your docker
CMD
d
yes it is installed as the same location where other decency packages installed , weird is that it is working fine locally but through the container cc @Sushmitha Bandari