Community Conundrum 27: Stacks of Questions is live! Read More

Load outside from dss sklearn models with pickle

Level 1
Load outside from dss sklearn models with pickle

Hello,

I'm trying to load a  python model in a.sav file with pickle, form a project outside DSS. The DSS is running in a container. I can't access the file with "open", it returns the following error:

[Errno 2] No such file or directory:

 Is there a way to load external files to a python recipe with Pickle?  or any alternative approach?

Thanks!

0 Kudos
1 Reply
Dataiker
Dataiker

Hi @Paucns 

By default you don't have access to your host filesystem from inside a Docker container. What you can do is to mount a volume by providing an extra parameter to the "docker run" command:

docker run [other parameters] -v /path/on/host:/path/inside/container dataiku/dss

This will allow you to access files in /path/on/host on the host from /path/inside/container in container.

 

Regards

Andrey Avtomonov
R&D Engineer @ Dataiku
0 Kudos
Labels (3)