openai / baselines

OpenAI Baselines: high-quality implementations of reinforcement learning algorithms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

syntax error on baselines/common/dataset.py

veydan opened this issue · comments

I ran

python -m baselines.run --alg=a2c --env=HalfCheetah-v2 --num_timesteps=1e6

File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/google/home/weidanwu/Documents/RL/baselines/baselines/run.py", line 10, in
from baselines.common.vec_env import VecFrameStack, VecNormalize, VecEnv
File "baselines/common/init.py", line 3, in
from baselines.common.dataset import Dataset
File "baselines/common/dataset.py", line 50
def iterbatches(arrays, *, num_batches=None, batch_size=None, shuffle=True, include_final_partial_batch=True):

SyntaxError: invalid syntax

The syntax error points to the '*' in the in the iterbatches() call.

This is with python 2.7 and Tensorflow 1.14.0 on master branch. Running pytest also result in the same error for a whole bunch of different test, has anybody seen this error before? Thanks.

Just python version issue.