Hi!
I got following error when try to run import torch



import torch
Segmentation fault



Here is the output of gdb
(gdb) r -c “import torch”
Starting program: /scratch/cluster/yzp12/package/anaconda3/envs/py36/bin/python -c “import torch”
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/x86_64-linux-gnu/libthread_db.so.1”.
Program received signal SIGSEGV, Segmentation fault.
0x00007fffeb6bbf8a in torch::tensor::set_default_tensor_type (type=…)
at torch/csrc/tensor/python_tensor.cpp:335
335	  if (!at::isFloatingType(type.scalarType())) {
(gdb) bt
#0  0x00007fffeb6bbf8a in torch::tensor::set_default_tensor_type (type=…)
at torch/csrc/tensor/python_tensor.cpp:335
#1  0x00007fffeb6be3f6 in torch::tensor::initialize_python_bindings ()
at torch/csrc/tensor/python_tensor.cpp:257
#2  0x00007fffeb0566d2 in THPModule_initExtension (_unused=,
shm_manager_path=0x7fff761888a0) at torch/csrc/Module.cpp:90
#3  0x00007ffff7967585 in _PyCFunction_FastCallDict (func_obj=func_obj@entry=0x7fffee558708,
args=args@entry=0x6c63b8, nargs=1, kwargs=kwargs@entry=0x0) at Objects/methodobject.c:209
#4  0x00007ffff7967935 in _PyCFunction_FastCallKeywords (func=func@entry=0x7fffee558708,
stack=stack@entry=0x6c63b8, nargs=, kwnames=kwnames@entry=0x0)
at Objects/methodobject.c:294
#5  0x00007ffff7a0169a in call_function (pp_stack=pp_stack@entry=0x7fffffffccf0,
oparg=oparg@entry=1, kwnames=kwnames@entry=0x0) at Python/ceval.c:4825
#6  0x00007ffff7a06046 in _PyEval_EvalFrameDefault (f=,
throwflag=) at Python/ceval.c:3323
#7  0x00007ffff7a0129e in _PyEval_EvalCodeWithName (_co=_co@entry=0x7ffff652a4b0,
globals=globals@entry=0x7ffff7f0d870, locals=locals@entry=0x7ffff7f0d870,
args=args@entry=0x0, argcount=argcount@entry=0, kwnames=kwnames@entry=0x0,
kwargs=kwargs@entry=0x0, kwcount=kwcount@entry=0, kwstep=kwstep@entry=2,
defs=defs@entry=0x0, defcount=defcount@entry=0, kwdefs=kwdefs@entry=0x0,
closure=closure@entry=0x0, name=name@entry=0x0, qualname=qualname@entry=0x0)
at Python/ceval.c:4154
#8  0x00007ffff7a018cd in PyEval_EvalCodeEx (_co=_co@entry=0x7ffff652a4b0,
globals=globals@entry=0x7ffff7f0d870, locals=locals@entry=0x7ffff7f0d870,
args=args@entry=0x0, argcount=argcount@entry=0, kws=kws@entry=0x0,
kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0,
kwdefs=kwdefs@entry=0x0, closure=closure@entry=0x0) at Python/ceval.c:4175
#9  0x00007ffff7a0191b in PyEval_EvalCode (co=co@entry=0x7ffff652a4b0,
globals=globals@entry=0x7ffff7f0d870, locals=locals@entry=0x7ffff7f0d870)
at Python/ceval.c:730
#10 0x00007ffff79feabd in builtin_exec_impl (module=, locals=0x7ffff7f0d870,
globals=0x7ffff7f0d870, source=0x7ffff652a4b0) at Python/bltinmodule.c:976
#11 builtin_exec (module=, args=)
at Python/clinic/bltinmodule.c.h:283
#12 0x00007ffff79677e9 in PyCFunction_Call (func=func@entry=0x7ffff7fcc9d8,
—Type  to continue, or q  to quit-
Appreciate if anyone can help!!!