# Imported ScikitLearn PyObj becomes NULL in a module

**URL:** https://discourse.julialang.org/t/imported-scikitlearn-pyobj-becomes-null-in-a-module/30942
**Category:** General Usage
**Tags:** question
**Created:** [November 11, 2019, 8:08am UTC](https://discourse.julialang.org/t/imported-scikitlearn-pyobj-becomes-null-in-a-module/30942 "2019-11-11T08:08:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)
#### Post date: [November 11, 2019, 12:13pm UTC](https://discourse.julialang.org/t/imported-scikitlearn-pyobj-becomes-null-in-a-module/30942/2 "2019-11-11T12:13:32Z")

</div>

Yeah that’s tricky, you need to place the import in the init function, see how I did it here  
[https://github.com/baggepinnen/HDBSCAN.jl/blob/master/src/HDBSCAN.jl](https://github.com/baggepinnen/HDBSCAN.jl/blob/master/src/HDBSCAN.jl)

---

_[View the full topic](https://discourse.julialang.org/t/imported-scikitlearn-pyobj-becomes-null-in-a-module/30942)._
