Невозможно импортировать rasa_core после успешной установки, используя приглашение Anaconda - PullRequest
0 голосов
/ 03 апреля 2020

Я сталкиваюсь с трудностями при импорте rasa_core. Пакет был успешно установлен, но я не могу его импортировать. Я получаю следующее предупреждение и сообщение об ошибке

Я установил все необходимые библиотеки и библиотеки зависимостей. Rasa_nlu и rasa_sdk импортируются нормально, но rasa_core выдает ошибку ниже:

Ошибка

        C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
        packages\tensorflow\python\framework\dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a 
        synonym of type is deprecated; in a future version of numpy, it will be understood as (type, 
        (1,)) / 
       '(1,)type'.
        _np_qint8 = np.dtype([("qint8", np.int8, 1)])
        C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
        packages\tensorflow\python\framework\dtypes.py:527: FutureWarning: Passing (type, 1) or 
        '1type' as a synonym of type is deprecated; in a future version of numpy, it will be 
        understood as (type, (1,)) / '(1,)type'.
        _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
        C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
        packages\tensorflow\python\framework\dtypes.py:528: FutureWarning: Passing (type, 1) or 
        '1type' as a synonym of type is deprecated; in a future version of numpy, it will be 
        understood as (type, (1,)) / '(1,)type'.
       _np_qint16 = np.dtype([("qint16", np.int16, 1)])
        C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
        packages\tensorflow\python\framework\dtypes.py:529: FutureWarning: Passing (type, 1) or 
        '1type' as a synonym of type is deprecated; in a future version of numpy, it will be 
        understood as (type, (1,)) / '(1,)type'.
        _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
        C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
        packages\tensorflow\python\framework\dtypes.py:530: FutureWarning: Passing (type, 1) or 
        '1type' as a synonym of type is deprecated; in a future version of numpy, it will be 
        understood as (type, (1,)) / '(1,)type'.
       _np_qint32 = np.dtype([("qint32", np.int32, 1)])
       C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
       packages\tensorflow\python\framework\dtypes.py:535: FutureWarning: Passing (type, 1) or 
       '1type' as a synonym of type is deprecated; in a future version of numpy, it will be 
       understood as (type, (1,)) / '(1,)type'.
       np_resource = np.dtype([("resource", np.ubyte, 1)])
       C:\Users\anbharadwaj\AppData\Local\Continuum\anaconda3\lib\site-packages\h5py\__init__.py:36: 
       FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` 
       is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
       from ._conv import register_converters as _register_converters
       Traceback (most recent call last):
       File "<stdin>", line 1, in <module>
       File "C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
       packages\rasa_core\__init__.py", line 6, in <module>
       from rasa_core.test import test
       File "C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site-packages\rasa_core\test.py", 
       line 19, in <module>
       from rasa_core.policies.form_policy import FormPolicy
       File "C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
       packages\rasa_core\policies\__init__.py", line 7, in <module>
       from rasa_core.policies.sklearn_policy import SklearnPolicy
       File "C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
       packages\rasa_core\policies\sklearn_policy.py", line 9, in <module>
       from sklearn.linear_model import LogisticRegression
        File "C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
       packages\sklearn\linear_model\__init__.py", line 12, in <module>
       from .base import LinearRegression
       File "C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
       packages\sklearn\linear_model\base.py", line 38, in <module>
       from ..preprocessing.data import normalize as f_normalize
       File "C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
       packages\sklearn\preprocessing\__init__.py", line 6, in <module>
       from ._function_transformer import FunctionTransformer
       File "C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
       packages\sklearn\preprocessing\_function_transformer.py", line 5, in <module>
       from ..utils.testing import assert_allclose_dense_sparse
       File "C:\Users\anbharadwaj\AppData\Roaming\Python\Python36\site- 
       packages\sklearn\utils\testing.py", line 751, in <module>
       import pytest
       File "C:\Users\anbharadwaj\AppData\Local\Continuum\anaconda3\lib\site-packages\pytest.py", 
       line 13, in <module>
         from _pytest.fixtures import fixture, yield_fixture
         File "C:\Users\anbharadwaj\AppData\Local\Continuum\anaconda3\lib\site- 
         packages\_pytest\fixtures.py", line 842, in <module>
         class FixtureFunctionMarker(object):
          File "C:\Users\anbharadwaj\AppData\Local\Continuum\anaconda3\lib\site- 
         packages\_pytest\fixtures.py", line 844, in FixtureFunctionMarker
              params = attr.ib(convert=attr.converters.optional(tuple))
         TypeError: attrib() got an unexpected keyword argument 'convert'
...