Skip to content
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

Got ConfigParser.NoSectionError: No section: 'ints' #81

Open
Rabisha opened this issue Mar 10, 2018 · 7 comments
Open

Got ConfigParser.NoSectionError: No section: 'ints' #81

Rabisha opened this issue Mar 10, 2018 · 7 comments

Comments

@Rabisha
Copy link

Rabisha commented Mar 10, 2018

File "app.py", line 28, in
sess, model, enc_vocab, rev_dec_vocab = execute.init_session(sess, conf='seq2seq_serve.ini')
File "execute.py", line 295, in init_session
gConfig = get_config(conf)
File "execute.py", line 55, in get_config
_conf_ints = [(key, int(value)) for key, value in parser.items('ints')]
File "lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'ints'

I am getting this error after training and while testing.Anyone help me to correct this issue.

@DvHuang
Copy link

DvHuang commented Mar 29, 2018

set the .ini file to be absolute path

@dumax315
Copy link

how

@tppreetham
Copy link

@DvHuang , that doesn't seem to work either.

@publicmanice
Copy link

in def get_config function (in execute.py) try set absolute path for 'seq2seq.ini'. Should look like '/path/to/dir/seq2seq.ini'. Try define absolute paths for working_dir/ in the .inis as well.

@m4gr4th34
Copy link

m4gr4th34 commented Jun 21, 2019

Just comment these bits out as shown here, it got me to the next step:
#if len(sys.argv) - 1:
# gConfig = get_config(sys.argv[2]) <---- this line is messing up the file path request
#else:
# get configuration from seq2seq.ini
gConfig = get_config()

@rajdharmendraiiitg
Copy link

Give the absolute path for 'seq2seq.ini'. Should look like '/path/to/dir/seq2seq.ini'.
then run :$ python ui/app.py

Its work for me.

@itssuryaprasanth
Copy link

Thanks , By giving absolute path for "config.ini" , it is working for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants