Open
Cr2zyIvan
opened this issue 8 years ago
•
4 comments
输入-b 年-月-日 后,出现如下报错。
Traceback (most recent call last):
File "C:\Python27\Scripts\genpass-script.py", line 9, in
load_entry_point('genpass==0.2.1', 'console_scripts', 'genpass')()
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\command.py
", line 30, in main
map(gen.genpass, person_list)
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\command.py
", line 20, in genpass
for i in passwords:
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\lib\person
.py", line 121, in generate_password
self.generate_source_dict()
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\lib\person
.py", line 85, in generate_source_dict
returned = generator.generator_map(data, rule)
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\generator.
py", line 20, in generator_map
result.update(map(format_func, data))
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\rules\buil
t_in.py", line 32, in
lambda x: time.strftime('%y%-m%-d', x),
ValueError: Invalid format string
依然报错- -
C:\Python27\Scripts>genpass.exe -b 2010-10-10
Traceback (most recent call last):
File "C:\Python27\Scripts\genpass-script.py", line 9, in
load_entry_point('genpass==0.2.1', 'console_scripts', 'genpass')()
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\command.py
", line 30, in main
map(gen.genpass, person_list)
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\command.py
", line 20, in genpass
for i in passwords:
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\lib\person
.py", line 121, in generate_password
self.generate_source_dict()
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\lib\person
.py", line 85, in generate_source_dict
returned = generator.generator_map(data, rule)
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\generator.
py", line 20, in generator_map
result.update(map(format_func, data))
File "C:\Python27\lib\site-packages\genpass-0.2.1-py2.7.egg\genpass\rules\buil
t_in.py", line 32, in
lambda x: time.strftime('%y%-m%-d', x),
ValueError: Invalid format string