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

RuntimeError: generator raised StopIteration #20

Open
kurvaraviteja355 opened this issue Apr 18, 2021 · 1 comment
Open

RuntimeError: generator raised StopIteration #20

kurvaraviteja355 opened this issue Apr 18, 2021 · 1 comment

Comments

@kurvaraviteja355
Copy link

I installed all the dependencies but i dont know why i am getting the runtime error
C:\Users\home\Fake-Apache-Log-Generator>python apache-fake-log-gen.py
Traceback (most recent call last):
File "C:\Users\home\Fake-Apache-Log-Generator\apache-fake-log-gen.py", line 29, in iter
raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\home\Fake-Apache-Log-Generator\apache-fake-log-gen.py", line 62, in
for case in switch(output_type):
RuntimeError: generator raised StopIteration

@john-corcoran
Copy link

john-corcoran commented Nov 30, 2021

Hi, as a workaround, you can run in Python 3.6 or earlier and this error won't be thrown (the error may be related to new behaviour in Python 3.7 and later, as per https://stackoverflow.com/questions/51700960/runtimeerror-generator-raised-stopiteration-every-time-i-try-to-run-app)

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

2 participants