# Problem loading ML model using DataDeps

**URL:** <https://discourse.julialang.org/t/problem-loading-ml-model-using-datadeps/78692>\
**Category:** General Usage\
**Created:** [March 29, 2022, 6:51pm UTC](https://discourse.julialang.org/t/problem-loading-ml-model-using-datadeps/78692 "2022-03-29T18:51:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxim\_Lubov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maxim_lubov/32/29744_2.png) [@Maxim\_Lubov](https://discourse.julialang.org/u/Maxim_Lubov)\
**Post date:** [March 29, 2022, 6:51pm UTC](https://discourse.julialang.org/t/problem-loading-ml-model-using-datadeps/78692/1 "2022-03-29T18:51:04Z")

</div>

@oxinabox  
Hello everyone.  
I have a problem loading ML model using DataDeps. I load model via shared link to Google Drive.  
Model should be loaded to a specific folder on my drive, so I set:

```julia
    ENV["DATADEPS_ALWAYS_ACCEPT"] = "true"
    ENV["DATADEPS_NO_STANDARD_LOAD_PATH"]="true"
    ENV["DATADEPS_LOAD_PATH"] = "D:/Lubov/Models/"
    model2 = BSON.load(datadep"user_model", @ __MODULE__ )
    trained_model = model2[:model]

```

However, when I try to load model, I get following error

```julia
InitError: SystemError: opening file "C:\\Users\\user\\.julia\\datadeps\\user_model": Permission denied

```

Also a folder `C:\\Users\\user\\.julia\\datadeps\\user_model` is created with a file name `view`

---

<div class="post-metadata">

**Author:** ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Post date:** [March 30, 2022, 6:03pm UTC](https://discourse.julialang.org/t/problem-loading-ml-model-using-datadeps/78692/2 "2022-03-30T18:03:51Z")

</div>

Hmmm.  
`DATADEPS_NO_STANDARD_LOAD_PATH`  
isn’t incredibly well tested.  
It might have a bug.  
It would be good to see a MWE

Also your code seems wrong as well.  
But in an unrelated way.  
`BSON.load` takes a file name, like `datadep"user_model/file"`.  
`datadep"user_model"` on its own is always a folder.
