vishakha-lall / MapBot

A chatbot developed in Python
MIT License
145 stars 108 forks source link

Error during setup #23

Closed adityabisoi closed 4 years ago

adityabisoi commented 4 years ago

After installing all the required packages, running python init.py gives the error :

[nltk_data] Downloading package punkt to /home/<user>/nltk_data...
[nltk_data]   Package punkt is already up-to-date!
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data]     /home/<user>/nltk_data...
[nltk_data]   Package averaged_perceptron_tagger is already up-to-
[nltk_data]       date!
[nltk_data] Downloading package stopwords to
[nltk_data]     /home/<user>/nltk_data...
[nltk_data]   Package stopwords is already up-to-date!
Traceback (most recent call last):
  File "init.py", line 3, in <module>
    clf, learn_response = setup()    
  File "/home/<user>/girlscript/MapBot/chatbot.py", line 18, in setup
    clf = classify_model()
  File "/home/<user>/girlscript/MapBot/utilities.py", line 25, in classify_model
    df = pd.read_csv(filepath_or_buffer = FNAME, )
  File "/home/<user>/anaconda3/envs/mapbot/lib/python3.7/site-packages/pandas/io/parsers.py", line 685, in parser_f
    return _read(filepath_or_buffer, kwds)
  File "/home/<user>/anaconda3/envs/mapbot/lib/python3.7/site-packages/pandas/io/parsers.py", line 457, in _read
    parser = TextFileReader(fp_or_buf, **kwds)
  File "/home/<user>/anaconda3/envs/mapbot/lib/python3.7/site-packages/pandas/io/parsers.py", line 895, in __init__
    self._make_engine(self.engine)
  File "/home/<user>/anaconda3/envs/mapbot/lib/python3.7/site-packages/pandas/io/parsers.py", line 1135, in _make_engine
    self._engine = CParserWrapper(self.f, **self.options)
  File "/home/<user>/anaconda3/envs/mapbot/lib/python3.7/site-packages/pandas/io/parsers.py", line 1917, in __init__
    self._reader = parsers.TextReader(src, **kwds)
  File "pandas/_libs/parsers.pyx", line 382, in pandas._libs.parsers.TextReader.__cinit__
  File "pandas/_libs/parsers.pyx", line 689, in pandas._libs.parsers.TextReader._setup_parser_source
FileNotFoundError: [Errno 2] File b'analysis\\featuresDump.csv' does not exist: b'analysis\\featuresDump.csv'
vishakha-lall commented 4 years ago

The error clearly mentions that it cannot find the file analysis\featuresDump.csv. Did you check that? Which OS are you using?

vishakha-lall commented 4 years ago

Please share your error with the community, it will be solved. Closing the issue here.