Giter Site home page Giter Site logo

Comments (4)

y0rkl4u avatar y0rkl4u commented on July 22, 2024 2

这个错误应该是genpAss/genpass/rules/built_in.py中的date_formats 最后几行的格式错误吧,%位置不正确:
lambda x: time.strftime('%y%-m%-d', x),
lambda x: time.strftime('%Y%-m%-d', x),
lambda x: time.strftime('%-m%-d', x)
改为如下即可:
lambda x: time.strftime('%y-%m-%d', x),
lambda x: time.strftime('%Y-%m-%d', x),
lambda x: time.strftime('%m-%d', x)

from genpass.

debugray avatar debugray commented on July 22, 2024 1

我也遇到这个报错,但是查资料显示The usage of strftime("%s") is platform dependent and seems to not work on windows.

from genpass.

RicterZ avatar RicterZ commented on July 22, 2024

-b 2010-10-10

from genpass.

Cr2zyIvan avatar Cr2zyIvan commented on July 22, 2024

依然报错- -
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

from genpass.

Related Issues (11)

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.