Bug 1708752

Summary: Webpy stop working in python3
Product: [Fedora] Fedora Reporter: Paweł <pmarciniak>
Component: python-webpyAssignee: Matthias Runge <mrunge>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 31CC: michaelbibby, mrunge
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-webpy-0.50-2.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-01 00:16:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paweł 2019-05-10 18:21:24 UTC
Description of problem:
Webpy stop working after update from python2 to python3

Version-Release number of selected component (if applicable):
python3-webpy-0.40.dev0-20170815gitb725a4f.fc30.noarch

How reproducible:
Run the example application from webpy site http://webpy.org/docs/0.3/tutorial

Steps to Reproduce:
Run python3 code.py

Actual results:
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/web/utils.py", line 526, in take
    yield next(seq)
StopIteration

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

Traceback (most recent call last):
  File "code.py", line 12, in <module>
    app = web.application(urls, globals())
  File "/usr/lib/python3.7/site-packages/web/application.py", line 62, in __init__
    self.init_mapping(mapping)
  File "/usr/lib/python3.7/site-packages/web/application.py", line 130, in init_mapping
    self.mapping = list(utils.group(mapping, 2))
  File "/usr/lib/python3.7/site-packages/web/utils.py", line 531, in group
    x = list(take(seq, size))
RuntimeError: generator raised StopIteration


Expected results:
http://0.0.0.0:8080/


Additional info:
This may help
https://github.com/webpy/webpy/issues?utf8=%E2%9C%93&q=stopiteration

Comment 1 Paweł 2019-09-22 14:56:50 UTC
Nothing has changed in Fedora 31 Beta

Comment 2 Paweł 2019-10-11 19:15:50 UTC
There is the stable version 0.40 https://github.com/webpy/webpy/commit/fa27cc510e39af9c32e015c8daf51023a6e80007
I make a package and this version works fine, but it requires python-cheroot, which is available only in Fedora 31. So I make a python-cheroot package for F30 and everything works fine.

Comment 3 Zhang Huangbin 2019-11-20 14:31:01 UTC
This issue has been fixed in web.py-0.40.

Comment 4 Fedora Update System 2020-03-23 09:59:19 UTC
FEDORA-2020-a320ec16e0 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-a320ec16e0

Comment 5 Fedora Update System 2020-03-24 01:51:57 UTC
FEDORA-2020-a320ec16e0 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-a320ec16e0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-a320ec16e0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-04-01 00:16:56 UTC
FEDORA-2020-a320ec16e0 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2020-04-01 16:31:57 UTC
FEDORA-2020-a320ec16e0 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.