Hello, I have installed hail using pycharm not from github nor conda. I was trying read 1k genome vcf data:
hl.import_vcf(‘data/1kg.vcf.bgz’).write(‘data/1kg.mt’, overwrite=True)
mt = hl.read_matrix_table(‘data/1kg.mt’)
The error:
/shire/zillur/learning/python/project1/venv/bin/python /shire/zillur/learning/python/project1/gwas_hail_1.py
19/09/03 11:58:06 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
Using Spark’s default log4j profile: org/apache/spark/log4j-defaults.properties
Setting default log level to “WARN”.
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
Running on Apache Spark version 2.4.1
SparkUI available at http://dutillab:4040
Welcome to
__ __ <>__
/ /_/ /__ __/ /
/ __ / _/ / / /_/ /_/\_,_/_/_/ version 0.2.20-dd6c996e7db5 LOGGING: writing to /shire/zillur/learning/python/project1/hail-20190903-1158-0.2.20-dd6c996e7db5.log 2019-09-03 11:58:18 Hail: INFO: downloading 1KG VCF ... Source: https://storage.googleapis.com/hail-tutorial/1kg.vcf.bgz 2019-09-03 11:58:19 Hail: INFO: importing VCF and writing to matrix table... ERROR: dlopen("/tmp/libhail7063416592875974503.so"): /lib64/libstdc++.so.6: version
CXXABI_1.3.8’ not found (required by /tmp/libhail7063416592875974503.so)
FATAL: caught exception java.lang.UnsatisfiedLinkError: /tmp/libhail7063416592875974503.so: /lib64/libstdc++.so.6: versionCXXABI_1.3.8' not found (required by /tmp/libhail7063416592875974503.so) java.lang.UnsatisfiedLinkError: /tmp/libhail7063416592875974503.so: /lib64/libstdc++.so.6: version
CXXABI_1.3.8’ not found (required by /tmp/libhail7063416592875974503.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at is.hail.nativecode.NativeCode.(NativeCode.java:30)
at is.hail.nativecode.NativeBase.(NativeBase.scala:20)
at is.hail.annotations.Region.(Region.scala:180)
at is.hail.annotations.Region$.apply(Region.scala:16)
at is.hail.annotations.Region$.scoped(Region.scala:18)
at is.hail.expr.ir.ExecuteContext$.scoped(ExecuteContext.scala:7)
at is.hail.backend.Backend.execute(Backend.scala:86)
at is.hail.backend.Backend.executeJSON(Backend.scala:92)
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)
ERROR:root:Exception while sending command.
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1159, in send_command
raise Py4JNetworkError(“Answer from Java side is empty”)
py4j.protocol.Py4JNetworkError: Answer from Java side is empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 985, in send_command
response = connection.send_command(command)
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1164, in send_command
“Error while receiving”, e, proto.ERROR_ON_RECEIVE)
py4j.protocol.Py4JNetworkError: Error while receiving
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/gwas_hail_1.py”, line 8, in
hl.utils.get_1kg(‘data/’)
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/hail/utils/tutorial.py”, line 73, in get_1kg
hl.import_vcf(cluster_readable_vcf, min_partitions=16).write(matrix_table_path, overwrite=True)
File “</shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/decorator.py:decorator-gen-1018>”, line 2, in write
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/hail/typecheck/check.py”, line 585, in wrapper
return original_func(*args, **kwargs)
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/hail/matrixtable.py”, line 2508, in write
Env.backend().execute(MatrixWrite(self._mir, writer))
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/hail/backend/backend.py”, line 108, in execute
result = json.loads(Env.hc()._jhc.backend().executeJSON(self._to_java_ir(ir)))
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1257, in call
answer, self.gateway_client, self.target_id, self.name)
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/hail/utils/java.py”, line 213, in deco
return f(*args, **kwargs)
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/protocol.py”, line 336, in get_return_value
format(target_id, “.”, name))
py4j.protocol.Py4JError: An error occurred while calling o50.executeJSON
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:40268)
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:40268)
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:40268)
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:40268)
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:40268)
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:40268)
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:40268)
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:40268)
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:40268)
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/shire/zillur/learning/python/project1/venv/lib64/python3.6/site-packages/py4j/java_gateway.py”, line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
Process finished with exit code 1