classner/generating_people

Invalid syntax ../template/config.py

ShuangjunLiu opened this issue · 2 comments

I ran the code with
./generate 20

I got following error


2018-02-22 23:53:03,842 __main__ INFO Running on host: aclab-H97M-D3H
2018-02-22 23:53:03,843 __main__ INFO Running mode `sample` for experiment `experiments/config/LSM`.
Traceback (most recent call last):
  File "./run.py", line 354, in <module>
    cli()
  File "/home/jun/miniconda3/envs/py2.7/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/jun/miniconda3/envs/py2.7/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/jun/miniconda3/envs/py2.7/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/jun/miniconda3/envs/py2.7/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "./run.py", line 78, in cli
    path.join(exp_name, 'config.py')) # source this one error?
  File "experiments/config/LSM/config.py", line 1
    ../template/config.py
    ^
SyntaxError: invalid syntax

It seems the syntax can't be recognized
../template/config.py

I am running it on
Ubuntu 16.04
python 2.7 (conda)
tensorflow 1.4

Thanks.

Hi Shuangjun,

this is a git-related error. This file must be a symlink to '../template/config.py', which is automatically created if you git clone the repository, but probably not if you download and unpack it. Alternatively, you can also symlink the files manually (this goes for all files in the folder experiments/config/LSM, except for options.py).

Best,
Christoph