brute icon indicating copy to clipboard operation
brute copied to clipboard

Execution error in Phyton 3.7.4. Error in brute module

Open emiliosmoreno opened this issue 6 years ago • 10 comments

File "C:\Python37-32\lib\site-packages\brute.py", line 68 product( ^ SyntaxError: Generator expression must be parenthesized

emiliosmoreno avatar Aug 14 '19 18:08 emiliosmoreno

I modified the brute.py file

emiliosmoreno avatar Aug 14 '19 19:08 emiliosmoreno

File "C:\Python37-32\lib\site-packages\brute.py", line 68 product( ^ SyntaxError: Generator expression must be parenthesized

I still get the same error at python 3.7.3

Yildirimm avatar Oct 11 '19 14:10 Yildirimm

I get the same problem for python 3.7.1

erdemcagri avatar Nov 07 '19 19:11 erdemcagri

Even after updating Django ! I still get the same error !

Alar31000 avatar Nov 18 '19 04:11 Alar31000

Hi!

Not using Django at all, Python 3.8.0 in fresh virtualenv. Same issue.

SudoCerb avatar Dec 25 '19 16:12 SudoCerb

Same for Python 3.8.1

thomai avatar Dec 28 '19 14:12 thomai

I think this library was supposed to be made for Python 2

hackermondev avatar Jul 18 '20 12:07 hackermondev

replace last few line return with the code .This will works i modify it

return ( ''.join(candidate) for candidate in chain.from_iterable((product(choices,repeat = i,) for i in range(start_length if ramp else length, length + 1))))

mackhossain avatar Jan 18 '21 21:01 mackhossain

File "C:\Python37-32\lib\site-packages\brute.py", line 68 product( ^ i got it too.

pheasa avatar Jul 06 '21 02:07 pheasa

now i solve my problem. I have change to

return ( ''.join(candidate) for candidate in chain.from_iterable( [product( choices, repeat = i, ) for i in range(start_length if ramp else length, length + 1)] ) )

in location C:\Users\pheas\AppData\Local\Programs\Python\Python39\lib\site-packages\brute.py. hope you enjoy.

pheasa avatar Jan 07 '22 04:01 pheasa