Coder Social home page Coder Social logo

请教运行的问题 about gsil HOT 7 CLOSED

feeicn avatar feeicn commented on May 28, 2024
请教运行的问题

from gsil.

Comments (7)

FeeiCN avatar FeeiCN commented on May 28, 2024

配置有问题,贴下你的config.gsil配置文件看下

from gsil.

ximiluliyi avatar ximiluliyi commented on May 28, 2024

我的config.gsil配置如下:
[mail]
host : smtp.exmail.qq.com
port : 25
mails :131299××[email protected]
from : GSIL
password : ×××××
to : [email protected]
cc : [email protected]

[github]
clone: false
tokens : e9b055ad1ad07f41d5bcb32db58a80×××9306ad

from gsil.

FeeiCN avatar FeeiCN commented on May 28, 2024

看这行应该是你邮箱这行配置的有问题,尝试mails的冒号后面加个空格试试?

GSIL/config.gsil file configure failed.
Error: No section: '[email protected]'

或者将整个config删掉,然后再从模板copy一份试试

➜  gsil git:(master) ✗ cat config.gsil
[mail]
host : smtp.exmail.qq.com
port : 25
mails : [email protected]
from : GSIL
password : xxx
to : [email protected]
cc : [email protected]

[github]
clone: false
tokens : 6xxx

from gsil.

ximiluliyi avatar ximiluliyi commented on May 28, 2024

我重新按照您的提示做了, 又又又又报错了:

mail cc
Traceback (most recent call last):
File "/usr/lib/python3.6/configparser.py", line 789, in get
value = d[option]
File "/usr/lib/python3.6/collections/init.py", line 883, in getitem
return self.missing(key) # support subclasses that define missing
File "/usr/lib/python3.6/collections/init.py", line 875, in missing
raise KeyError(key)
KeyError: 'cc'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/farmsec/gsil/gsil/config.py", line 42, in get
value = config.get(level1, level2)
File "/usr/lib/python3.6/configparser.py", line 792, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'cc' in section: 'mail'
GSIL/config.gsil file configure failed.
Error: No option 'cc' in section: 'mail'
mail cc
Traceback (most recent call last):
File "/usr/lib/python3.6/configparser.py", line 789, in get
value = d[option]
File "/usr/lib/python3.6/collections/init.py", line 883, in getitem
return self.missing(key) # support subclasses that define missing
File "/usr/lib/python3.6/collections/init.py", line 875, in missing
raise KeyError(key)
KeyError: 'cc'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/farmsec/gsil/gsil/config.py", line 42, in get
value = config.get(level1, level2)
File "/usr/lib/python3.6/configparser.py", line 792, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'cc' in section: 'mail'
GSIL/config.gsil file configure failed.
Error: No option 'cc' in section: 'mail'
2018-11-26 09:51:16,223 [GSIL] [CRITICAL] Send mail failed
Traceback (most recent call last):
File "/home/farmsec/gsil/gsil/notification.py", line 70, in notification
s.login(mail, get('mail', 'password'))
File "/usr/lib/python3.6/smtplib.py", line 730, in login
raise last_exception
File "/usr/lib/python3.6/smtplib.py", line 721, in login
initial_response_ok=initial_response_ok)
File "/usr/lib/python3.6/smtplib.py", line 642, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'Error: \xc7\xeb\xca\xb9\xd3\xc3\xca\xda\xc8\xa8\xc2\xeb\xb5\xc7\xc2\xbc\xa1\xa3\xcf\xea\xc7\xe9\xc7\xeb\xbf\xb4: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256')
2018-11-26 09:51:17,165 [GSIL] [CRITICAL] GitHub [get_page] exception(code: 403 msg: {'documentation_url': 'https://developer.github.com/v3/#abuse-rate-limits', 'message': 'You have triggered an abuse detection mechanism. Please wait a few minutes before you try again.'} be8cbc7a52f2c3ad8052dc41×××4b1e64a4b2b0f

from gsil.

FeeiCN avatar FeeiCN commented on May 28, 2024

config.gsil中的cc是不是没填

raise KeyError(key)
KeyError: 'cc'

from gsil.

notwhy avatar notwhy commented on May 28, 2024

遇到相同问题,运用以下方法解决。需要个人qq开启smtp
https://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=371
在config password填写你开启后的授权码
地址改为smtp.qq.com
端口改为465即可

from gsil.

lipangbo avatar lipangbo commented on May 28, 2024

github tokens
Traceback (most recent call last):
File "H:\python\lib\configparser.py", line 1138, in _unify_values
sectiondict = self._sections[section]
KeyError: 'github'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "H:\GSIL\gsil\config.py", line 42, in get
value = config.get(level1, level2)
File "H:\python\lib\configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "H:\python\lib\configparser.py", line 1141, in _unify_values
raise NoSectionError(section)
configparser.NoSectionError: No section: 'github'
GSIL/config.gsil file configure failed.
Error: No section: 'github'
2020-08-08 18:55:23,084 [GSIL] [CRITICAL] github -> tokens sections error Traceb
ack (most recent call last):
File "H:\GSIL\gsil\config.py", line 53, in
if ',' in tokens:
TypeError: argument of type 'NoneType' is not iterable
大哥大姐们帮帮忙怎么会这样?

from gsil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.