Search code examples
pycharmpyramid

Getting configparser.DuplicateOptionError: option 'pyramid.includes' in section 'app:main' already exists


I have installed pycharm professional version today. I have created new project with pyramid with starter scaffold. Now while trying to run this project it gives following error.

configparser.DuplicateOptionError: While reading from 'C:\Users\Pinkesh\PycharmProjects\todo2\development.ini' [line 15]: option 'pyramid.includes' in section 'app:main' already exists

Click here to see pyramid configparser.DuplicateOptionError error


Solution

  • In development.ini Change from :

    pyramid.includes = pyramid_jinja2
    
    use = egg:untitled1
    
    pyramid.reload_templates = true
    pyramid.debug_authorization = false
    pyramid.debug_notfound = false
    pyramid.debug_routematch = false
    pyramid.default_locale_name = en
    pyramid.includes = pyramid_debugtoolbar
    

    To:

    pyramid.includes = pyramid_jinja2
                       pyramid_debugtoolbar
    use = egg:untitled1
    
    pyramid.reload_templates = true
    pyramid.debug_authorization = false
    pyramid.debug_notfound = false
    pyramid.debug_routematch = false
    pyramid.default_locale_name = en
    

    Now run setup.py develop and then run development.ini And issue resolved. Thanks.