facebookresearch / facebookresearch/fairo

'interaction_loggings.json' does not exist when run the agent

Open
#527 1 comment 0 reactions 2 assignees Claimed by @Rebecca-Qian View on GitHub
hack-session-worthy
Dominant language
Jupyter Notebook
Stars
929
Forks
123
PR merge metrics
No merged PRs in 30d

Description

## Type of Issue

Select the type of issue:
- [x] Bug report (to report a bug)
- [ ] Feature request (to request an additional feature)
- [ ] Tracker (I am just using this as a tracker)
- [ ] Refactor request
- [ ] Documentation Ask

## Description

No such file 'interaction_loggings.json' while running the agent. See the error log for ref.

```
% python craftassist_agent.py
starting dashboard...
* Serving Flask app "droidlet.dashboard" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
2021-06-27 19:39:19.908591: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-06-27 19:39:19.908627: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
INFO:root:LOG LEVEL: 20
2021-06-27 19:39:23,698 [craftassist_agent.py:448 - () INFO]: LOG LEVEL: 20
Rootdir /private/home/yuxuans/Workspace/tmp/droidlet
An error occurred (403) when calling the HeadBucket operation: Forbidden
Set up boto3 s3 client, attempting to download internal resources.
An error occurred (403) when calling the HeadObject operation: Forbidden
agent path /private/home/yuxuans/Workspace/tmp/droidlet/agents/craftassist/
~/Workspace/tmp/droidlet/agents/craftassist ~/Workspace/tmp/droidlet/agents/craftassist

Calculating checksum for /private/home/yuxuans/Workspace/tmp/droidlet/agents/craftassist/models/semantic_parser
Saving to /private/home/yuxuans/Workspace/tmp/droidlet/agents/craftassist/models/nsp_checksum.txt
Saved checksum e78d391d01079fa3f99d61d434d8196b66a95f1d

Comparing nsp checksums
Local e78d391d01079fa3f99d61d434d8196b66a95f1d
Latest e78d391d01079fa3f99d61d434d8196b66a95f1d
Local nsp directory is up to date.

Calculating checksum for /private/home/yuxuans/Workspace/tmp/droidlet/agents/craftassist/datasets
Saving to /private/home/yuxuans/Workspace/tmp/droidlet/agents/craftassist/datasets/checksum.txt
Saved checksum 6e3109f4b4e396477d051401006907611a42516a

Comparing datasets checksums
Local 6e3109f4b4e396477d051401006907611a42516a
Latest 6e3109f4b4e396477d051401006907611a42516a
Local datasets directory is up to date.
INFO:root:Agent.__init__ started
2021-06-27 19:39:29,871 [loco_mc_agent.py:35 - __init__() INFO]: Agent.__init__ started
INFO:root:Attempting to connect to port 25565
2021-06-27 19:39:29,872 [craftassist_agent.py:378 - init_physical_interfaces() INFO]: Attempting to connect to port 25565
INFO:root:Logged in to server
2021-06-27 19:39:30,588 [craftassist_agent.py:380 - init_physical_interfaces() INFO]: Logged in to server
INFO:root:Initialized agent memory
2021-06-27 19:39:39,303 [craftassist_agent.py:174 - init_memory() INFO]: Initialized agent memory
INFO:root:using model_dir=models/semantic_parser/ttad_bert_updated
2021-06-27 19:39:39,316 [nsp_model_wrapper.py:32 - __init__() INFO]: using model_dir=models/semantic_parser/ttad_bert_updated
INFO:root:Initialized agent inventory
2021-06-27 19:39:50,691 [craftassist_agent.py:158 - init_inventory() INFO]: Initialized agent inventory
INFO:root:creating the connection to db file: 'dashboard_data.db'
2021-06-27 19:39:50,691 [loco_mc_agent.py:74 - init_event_handlers() INFO]: creating the connection to db file: 'dashboard_data.db'
INFO:root:creating all tables for Visual programming and error annotation ...
2021-06-27 19:39:50,692 [loco_mc_agent.py:77 - init_event_handlers() INFO]: creating all tables for Visual programming and error annotation ...
Exception in thread Thread-72:
Traceback (most recent call last):
File "/private/home/yuxuans/.conda/envs/minecraft_env/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/private/home/yuxuans/.conda/envs/minecraft_env/lib/python3.7/site-packages/sentry_sdk/integrations/threading.py", line 47, in run
reraise(*_capture_exception())
File "/private/home/yuxuans/.conda/envs/minecraft_env/lib/python3.7/site-packages/sentry_sdk/_compat.py", line 52, in reraise
raise value
File "/private/home/yuxuans/.conda/envs/minecraft_env/lib/python3.7/site-packages/sentry_sdk/integrations/threading.py", line 45, in run
return old_run(*a, **kw)
File "/private/home/yuxuans/.conda/envs/minecraft_env/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/private/home/yuxuans/.conda/envs/minecraft_env/lib/python3.7/site-packages/socketio/server.py", line 680, in _handle_event_internal
r = server._trigger_event(data[0], namespace, sid, *data[1:])
File "/private/home/yuxuans/.conda/envs/minecraft_env/lib/python3.7/site-packages/socketio/server.py", line 704, in _trigger_event
return self.handlers[namespace][event](*args)
File "/private/home/yuxuans/Workspace/tmp/droidlet/agents/loco_mc_agent.py", line 178, in log_interaction_data
self.interactionLogger.logInteraction(interactionData)
File "/private/home/yuxuans/Workspace/tmp/droidlet/droidlet/perception/semantic_parsing/utils/interaction_logger.py", line 29, in logInteraction
with open (loggingsFile, 'r', encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'interaction_loggings.json'
```

## Steps to reproduce

Run `python craftassist_agent.py`

## Links to any relevant pastes or documents

Please post links to any relevant documents that might contain any extra information.

## Checklist

Use this checklist if you are using this issue as a tracker:

- [ ] Task 1
- [ ] Task 2
- [ ] Task 3 ...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.