◐ Shell
clean mode source ↗

numpy from AIPY doesn't work

This repository was archived by the owner on Jan 18, 2024. It is now read-only.

This repository was archived by the owner on Jan 18, 2024. It is now read-only.

@yuriiy23

Description

Hello there!
I installed qpython3 from qpython_os_2023-02-04_ol.apk
Then installed numpy using QPYPI/AIPY package and then attempted to run next code

import numpy as np
arr = np.array([1, 2, 3, 4, 5])
print(arr)
print(type(arr))

It raised exception some where deep in numpy core

line 333, in
_add_aliases()
File "/data/user/0/org.qpython.qpy/files/lib/pyt hon3.11/site-packages/numpy/core/numerictypes.py", line 310, in _add_aliases
if base[-3:] == 'int' or char[0] in 'ui':
~~~~^^^
IndexError: string index out of range