# Registering a package that depends on MATLAB.jl

**URL:** <https://discourse.julialang.org/t/registering-a-package-that-depends-on-matlab-jl/39755>\
**Category:** General Usage\
**Created:** [May 19, 2020, 2:16pm UTC](https://discourse.julialang.org/t/registering-a-package-that-depends-on-matlab-jl/39755 "2020-05-19T14:16:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [May 19, 2020, 2:16pm UTC](https://discourse.julialang.org/t/registering-a-package-that-depends-on-matlab-jl/39755/1 "2020-05-19T14:16:04Z")

</div>

I’m trying to register a package that depends on [MATLAB.jl](https://github.com/JuliaInterop/MATLAB.jl) and I’m getting blocked by an error during CI:

> <https://github.com/JuliaRegistries/General/pull/14984/checks?check_run_id=689204206#step:6:719>

```julia
ERROR: LoadError: LoadError: InitError: failed process: Process(`which matlab`, ProcessExited(1)) [1]

```

Which makes sense on the one hand because Matlab (proper) isn’t installed on the server, but on the other hand Matlab isn’t invoked when simply `import MyPackage`, so I’m not sure what’s going on or how I can fix this.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [May 19, 2020, 2:22pm UTC](https://discourse.julialang.org/t/registering-a-package-that-depends-on-matlab-jl/39755/2 "2020-05-19T14:22:39Z")

</div>

Such packages will just have to be merged manually.

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [May 19, 2020, 2:23pm UTC](https://discourse.julialang.org/t/registering-a-package-that-depends-on-matlab-jl/39755/3 "2020-05-19T14:23:55Z")

</div>

Ah… ok. Thanks.

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [May 20, 2020, 6:40am UTC](https://discourse.julialang.org/t/registering-a-package-that-depends-on-matlab-jl/39755/4 "2020-05-20T06:40:02Z")

</div>

Wait, so now I noticed that “normal” CI with travis doesn’t work because of `which matlab`… How do people test their packages if somewhere down their package dependencies there is a `MATLAB.jl`?

I’m either missing something basic, or maybe my dependency is indeed invoking Matlab even by just including it. I’ll double check.

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [May 20, 2020, 7:20am UTC](https://discourse.julialang.org/t/registering-a-package-that-depends-on-matlab-jl/39755/5 "2020-05-20T07:20:30Z")

</div>

MATLAB.jl does `which matlab` during its initialization:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/5/a/5a74788dea59295666ce6f0e806dbc63077191a2.png)

(screenshot taken from your failed CI run)

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [May 20, 2020, 7:30am UTC](https://discourse.julialang.org/t/registering-a-package-that-depends-on-matlab-jl/39755/6 "2020-05-20T07:30:42Z")

</div>

Right. Good catch. Wish that test (matlab’s) was lazy instead…
