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

Executing python version of gmmreg with supplied sample data fails #2

Open
GoogleCodeExporter opened this issue Apr 23, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

Thanks and fixed

Original comment by bing.j...@gmail.com on 31 Oct 2009 at 4:03

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

No branches or pull requests

1 participant