-
Notifications
You must be signed in to change notification settings - Fork 35
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
TypeError: run() missing 1 required positional argument: 'pymongo_client' #1
Comments
Apologies, I forgot to specify a default of None for the pymongo argument. I've just committed a change, it should fix this. |
Thanks for the comment. I got an error that self.args does not have attribute central_skip. I guess it is a similar issue. I just commented these two lines out and at least the algorithm seems to run properly. |
Thanks! I've removed that too (it was an option from early on in testing to have a skip connection in qCentral that wasn't used). logging.py (https://github.com/oxwhirl/wqmix/blob/master/src/utils/logging.py) gathers the various things which are logged and then sacred saves them (to disk by default, sacred has other options for storing results like a mongodb). |
Sacred creates a .json file? In results several *.json files are saved, but none that have the evolution of "battle_won_mean" across iterations. I'm wondering if there's a bug or I should be looking somewhere else or there is a flag I must turn on. One other question: If I run the code on the terminal everything seems to be ok. But if I try to run it on Pycharm "websocket.create_connection(url, timeout=timeout_seconds)" always times out. I know this is not a firewall issue, any thoughts on this? |
Under the results/sacred/ there should be a directory for each run where sacred is saving stuff (config.json, cout.txt, info.json, run.json, etc). I usually run the code from PyCharm (using a venv) and haven't had problems with SC2 timing out. |
Thanks for the info. I'm using Pycharm (with a conda env) and it can never connect (same issue with Pymarl), it gives after around 110 attempts. I get: ... I guess I'll keep looking. Thanks for the quick replies and if you think of something related to this issue please do tell :) |
It's weird that it can start the SC2 instance but can't connect to it. Are you able to start and connect to a jupyter notebook from within your pycharm (independent of PyMARL)? |
It's weird that it can start the SC2 instance but can't connect to it. -> Agreed XD Are you able to start and connect to a jupyter notebook from within your pycharm (independent of PyMARL)? -> No idea, I never tried connecting to a jupyter notebook from within pycharm. I'll give it a shot, see what happens. |
Hey by running install_sc2.sh all necessary components are installed? Or is it also necessary to install the free version of SCII from https://starcraft2.com/en-us/? I installed the free version and I'm starting to think this is the problem. |
install_sc2.sh should install all the necessary SC2 files to run the experiments with. When I train an agent I don't get any graphical output on Linux. |
Hi when I run the example "" I get the following error with pymongo. Any idea on how to fix this?
Thanks in advance
:/pymarl# python3 src/main.py --config=qmix --env-config=sc2 with env_args.map_name=2s3z
pygame 2.0.0 (SDL 2.0.12, python 3.5.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
src/main.py:79: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config_dict = yaml.load(f)
src/main.py:49: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config_dict = yaml.load(f)
Traceback (most recent call last):
File "src/main.py", line 85, in
alg_config = _get_config(params, "--config", "algs")
File "src/main.py", line 47, in _get_config
with open(os.path.join(os.path.dirname(file), "config", subfolder, "{}.yaml".format(config_name)), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'src/config/algs/qmix.yaml'
root@6c7269d7eab6:/pymarl# python3 src/main.py --config=ow_qmix --env-config=sc2 with env_args.map_name=3s5z w=0.5 epsilon_anneal_time=1000000
pygame 2.0.0 (SDL 2.0.12, python 3.5.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
src/main.py:79: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config_dict = yaml.load(f)
src/main.py:49: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config_dict = yaml.load(f)
[INFO 18:08:50] root Saving to FileStorageObserver in results/sacred.
[DEBUG 18:08:50] pymarl Using capture mode "fd"
[INFO 18:08:50] pymarl Running command 'my_main'
[INFO 18:08:50] pymarl Started run with ID "1"
[DEBUG 18:08:50] my_main Started
[ERROR 18:08:50] pymarl Failed after 0:00:00!
Traceback (most recent calls WITHOUT Sacred internals):
File "src/main.py", line 35, in my_main
run(_run, config, _log)
TypeError: run() missing 1 required positional argument: 'pymongo_client'
The text was updated successfully, but these errors were encountered: