amarchin
amarchin

Reputation: 2124

RuntimeError: empty_like method already has a docstring

I am working on a project that was developed using python 3.6 and I am using python 3.7 instead. I tried to run the tests that passed. However in the end I got a series of errors like this one:

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/project/.eggs/scikit_learn-0.20.2-py3.7-macosx-10.13-x86_64.egg/sklearn/__init__.py", line 64, in <module>
    from .base import clone
  File "/project/.eggs/scikit_learn-0.20.2-py3.7-macosx-10.13-x86_64.egg/sklearn/base.py", line 10, in <module>
    import numpy as np
  File "/project/.eggs/numpy-1.16.0-py3.7-macosx-10.13-x86_64.egg/numpy/__init__.py", line 142, in <module>
    from . import core
  File "/project/.eggs/numpy-1.16.0-py3.7-macosx-10.13-x86_64.egg/numpy/core/__init__.py", line 16, in <module>
    from . import multiarray
  File "/project/.eggs/numpy-1.16.0-py3.7-macosx-10.13-x86_64.egg/numpy/core/multiarray.py", line 70, in <module>
    def empty_like(prototype, dtype=None, order=None, subok=None):
  File "/project/.eggs/numpy-1.16.0-py3.7-macosx-10.13-x86_64.egg/numpy/core/overrides.py", line 240, in decorator
    docs_from_dispatcher=docs_from_dispatcher)(implementation)
  File "/project/.eggs/numpy-1.16.0-py3.7-macosx-10.13-x86_64.egg/numpy/core/overrides.py", line 204, in decorator
    add_docstring(implementation, dispatcher.__doc__)
RuntimeError: empty_like method already has a docstring

Do you have any advice?

Upvotes: 18

Views: 6960

Answers (1)

Jo&#227;o Amaro
Jo&#227;o Amaro

Reputation: 195

According to Numpy's Github issues page, the errors the OP reported, as well as the other errors reported by the commenters were known Numpy bugs, that seem to have been solved by now.

Upvotes: 1

Related Questions