# Hl.init() stopped working

**URL:** <https://discuss.hail.is/t/hl-init-stopped-working/1929>\
**Category:** Hail Query & hailctl\
**Created:** [February 26, 2021, 10:25am UTC](https://discuss.hail.is/t/hl-init-stopped-working/1929 "2021-02-26T10:25:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjwswenson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/rjwswenson/32/545_2.png) [@rjwswenson](https://discuss.hail.is/u/rjwswenson)\
**Post date:** [February 26, 2021, 10:25am UTC](https://discuss.hail.is/t/hl-init-stopped-working/1929/1 "2021-02-26T10:25:42Z")

</div>

I am not sure why, as I don’t recall any change to docker images that we have, in which we meet all the version requirements (python 3.7.6, hail v0.2, Spark 2.4.x , Java 8).

I am using Python 3, Gen3 Data Commons Jupyter Notebooks, and to confirm the same error I am getting inside these, I run the following CLI via the terminal to reproduce the error:

habibi:~$ ipython3  
Python 3.7.6 | packaged by conda-forge | (default, Jun 1 2020, 18:57:50)  
Type ‘copyright’, ‘credits’ or ‘license’ for more information  
IPython 7.15.0 – An enhanced Interactive Python. Type ‘?’ for help.

In [1]: import hail as hl

## In [2]: hl.init() 2021-02-26 09:50:03 WARN NativeCodeLoader:62 - Unable to load native-hadoop library for your platform… using builtin-java classes where applicable Setting default log level to “WARN”. To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).

Py4JJavaError Traceback (most recent call last)  
 in   
----\> 1 hl.init()

in init(sc, app\_name, master, local, log, quiet, append, min\_block\_size, branching\_factor, tmp\_dir, default\_reference, idempotent, global\_seed, spark\_conf, skip\_logging\_configuration, local\_tmpdir, \_optimizer\_iterations)

/opt/conda/lib/python3.7/site-packages/hail/typecheck/check.py in wrapper(\_\_original\_func, \*args, \*\*kwargs)  
612 def wrapper(_original\_func, \*args, \*\*kwargs):  
613 args, kwargs_ = check\_all(\_\_original\_func, args, kwargs, checkers, is\_method=is\_method)  
 → 614 return _original\_func(\*args, \*\*kwargs_)  
615  
616 return wrapper

/opt/conda/lib/python3.7/site-packages/hail/context.py in init(sc, app\_name, master, local, log, quiet, append, min\_block\_size, branching\_factor, tmp\_dir, default\_reference, idempotent, global\_seed, spark\_conf, skip\_logging\_configuration, local\_tmpdir, \_optimizer\_iterations)

Py4JJavaError: An error occurred while calling z:is.hail.backend.spark.SparkBackend.apply.  
: java.lang.NoSuchMethodError: scala.Predef$.refArrayOps([Ljava/lang/Object;)Lscala/collection/mutable/ArrayOps;  
at is.hail.backend.spark.SparkBackend$.majorMinor$1(SparkBackend.scala:58)  
at is.hail.backend.spark.SparkBackend$.checkSparkCompatibility(SparkBackend.scala:60)  
at is.hail.backend.spark.SparkBackend$.createSparkConf(SparkBackend.scala:71)  
at is.hail.backend.spark.SparkBackend$.configureAndCreateSparkContext(SparkBackend.scala:120)  
at is.hail.backend.spark.SparkBackend$.apply(SparkBackend.scala:196)  
at is.hail.backend.spark.SparkBackend.apply(SparkBackend.scala)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)  
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)  
at py4j.Gateway.invoke(Gateway.java:282)  
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)  
at py4j.commands.CallCommand.execute(CallCommand.java:79)  
at py4j.GatewayConnection.run(GatewayConnection.java:238)  
at java.lang.Thread.run(Thread.java:748)

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [February 26, 2021, 1:24pm UTC](https://discuss.hail.is/t/hl-init-stopped-working/1929/2 "2021-02-26T13:24:45Z")

</div>

What’s the Hail version here?

---

<div class="post-metadata">

**Author:** ![rjwswenson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/rjwswenson/32/545_2.png) [@rjwswenson](https://discuss.hail.is/u/rjwswenson)\
**Post date:** [February 26, 2021, 3:25pm UTC](https://discuss.hail.is/t/hl-init-stopped-working/1929/3 "2021-02-26T15:25:39Z")

</div>

V0.2, and it appears, when we do rebuild, it uses the latest version:

RUN git clone [https://github.com/hail-is/hail.git](https://github.com/hail-is/hail.git) … followed by including spark libs / headers and performing gradle builds.

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [February 26, 2021, 4:51pm UTC](https://discuss.hail.is/t/hl-init-stopped-working/1929/4 "2021-02-26T16:51:15Z")

</div>

The lines in the stack trace don’t look like the current code. What’s the last git SHA you saw with this?

Also, the best way to install is to use the makefile in `hail/hail` and do `make install`.

---

<div class="post-metadata">

**Author:** ![rjwswenson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/rjwswenson/32/545_2.png) [@rjwswenson](https://discuss.hail.is/u/rjwswenson)\
**Post date:** [February 26, 2021, 5:25pm UTC](https://discuss.hail.is/t/hl-init-stopped-working/1929/5 "2021-02-26T17:25:50Z")

</div>

Hey Tim, sorry, I would need to check on the SHA sigs, but you are right, I think this build is dependent on some steps that need updates in general. I am just completely baffled at how it was working for nearly 6 months, and then one day, boom, right before loading a new data model and bringing in UKBB data - arg.
