mlm-scoring icon indicating copy to clipboard operation
mlm-scoring copied to clipboard

ERROR: No matching distribution found for mxnet-mkl

Open orenpapers opened this issue 3 years ago • 4 comments

I cloned the repo locally, then ran pip install -e . and pip install mxnet-mkl but I get the error:

ERROR: Could not find a version that satisfies the requirement mxnet-mkl (from versions: none)
ERROR: No matching distribution found for mxnet-mkl

How can I fix it?

orenpapers avatar Jul 25 '21 10:07 orenpapers

The program is not occurred by min-scoring. I think it is "pip install mxnet."

Tanesan avatar Aug 01 '21 12:08 Tanesan

@Tanesan Now I get the error:

    from mlm.scorers import MLMScorer, LMScorer
  File ".mlm-scoring/src/mlm/scorers.py", line 8, in <module>
    import gluonnlp as nlp
  File "./venv_3.8/lib/python3.8/site-packages/gluonnlp/__init__.py", line 23, in <module>
    from . import loss
  File "./venv_3.8/lib/python3.8/site-packages/gluonnlp/loss/__init__.py", line 23, in <module>
    from .activation_regularizer import *
  File "./venv_3.8/lib/python3.8/site-packages/gluonnlp/loss/activation_regularizer.py", line 25, in <module>
    from mxnet.gluon.loss import Loss
  File "./venv_3.8/lib/python3.8/site-packages/mxnet/__init__.py", line 23, in <module>
    from .context import Context, current_context, cpu, gpu, cpu_pinned
  File "./venv_3.8/lib/python3.8/site-packages/mxnet/context.py", line 23, in <module>
    from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
  File "./venv_3.8/lib/python3.8/site-packages/mxnet/base.py", line 351, in <module>
    _LIB = _load_lib()
  File "./venv_3.8/lib/python3.8/site-packages/mxnet/base.py", line 342, in _load_lib
    lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(./venv_3.8/lib/python3.8/site-packages/mxnet/libmxnet.dylib, 6): Symbol not found: ____chkstk_darwin
  Referenced from: ./venv_3.8/lib/python3.8/site-packages/mxnet/libmxnet.dylib
  Expected in: /usr/lib/libSystem.B.dylib
 in ./venv_3.8/lib/python3.8/site-packages/mxnet/libmxnet.dylib
python-BaseException

Any idea? I am using MAC and Python3.8

orenpapers avatar Aug 02 '21 07:08 orenpapers

I don't know much about it, but this URL may be helpful. https://github.com/apache/incubator-mxnet/issues/5487

Tanesan avatar Aug 03 '21 05:08 Tanesan

@orko19 I was unable to reproduce your bug on a Mac.

Can you try again by creating a new virtual environment and installing MXNet and PyTorch using the following command? pip install torch mxnet

devanshrj avatar Aug 04 '21 20:08 devanshrj