Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lokeycookie opened this issue Oct 27, 2023 · 0 comments
Open

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

lokeycookie opened this issue Oct 27, 2023 · 0 comments

Comments

@lokeycookie
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant