You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Installed gmmreg
2. Followed the instructions in Python/readmetxt
cd c:\gmmreg\data
# Start python ....
import gmmreg
gmmreg.test('fish_partial.ini')
What is the expected output? What do you see instead?
Python dumps out the following:
gmmreg.test('fish_partial.ini')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/gmmreg/_demo.py", line 21, in test
model,scene,after_tps = _core.run_ini(f_config)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/gmmreg/_core.py", line 227, in run_ini
model_file = c.get(section_common,'model')
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ConfigParser.py", line 511, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'Common'
Looks like you're missing the 'Common' Section in your ini file.
What version of the product are you using? On what operating system?
SVN Checkout on 3/18/2009 on Mac OS X 10.5.6
Please provide any additional information below.
I'm interested in trying out your technique, but without a working example I'm
unable to use your code.
Original issue reported on code.google.com by bschlin...@gmail.com on 20 Mar 2009 at 4:44
The text was updated successfully, but these errors were encountered:
The ini file sections defined in _core.py do not match the sections in your
sample files. Here's the changes to
the _code.py to fix this:
222,223c222,223
< section_common = 'Common'
< section_option = 'gmmreg_tps_L2_KC'
---
> section_common = 'FILES'
> section_option = 'GMMREG_OPT'
245c245
< normalize_flag = int(c.get(section_common,'normalize'))
---
> normalize_flag = int(c.get(section_option,'normalize'))
Original comment by bschlin...@gmail.com on 20 Mar 2009 at 5:26
Original issue reported on code.google.com by
bschlin...@gmail.com
on 20 Mar 2009 at 4:44The text was updated successfully, but these errors were encountered: