TypeError: 'NoneType' object is not callable
XianNvyu opened this issue · 1 comments
when I try to debug lag-llama/train.py, this error occured.
Traceback (most recent call last):
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/numpy/core/getlimits.py", line 670, in init
self.dtype = numeric.dtype(int_type)
TypeError: 'NoneType' object is not callable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/xly/code/pytorch-transformer-ts/lag-llama/estimator.py", line 17, in
from gluonts.torch.modules.loss import DistributionLoss, NegativeLogLikelihood
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/gluonts/torch/init.py", line 29, in
from .model.deep_npts import DeepNPTSEstimator
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/gluonts/torch/model/deep_npts/init.py", line 14, in
from ._estimator import DeepNPTSEstimator
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/gluonts/torch/model/deep_npts/_estimator.py", line 46, in
from ._network import (
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/gluonts/torch/model/deep_npts/_network.py", line 26, in
from gluonts.torch.distributions import DiscreteDistribution
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/gluonts/torch/distributions/init.py", line 31, in
from .negative_binomial import NegativeBinomialOutput
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/gluonts/torch/distributions/negative_binomial.py", line 22, in
from scipy.stats import nbinom
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/stats/init.py", line 608, in
from ._stats_py import *
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/stats/_stats_py.py", line 39, in
from scipy.spatial.distance import cdist
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/spatial/init.py", line 110, in
from ._kdtree import *
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/spatial/_kdtree.py", line 4, in
from ._ckdtree import cKDTree, cKDTreeNode
File "_ckdtree.pyx", line 12, in init scipy.spatial._ckdtree
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/sparse/init.py", line 287, in
from . import csgraph
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/sparse/csgraph/init.py", line 185, in
from ._laplacian import laplacian
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/sparse/csgraph/_laplacian.py", line 7, in
from scipy.sparse.linalg import LinearOperator
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/sparse/linalg/init.py", line 120, in
from ._isolve import *
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/init.py", line 6, in
from .lgmres import lgmres
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/lgmres.py", line 7, in
from scipy.linalg import get_blas_funcs
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/linalg/init.py", line 206, in
from ._misc import *
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/linalg/_misc.py", line 4, in
from .lapack import get_lapack_funcs
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/scipy/linalg/lapack.py", line 975, in
_int32_max = _np.iinfo(_np.int32).max
File "/home/xly/anaconda3/envs/c118p310/lib/python3.10/site-packages/numpy/core/getlimits.py", line 672, in init
self.dtype = numeric.dtype(type(int_type))
TypeError: 'NoneType' object is not callable
can you try to upgrade your scipy
version?