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

python multiprocessing pool.map errors #37

Open
adamplatski opened this issue Nov 2, 2021 · 2 comments
Open

python multiprocessing pool.map errors #37

adamplatski opened this issue Nov 2, 2021 · 2 comments

Comments

@adamplatski
Copy link

I have included pictures of the same errors in powershell and on centOS8.

I've also included one picture of the pool.py errors at line 48 "in mapstar return list(map(*args))" and the GitDorker.py error at line 325 " line 325, in pool.map(api_search, url_dict)".

The other picture is the errors in GitDorker.py at line 140 and 164
" line 140, in token_round_robin current_token = tokens_list[n] IndexError: list index out of range"
"line 164, in api_search headers = {"Authorization": "token " + token_round_robin()}"

←[0mTraceback (most recent call last):$$$$$$$$ Dorking In Progress $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 3/240
File "C:\Users\GuyWhoNotSoSmart\GitDorker\GitDorker.py", line 325, in
pool.map(api_search, url_dict)
File "C:\Users\GuyWhoNotSoSmart\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "C:\Users\GuyWhoNotSoSmart\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\Users\GuyWhoNotSoSmart\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Users\GuyWhoNotSoSmart\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 48, in mapstar
return list(map(*args))
File "C:\Users\GuyWhoNotSoSmart\GitDorker\GitDorker.py", line 164, in api_search
headers = {"Authorization": "token " + token_round_robin()}
File "C:\Users\GuyWhoNotSoSmart\GitDorker\GitDorker.py", line 140, in token_round_robin
current_token = tokens_list[n]
IndexError: list index out of range
Screenshot (148)_LI
Screenshot (149)
Screenshot (150)_LI
Screenshot (151)_LI

@adamplatski adamplatski changed the title python multiprocessing errors python multiprocessing pool.map errors Nov 3, 2021
@haonanduanmu
Copy link

Hi, have you solved this problem? I meet the same question. QWQ

@bakliwalp
Copy link

bakliwalp commented Jul 8, 2022

@haonanduanmu , I guess the issue is that you don't have any active personal access token file. Google how to create Github Personal Access Token file and add it to the tf/tokensfile and you are good to go then.

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

3 participants