After Adding Rasa x i was wondering where i can find an initial project of rasa Containing all the necessary files like that one https://github.com/RasaHQ/starter-pack-rasa-stack . where i can train it using the new commands of rasa and try rasa X too and thank you
Hey @mohamedHassanKa, all you have to do is type rasa init
! Check out our quickstart.
When i use rasa init i get all of errors like that I am using windows by the way .any solution for this
c:\python\python36\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from
float
tonp.floating
is deprecated. In future, it will be treated asnp.float64 == np.dtype(float).type
. from ._conv import register_converters as _register_converters Traceback (most recent call last): File “c:\python\python36\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “c:\python\python36\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\Python\Python36\Scripts\rasa.exe_main.py", line 9, in File "c:\python\python36\lib\site-packages\rasa_main.py", line 70, in main cmdline_arguments.func(cmdline_arguments) File “c:\python\python36\lib\site-packages\rasa\cli\scaffold.py”, line 158, in run print_success(“Welcome to Rasa! \U0001f916\n”) File “c:\python\python36\lib\site-packages\rasa\cli\utils.py”, line 175, in print_success print_color(*args, color=bcolors.OKGREEN) File “c:\python\python36\lib\site-packages\rasa\cli\utils.py”, line 171, in print_color print (wrap_with_color(*args, color=color)) File “d:\users\Mohamed-Hassan.Kadri\AppData\Roaming\Python\Python36\site-packages\colorama\ansitowin32.py”, line 41, in write self.__convertor.write(text) File “d:\users\Mohamed-Hassan.Kadri\AppData\Roaming\Python\Python36\site-packages\colorama\ansitowin32.py”, line 162, in write self.write_and_convert(text) File “d:\users\Mohamed-Hassan.Kadri\AppData\Roaming\Python\Python36\site-packages\colorama\ansitowin32.py”, line 187, in write_and_convert self.write_plain_text(text, cursor, start) File “d:\users\Mohamed-Hassan.Kadri\AppData\Roaming\Python\Python36\site-packages\colorama\ansitowin32.py”, line 195, in write_plain_text self.wrapped.write(text[start:end]) File “d:\users\Mohamed-Hassan.Kadri\AppData\Roaming\Python\Python36\site-packages\colorama\ansitowin32.py”, line 41, in write self.__convertor.write(text) File “d:\users\Mohamed-Hassan.Kadri\AppData\Roaming\Python\Python36\site-packages\colorama\ansitowin32.py”, line 162, in write self.write_and_convert(text) File “d:\users\Mohamed-Hassan.Kadri\AppData\Roaming\Python\Python36\site-packages\colorama\ansitowin32.py”, line 190, in write_and_convert self.write_plain_text(text, cursor, len(text)) File “d:\users\Mohamed-Hassan.Kadri\AppData\Roaming\Python\Python36\site-packages\colorama\ansitowin32.py”, line 195, in write_plain_text self.wrapped.write(text[start:end]) File “c:\python\python36\lib\encodings\cp1252.py”, line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\U0001f916’ in position 17: character maps to undefined
Ah okay hmm. can you please try
PYTHONIOENCODING='utf8' rasa init
@erohmensing - The following fixes the UTF8 encoding in Windows
SET PYTHONIOENCODING=‘utf8’
or
CHCP 65001
However i am facing another issue (SyntaxError: invalid syntax) while running
rasa init --no-prompt
Error:
File "d:\sw\64\envs\rasa35\lib\site-packages\mattermostwrapper\wrapper.py", line 89
print(f"The post channel token is: {self.token}")
^
SyntaxError: invalid syntax
-
Python version 3.5
-
rasa 1.3.8
(rasa35) λ rasa init --no-prompt d:\sw\64\envs\rasa35\lib\site-packages\tensorflow\python\framework\dtypes.py:516: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorflow\python\framework\dtypes.py:517: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorflow\python\framework\dtypes.py:518: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorflow\python\framework\dtypes.py:519: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorflow\python\framework\dtypes.py:520: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorflow\python\framework\dtypes.py:525: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:541: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:542: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:543: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:544: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:545: 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)]) d:\sw\64\envs\rasa35\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:550: 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)]) Welcome to Rasa! ≡ƒñû To get started quickly, an initial project will be created. If you need some help, check out the documentation at https://rasa.com/docs/rasa. Created project directory at 'D:\training\conda\rasa\first'. Finished creating project structure. Training an initial model... Training Core model... Traceback (most recent call last): File "d:\sw\64\envs\rasa35\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "d:\sw\64\envs\rasa35\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "D:\sw\64\envs\rasa35\Scripts\rasa.exe\__main__.py", line 7, in <module> File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\__main__.py", line 76, in main cmdline_arguments.func(cmdline_arguments) File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\cli\scaffold.py", line 195, in run init_project(args, path) File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\cli\scaffold.py", line 113, in init_project print_train_or_instructions(args, path) File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\cli\scaffold.py", line 50, in print_train_or_instructions args.model = rasa.train(domain, config, training_files, output) File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\train.py", line 40, in train kwargs=kwargs, File "d:\sw\64\envs\rasa35\lib\asyncio\base_events.py", line 467, in run_until_complete return future.result() File "d:\sw\64\envs\rasa35\lib\asyncio\futures.py", line 294, in result raise self._exception File "d:\sw\64\envs\rasa35\lib\asyncio\tasks.py", line 240, in _step result = coro.send(None) File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\train.py", line 91, in train_async kwargs, File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\train.py", line 175, in _train_async_internal kwargs=kwargs, File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\train.py", line 210, in _do_training kwargs=kwargs, File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\train.py", line 339, in _train_core_with_validated_data kwargs=kwargs, File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\core\train.py", line 32, in train from rasa.core.agent import Agent File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\core\agent.py", line 16, in <module> from rasa.core.channels.channel import InputChannel, OutputChannel, UserMessage File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\core\channels\__init__.py", line 21, in <module> from rasa.core.channels.mattermost import MattermostInput # nopep8 File "d:\sw\64\envs\rasa35\lib\site-packages\rasa\core\channels\mattermost.py", line 2, in <module> from mattermostwrapper import MattermostAPI File "d:\sw\64\envs\rasa35\lib\site-packages\mattermostwrapper\__init__.py", line 1, in <module> from .wrapper import MattermostAPI File "d:\sw\64\envs\rasa35\lib\site-packages\mattermostwrapper\wrapper.py", line 89 print(f"The post channel token is: {self.token}")
Hi @godwin3737, the supported python versions for rasa are 3.6 and 3.7. That error is being thrown due to 3.5.