Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481518 - /usr/sbin/archive-conf is not compatible with python3
Summary: /usr/sbin/archive-conf is not compatible with python3
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 472632
  Show dependency tree
 
Reported: 2013-08-18 06:40 UTC by Yichao Zhou
Modified: 2013-08-22 04:51 UTC (History)
0 users

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 Yichao Zhou 2013-08-18 06:40:01 UTC
In archive-conf, it has

try:
    import fchksum
    def perform_checksum(filename): return fchksum.fmd5t(filename)
except ImportError:
    import md5
....

But either fchksum and md6 does not support python3.

Reproducible: Always

Actual Results:  
Traceback (most recent call last):
  File "/usr/sbin/archive-conf", line 30, in <module>
    import fchksum
ImportError: No module named fchksum

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/sbin/archive-conf", line 33, in <module>
    import md5
ImportError: No module named md5


Expected Results:  
Works
Comment 2 Zac Medico gentoo-dev 2013-08-22 04:51:07 UTC
This is fixed in 2.2.1.