# Problem using functions from ScenTrees Package

**URL:** <https://discourse.julialang.org/t/problem-using-functions-from-scentrees-package/109985>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [February 9, 2024, 2:53pm UTC](https://discourse.julialang.org/t/problem-using-functions-from-scentrees-package/109985 "2024-02-09T14:53:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![heiwie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heiwie/32/208105_2.png) [@heiwie](https://discourse.julialang.org/u/heiwie)\
**Post date:** [February 9, 2024, 2:53pm UTC](https://discourse.julialang.org/t/problem-using-functions-from-scentrees-package/109985/1 "2024-02-09T14:53:50Z")

</div>

I am trying to run the same code as in the official github repo for the ScenTrees package ([GitHub - aloispichler/ScenTrees.jl: Julia Package for Generating Scenario Trees and Scenario Lattices for Multistage Stochastic Optimization](https://github.com/aloispichler/ScenTrees.jl)). This code is the following:  
`using ScenTrees`  
`gstree = tree_approximation(Tree([1,2,2,2],1),gaussian_path1D,100000,2,2);`  
`tree_plot(gstree)`

I have added the ScenTrees package to my environment, but it seems like the functions defined in the package is not accessible. I get the following error:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/2/825606171977e2a8ba050947475dba3b308d6646.png)

I am new to Julia, so any guidance here would be much appreciated:)

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [February 9, 2024, 3:04pm UTC](https://discourse.julialang.org/t/problem-using-functions-from-scentrees-package/109985/2 "2024-02-09T15:04:31Z")

</div>

Perhaps try with a `!`?

> <https://github.com/aloispichler/ScenTrees.jl/blob/ed31379b453c9e05656937b9d661035f9de63acf/src/ScenTrees.jl#L8>

---

<div class="post-metadata">

**Author:** ![heiwie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heiwie/32/208105_2.png) [@heiwie](https://discourse.julialang.org/u/heiwie)\
**Post date:** [February 9, 2024, 3:11pm UTC](https://discourse.julialang.org/t/problem-using-functions-from-scentrees-package/109985/3 "2024-02-09T15:11:22Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/f/e/fe068bfba076bd19bc0c779c935598ea1f9df605.png)

Tried it, didnt work unfortunately…

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [February 9, 2024, 3:23pm UTC](https://discourse.julialang.org/t/problem-using-functions-from-scentrees-package/109985/4 "2024-02-09T15:23:07Z")

</div>

Yes the package looks to be in need of some updates. For me the code crashes Julia instantly with:

```julia
Intel MKL FATAL ERROR: Cannot load libmkl_intel_thread.1.dylib.

```

Perhaps contact the author via a Github issue?
