Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to train any model, logger unable to find preprocess_log file #10

Open
shikhar1verma opened this issue Apr 15, 2020 · 0 comments

Comments

@shikhar1verma
Copy link

Description

  • I first cloned the project.
  • Then installed all the packages from requirements.txt
  • Then created a file in ~/.jupyter/jupyter_notebook_config.py with required configuration.
  • Then run the command python app.py inside the project which started the project.
  • Opened the url given in the server.
  • Following exception occurred in flask backend.
E0415 17:17:06.996753 140619679872768 app.py:1891] Exception on /get_jupyter [POST]
Traceback (most recent call last):
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "app.py", line 60, in get_jupyter
    copy_file_to_destination(from_path, to_path)
  File "/home/shikhar/Documents/data-science/internal-text2vec/ref-projects/MatchZoo-Studio/utils.py", line 152, in copy_file_to_destination
    f2 = open(path2, 'w', encoding='utf-8')
FileNotFoundError: [Errno 2] No such file or directory: '/home/shikhar/Documents/data-science/internal-text2vec/ref-projects/MatchZoo-Studio/matchzoo_temp_files/jupyters/5g7h8dov0q3.ipynb'
I0415 17:17:06.997191 140619679872768 _internal.py:122] 127.0.0.1 - - [15/Apr/2020 17:17:06] "POST /get_jupyter HTTP/1.1" 500 -
  • Then opened the DSSM tab. Where tried to train model with toy dataset with default hyper-parameters. Then following right pane went black. Like following:
    matchzoo-studio-issue-2

  • Then checked the server. It was giving the following exception continuously:

E0415 17:36:22.598190 140619679872768 app.py:1891] Exception on /preprocess/dssm [POST]
Traceback (most recent call last):
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/shikhar/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/shikhar/Documents/data-science/internal-text2vec/ref-projects/MatchZoo-Studio/preprocess.py", line 16, in model_preprocess
    with open(ROOT_PATH + 'matchzoo_temp_files/logger/' + preprocess_id + '.preprocess_log') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/shikhar/Documents/data-science/internal-text2vec/ref-projects/MatchZoo-Studio/matchzoo_temp_files/logger/22taqxefdi2.preprocess_log'
I0415 17:36:22.600006 140619679872768 _internal.py:122] 127.0.0.1 - - [15/Apr/2020 17:36:22] "POST /preprocess/dssm HTTP/1.1" 500 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant