Skip to content

AttributeError: module 'mxnet' has no attribute 'test_utils' #2

@lokeycookie

Description

@lokeycookie

Hi there,

I am using a conda environment with python==3.6 and when I pip install mxnet_cu102mkl, and then run get_models.py, I got this error:
Traceback (most recent call last):
File "recognition/get_models.py", line 7, in
import mxnet as mx
File "/home/evas/anaconda3/envs/HTR_test2/lib/python3.6/site-packages/mxnet/init.py", line 24, in
from .context import Context, current_context, cpu, gpu, cpu_pinned
File "/home/evas/anaconda3/envs/HTR_test2/lib/python3.6/site-packages/mxnet/context.py", line 24, in
from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
File "/home/evas/anaconda3/envs/HTR_test2/lib/python3.6/site-packages/mxnet/base.py", line 214, in
_LIB = _load_lib()
File "/home/evas/anaconda3/envs/HTR_test2/lib/python3.6/site-packages/mxnet/base.py", line 205, in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
File "/home/evas/anaconda3/envs/HTR_test2/lib/python3.6/ctypes/init.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory

Thus, I pip installed mxnet-cu110==2.0.0a0 which does not give the above error but give this error instead:
Downloading Paragraph Segmentation parameters
Traceback (most recent call last):
File "recognition/get_models.py", line 230, in
models()
File "recognition/get_models.py", line 34, in call
self.download_models()
File "recognition/get_models.py", line 62, in download_models
self.__download_parameters(self.all_messages[idx], self.all_links[idx])
File "recognition/get_models.py", line 52, in __download_parameters
self.__download(link)
File "recognition/get_models.py", line 42, in __download
mx.test_utils.download(link, dirname=self.model_dir)
AttributeError: module 'mxnet' has no attribute 'test_utils'

How do I solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions