Invalid syntax ../template/config.py
ShuangjunLiu opened this issue · 2 comments
ShuangjunLiu commented
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.
classner commented
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
ShuangjunLiu commented
Thank you. It works.
I uploaded the code from windows. I think that was the cause for symlink
failure.
ᐧ
…On Fri, Feb 23, 2018 at 8:27 AM, Christoph Lassner ***@***.*** > wrote:
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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AS9cA77Aps9tSMbxfkd2jVTiJSVXoculks5tXrymgaJpZM4SQYrT>
.
--
Best,
Shuangjun Liu