error Failed: Failed to run function : <class 'AttributeError'> : 'DSSManagedFolder' object has no a

marirapellini
Level 3
error Failed: Failed to run function : <class 'AttributeError'> : 'DSSManagedFolder' object has no a

Hi

I am trying to create an API but I need to access an entire folder and not only single files. In this folder there is the model that I want to load in order to make my prediction. How can I do so ? Thank you

 

0 Kudos
2 Replies
CatalinaS
Dataiker

Hi @marirapellini

Can you please share your code and the complete error that you are getting?

 

 

0 Kudos
marirapellini
Level 3
Author

Hi

I have the model saved using mlflow in a folder and I create the connection in the API like this:

 

model_folder = dataikuapi.dss.managedfolder.DSSManagedFolder(client, "VISION", "FVWgHWWl")

 

Later, I need to get the path of this folder in order to be able to load my model (this is a costum model and I use a custom function in order to load it) but I cannot find it cause apparently a dssmanaged folder does not have get_path().

is there a way to solve this?

thank you

0 Kudos