"rasa x" command failed on LINUX with BlockingIOError: [Errno 11] write could not complete without blocking

HI Team, I have setup a virtual environment in Linux/RHEL. Installed RASA 0.32 version on Python 3.7.3 version. When I execute β€˜rasa init’ an error occurs as below.

Kindly help me fix.

$ rasa init Welcome to Rasa! :robot:

To get started quickly, an initial project will be created. If you need some help, check out the documentation at Introduction to Rasa Open Source. Now let’s start! :point_down:t4:

? Please enter a path where the project will be created [default: current directory] . ? Directory β€˜/chatbot’ is not empty. Continue? Yes Created project directory at β€˜/chatbot’. Finished creating project structure. ? Do you want to train an initial model? :muscle:t4: Yes Training an initial model… Training Core model… Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 3369.46it/s, # trackers=1] Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 1449.41it/s, # trackers=5] Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 334.19it/s, # trackers=20] Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 242.37it/s, # trackers=24] Processed trackers: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 1665.07it/s, # actions=16] Processed actions: 16it [00:00, 11286.39it/s, # examples=16] Processed trackers: 2%|β–ˆβ–Š | 5/231 [00:00<00:00, 1478.43it/s, # actions=17] Traceback (most recent call last): File β€œ/chatbot/rasax/bin/rasa”, line 10, in sys.exit(main()) File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/main.py”, line 92, in main cmdline_arguments.func(cmdline_arguments) File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/cli/scaffold.py”, line 206, in run init_project(args, path) File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/cli/scaffold.py”, line 118, in init_project print_train_or_instructions(args, path) File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/cli/scaffold.py”, line 58, in print_train_or_instructions args.model = rasa.train(domain, config, training_files, output) File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/train.py”, line 50, in train additional_arguments=additional_arguments, File β€œuvloop/loop.pyx”, line 1456, in uvloop.loop.Loop.run_until_complete File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/train.py”, line 101, in train_async additional_arguments, File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/train.py”, line 188, in _train_async_internal additional_arguments=additional_arguments, File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/train.py”, line 223, in _do_training additional_arguments=additional_arguments, File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/train.py”, line 361, in _train_core_with_validated_data additional_arguments=additional_arguments, File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/core/train.py”, line 66, in train agent.train(training_data, **additional_arguments) File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/core/agent.py”, line 752, in train self.policy_ensemble.train(training_trackers, self.domain, **kwargs) File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/core/policies/ensemble.py”, line 124, in train policy.train(training_trackers, domain, **kwargs) File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/core/policies/ted_policy.py”, line 296, in train training_data = self.featurize_for_training(training_trackers, domain, **kwargs) File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/core/policies/policy.py”, line 86, in featurize_for_training training_data = self.featurizer.featurize_trackers(training_trackers, domain) File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/core/featurizers.py”, line 402, in featurize_trackers trackers, domain File β€œ/chatbot/rasax/lib/python3.7/site-packages/rasa/core/featurizers.py”, line 644, in training_states_and_actions {"# actions": β€œ{:d}”.format(len(trackers_as_actions))} File β€œ/chatbot/rasax/lib/python3.7/site-packages/tqdm/std.py”, line 1412, in set_postfix self.refresh() File β€œ/chatbot/rasax/lib/python3.7/site-packages/tqdm/std.py”, line 1336, in refresh self.display() File β€œ/chatbot/rasax/lib/python3.7/site-packages/tqdm/std.py”, line 1469, in display self.sp(self.repr() if msg is None else msg) File β€œ/chatbot/rasax/lib/python3.7/site-packages/tqdm/std.py”, line 305, in print_status fp_write(’\r’ + s + (’ ’ * max(last_len[0] - len_s, 0))) File β€œ/chatbot/rasax/lib/python3.7/site-packages/tqdm/std.py”, line 298, in fp_write fp.write(_unicode(s)) BlockingIOError: [Errno 11] write could not complete without blocking

@sadanand81 Configuration of your virtual environment in Linux/RHEL?

@sadanand81 Please change the topic to Rasa X.

It’s PYTHON 3.7.3 version with PIP on 19.0

@sadanand81 RAM? HDD? CPU? or you just working on Linux or Window with Virtual Environment. @sadanand81 What is your rasa version? pip --version

Kindly find the below details. RAM:- total used free shared buff/cache available Mem: 7 0 2 0 4 6 Swap: 1 0 1

HDD for the file system is 50 GB

CPU :- CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Platinum 8160 CPU @ 2.10GHz Stepping: 4 CPU MHz: 2095.078

Kindly let me know the steps to fix the error.

We are on RHEL 7 with below configuration of system $ free -g total used free shared buff/cache available Mem: 7 0 2 0 4 6 Swap: 1 0 1

Space on file system is 50 GB $ ulimit -an address space limit (Kibytes) (-M) unlimited core file size (blocks) (-c) 0 cpu time (seconds) (-t) unlimited data size (Kibytes) (-d) unlimited file size (blocks) (-f) unlimited locks (-x) unlimited locked address space (Kibytes) (-l) 64 message queue size (Kibytes) (-q) 800 nice (-e) 0 nofile (-n) 1024 nproc (-u) 4096 pipe buffer size (bytes) (-p) 4096 max memory size (Kibytes) (-m) unlimited rtprio (-r) 0 socket buffer size (bytes) (-b) 4096 sigpend (-i) 31194 stack size (Kibytes) (-s) 8192 swap size (Kibytes) (-w) not supported threads (-T) not supported process size (Kibytes) (-v) unlimited

$ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Platinum 8160 CPU @ 2.10GHz Stepping: 4 CPU MHz: 2095.078 BogoMIPS: 4190.15 Hypervisor vendor: VMware Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 33792K NUMA node0 CPU(s): 0,1 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt arat spec_ctrl intel_stibp flush_l1d arch_capabilities

When I execute β€œrasa init” I get the below error. File β€œ/chatbot/classbot/lib/python3.7/site-packages/tqdm/std.py”, line 1336, in refresh self.display() File β€œ/chatbot/classbot/lib/python3.7/site-packages/tqdm/std.py”, line 1469, in display self.sp(self.repr() if msg is None else msg) File β€œ/chatbot/classbot/lib/python3.7/site-packages/tqdm/std.py”, line 305, in print_status fp_write(’\r’ + s + (’ ’ * max(last_len[0] - len_s, 0))) File β€œ/chatbot/classbot/lib/python3.7/site-packages/tqdm/std.py”, line 298, in fp_write fp.write(_unicode(s)) BlockingIOError: [Errno 11] write could not complete without blocking