Description of problem: In python3-3.8.2-2.fc33.x86_64 email.FeedParser has been renamed to email.feedparser making "import httplib2" fail. 04:56:39 Traceback (most recent call last): 04:56:39 File "gce/fence_gce", line 18, in <module> 04:56:39 import googleapiclient.discovery 04:56:39 File "/usr/lib/python3.8/site-packages/googleapiclient/discovery.py", line 52, in <module> 04:56:39 import httplib2 04:56:39 File "/usr/lib/python3.8/site-packages/httplib2/__init__.py", line 28, in <module> 04:56:39 import email.FeedParser 04:56:39 ModuleNotFoundError: No module named 'email.FeedParser' # python3 Python 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import email.FeedParser Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'email.FeedParser' >>> import email.feedparser >>> Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Run python3 2. import httplib2 3. Actual results: Fails Expected results: Succeeds Additional info:
Fixed with sed, filed upstream. However it also tries to import httplib which is missing.
> Fixed with sed. Gwyn, there has been no commit from you about this. Side note: There has been no renaming, the module was always been called email.parser.FeedParser, but there was some internal import that exposed it trough email.FeedParser. This blocks rebuilds for Python 3.9.
No, my apologies, I submitted the comment by accident. There's a lot more that needs fixing than simply a sed, it's in the upstream ticket.
Looking at the code I guess the python2 folder is getting installed instead of python3 folder. I believe this commit https://src.fedoraproject.org/rpms/python-httplib2/c/6463ecb14cc627d4a0723ffce927d34702d06020?branch=master has introduced this regression.
I'll prep a PR in couple hours (I have a FEESCo meeting now).
https://src.fedoraproject.org/rpms/python-httplib2/pull-request/2
Merged and built, thank you!