Almenon / Almenon/AREPL-vscode

Error with numpy

Offen
#386 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug has-workaround
Vorherrschende Sprache
TypeScript
Sterne
301
Forks
46
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I am using VS code with Python 3.7.6 64-bit. The code below run in termial fine ( prints the array) however, it returns error below using AREPL.

```python
import numpy as np
a = [[1,4,7],[2,9,7],[1,3,0],[9,6,9]]
b = [[2,3,4],[2,2,2], [1,1,1],[0,0,0]]
A = np.array([a,b])
print(A)
```

Here is the error:
```Traceback (most recent call last):
line 1, in
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/__init__.py", line 142, in
from . import core
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/__init__.py", line 16, in
from . import multiarray
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/multiarray.py", line 12, in
from . import overrides
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/overrides.py", line 46, in
""")
RuntimeError: implement_array_function method already has a docstring

Print Output:
Variables:
{}```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.