Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 616
Pinkesh Darji Avatar asked Sep 02 '25 09:09

Pinkesh Darji


1 Answers

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.

like image 70
Pinkesh Darji Avatar answered Sep 05 '25 00:09

Pinkesh Darji