Open AkshayBhimani opened 3 years ago
@alwx Do you think this might be caused by the recent changes to Markdown lookup tables? 🤔
Technically, this repo is deprecated. It seems that I forgot to archive it.
Also, if memory serves, the code in this repo is from Rasa version 1.x
.
Actually, I might want to delete this repo. Pokemon a licensed part of Nintendo and we wouldn't want to suggest that we're using their IP.
@wochinge let me know when you're done debugging on that issue.
@koaning So will I able to use this repo or not after error solved?
You're free to clone the repo and do what you want with it, but we've stopped maintaining it and will be dropping the repo soon.
Hi I have the same issue with
Rasa Version : 2.6.1
Minimum Compatible Version: 2.6.0
Rasa SDK Version : 2.6.0
Rasa X Version : None
Python Version : 3.8.8
Operating System : Linux-5.4.0-74-generic-x86_64-with-glibc2.10
Python Path : /home/<username>/anaconda3/envs/rasa/bin/python
and my own project.
I think the offending line is actually here: https://github.com/RasaHQ/rasa/blob/d4d606b12370d440d9f9ed3f9e4d8e2a23b959b8/rasa/shared/nlu/training_data/training_data.py#L82
for some reason the lookup table contains either file pathes OR the loaded file content. If the content of the file is too long (in our case some hundred street names), the Pathlib excepts with OSError(36) "FilenameTooLong", and breaks training. Straight forward catching this exception solves the issue for me.
try:
if Path(potential_file).is_file():
try:
lookup_table["elements"] = rasa.shared.utils.io.read_file(
potential_file
)
return lookup_table
except (FileNotFoundError, UnicodeDecodeError):
return lookup_table
except OSError as exp:
if exp.errno == 36:
# lookup table element was already read as file and now reading it again turns into an error
# because the lookup table element may be to long for the pathlib
return lookup_table
@koaning My "fix" is only a workaround for the underlying problem, which is probably a bug in rasa core. Do you have a suggestion how to handle the problem or want me to debug/try sth. else?
I could try to create a minimal test case. Happy to help out any way possible.
@rlinke I might check the main Rasa repo for this bug. Mainly because it's unrelated to this repository, but also because somebody may already be working on a fix.
Hello, I'm using rasa 3.0, this bug still exist!
Rasa version: 2.5.1
Rasa SDK version (if used & relevant): 2.5.0
Python version: Python 3.8.5
Operating system (windows, osx, ...): Ubuntu(Linux)
Bug Getting file name too long error while traing Rasa .
Error :
basically its having issue with file named pokenames.txt in data directory
Steps I have followed To install rasa
pip install rasa
To train model
rasa train
Whole Error with Traceback :
Some Other Warnings :
Error can be solved if I have only some names in pokenames.txt