PullRequest
       12

0 голосов
/ 21 февраля 2020

Я получаю сообщение об ошибке, когда запускаю файл с терминала:

Я использую python 3.7 и работаю в системе windows 10.

Ошибка появляется во время работы в виртуальной среде, в которой были установлены все требования.

Using TensorFlow backend.
AttributeError: 'numpy.ndarray' object has no attribute 'rint'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\52331\PycharmProjects\Q-Learning-for-Trading\venv\lib\site-packages\numpy\core\fromnumeric.py", line 61, in _wrapfunc
    return bound(*args, **kwds)
TypeError: loop of ufunc does not support argument 0 of type numpy.ndarray which has no callable rint method

During handling of the above exception, another exception occurred:

AttributeError: 'numpy.ndarray' object has no attribute 'rint'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "run.py", line 29, in <module>
    data = np.around(get_data())
  File "<__array_function__ internals>", line 6, in around
  File "C:\Users\52331\PycharmProjects\Q-Learning-for-Trading\venv\lib\site-packages\numpy\core\fromnumeric.py", line 3224, in around
    return _wrapfunc(a, 'round', decimals=decimals, out=out)
  File "C:\Users\52331\PycharmProjects\Q-Learning-for-Trading\venv\lib\site-packages\numpy\core\fromnumeric.py", line 70, in _wrapfunc
    return _wrapit(obj, method, *args, **kwds)
  File "C:\Users\52331\PycharmProjects\Q-Learning-for-Trading\venv\lib\site-packages\numpy\core\fromnumeric.py", line 47, in _wrapit
    result = getattr(asarray(obj), method)(*args, **kwds)
TypeError: loop of ufunc does not support argument 0 of type numpy.ndarray which has no callable rint method
...