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

ConfigParser.NoSectionError: No section: 'SMTP' #109

Open
abhisheksimion opened this issue May 6, 2020 · 1 comment
Open

ConfigParser.NoSectionError: No section: 'SMTP' #109

abhisheksimion opened this issue May 6, 2020 · 1 comment

Comments

@abhisheksimion
Copy link

abhisheksimion commented May 6, 2020

I get NoSectionError when I try to run "python api.py".

C:\Tools\Astra\API>python api.py
Traceback (most recent call last):
  File "api.py", line 38, in <module>
    from astra import *
  File "../astra.py", line 34, in <module>
    from utils.email_cron import email_start_cron
  File "../utils\email_cron.py", line 20, in <module>
    emails = send_email()
  File "../utils\sendemail.py", line 11, in __init__
    self.host = get_value('config.property','SMTP','ip')
  File "../utils\config.py", line 21, in get_value
    return Config.get(section,name)
  File "C:\Tools\Python27\lib\ConfigParser.py", line 607, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'SMTP'

Note: Using Python 2.7

@Sybrid203
Copy link

Error still persists.

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

2 participants