Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616388 - >=net-mail/offlineimap-7.0.14: TypeError due to byte to string conversion, Py-3.4 unsupported
Summary: >=net-mail/offlineimap-7.0.14: TypeError due to byte to string conversion, Py...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL: https://github.com/OfflineIMAP/offlin...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-23 13:13 UTC by Stefan Huber
Modified: 2017-06-18 00:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Huber 2017-04-23 13:13:05 UTC
A recent rebuild of offlineimap-7.0.14 caused python_single_target_python3_4 to be set instead of python_single_target_python2_7. As a result, offlineimap stopped working by throwing a TypeError when trying to convert binary data to a string. The same is true for offlineimap-7.1.0.

Switching back to python_single_target_python2_7 fixed the problem. Please also note that offlineimap says on its github page [1] in the Requirements section that experimental Python 3.4+ support has stalled, and there is a list of issues [2].

Hence, I suggest to use Python 2.7 by default for all versions of offlineimap again.


[1] https://github.com/OfflineIMAP/offlineimap#requirements--dependencies
[2] https://github.com/OfflineIMAP/offlineimap/issues?q=is%3Aissue+is%3Aopen+label%3APy3
Comment 1 bugs.reporter 2017-04-26 01:04:04 UTC
confirm that, got error message like:

IMAP4 protocol error: program error: <class 'TypeError'> - can't use a bytes pattern on a string-like object
Comment 2 Axel Fischer 2017-05-08 03:47:34 UTC
I can confirm the error and the suggested solution by the OP.
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-06-18 00:20:30 UTC
confirming as well, going to remove py3 as supported by offlineimap