https://flyte.org logo
#ask-the-community
Title
# ask-the-community
l

Lucas Parisi

10/10/2023, 11:43 AM
Hello Flyte Community! Im running flyte on a sandbox deployment for experimentation. I´ve created a becnhmark file with the tasks that I need to perform. Also ran
docker_build.sh
to create the custom image that I would like use to run the workflow, instead of the flyte default one. Im running the pyflyte run command on the virtual environment that has my dependencies but it still fails, and I have no clue why.
l

L godlike

10/10/2023, 1:11 PM
try
pyflyte run --remote image
l

Lucas Parisi

10/10/2023, 1:18 PM
Will try it
k

Ketan (kumare3)

10/10/2023, 1:20 PM
You do not have mlflow installed locally
When you running locally you need all your dependencies installed as python will Jared the code
Cc @Samhita Alla for the dependencies section
@Lucas Parisi
á

Álvaro Martínez Morales

10/10/2023, 1:34 PM
Hello! Thank you kindly for all your responses. I'm Lucas' partner in crime. We do have mlflow installed into the local conda env which is active while executing that command. If, per example, we start an interactive session and try to import it, we can make use of it no problem.
k

Ketan (kumare3)

10/11/2023, 3:05 AM
Ohh sorry missed the message
Let me share an example that works
l

Lucas Parisi

10/11/2023, 8:13 AM
@Ketan (kumare3) let me know if you need any more information regarding this
k

Ketan (kumare3)

10/11/2023, 12:21 PM
I would love as much as I can get
Cc @Samhita Alla can you try an mlflow example (maybe flytesnacks) and share here
s

Samhita Alla

10/11/2023, 12:58 PM
I don't see any
no module named mlflow
error. I just tried running an example. @Lucas Parisi, can you try reinstalling your virtual environment?
k

Ketan (kumare3)

10/11/2023, 1:01 PM
@Samhita Alla just paste your example here instead of back and forth
s

Samhita Alla

10/11/2023, 1:18 PM
I ran the example present in the docs.
l

Lucas Parisi

10/11/2023, 4:28 PM
@Samhita Alla the
no module named mlflow
is shown on the first image attached.
s

Samhita Alla

10/12/2023, 4:45 AM
That error shouldn't occur when you install the mlflow library, and hence, I suggest recreating your virtual environment. Have you tried that?
á

Álvaro Martínez Morales

10/19/2023, 3:30 PM
Hello! Sorry for the late response. Just wanted to update you and thank you, the reconstruction of the environment indeed worked! First I tried manually, and then from a compiled txt from a requirements.in and now it's working perfectly. Still I have no idea how I messed up for it to no detect mlflow in the other env while being installed right there, but that was that. Again, thank you very much! 🤗
3 Views