Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245162 - emerge --info: No module named _md5
Summary: emerge --info: No module named _md5
Status: RESOLVED DUPLICATE of bug 198447
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-01 17:38 UTC by ade05fr
Modified: 2008-11-05 00:11 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 ade05fr 2008-11-01 17:38:50 UTC
Hello
since my "emerge -C mktemp ss com_err" i cant emerge anything.
I think python is broken.
How can i restore it ?

Reproducible: Always

Steps to Reproduce:
1.emerge -C mktemp ss com_err
2.emerge ss
3.

Actual Results:  
# emerge --info


!!! Failed to complete portage imports. There are internal modules for
!!! portage and failure here indicates that you have a problem with your
!!! installation of portage. Please try a rescue portage located in the
!!! portage tree under '/usr/portage/sys-apps/portage/files/' (default).
!!! There is a README.RESCUE file that details the steps required to perform
!!! a recovery of portage.
    No module named _md5



    !!! Failed to complete portage imports. There are internal modules for
    !!! portage and failure here indicates that you have a problem with your
    !!! installation of portage. Please try a rescue portage located in the
    !!! portage tree under '/usr/portage/sys-apps/portage/files/' (default).
    !!! There is a README.RESCUE file that details the steps required to
    perform
    !!! a recovery of portage.
        No module named _md5

Traceback (most recent call last):
  File "/usr/bin/emerge", line 31, in <module>
      import portage
        File "/usr/lib64/portage/pym/portage/__init__.py", line 79, in
<module>
    import portage.getbinpkg
      File "/usr/lib64/portage/pym/portage/getbinpkg.py", line
      15, in <module>
          import urllib2
    File "/usr/lib64/python2.5/urllib2.py", line 88,
    in <module>
        import hashlib
  File "/usr/lib64/python2.5/hashlib.py", line
  133, in <module>
      md5 = __get_builtin_constructor('md5')
        File
"/usr/lib64/python2.5/hashlib.py",
line 60, in __get_builtin_constructor
    import _md5
    ImportError: No module named _md5
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-11-01 17:49:39 UTC
It seems that you broke your portage or something. Please provide more info(emerge --info output etc.) Reopen when you have submitted these info. 
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-01 18:11:31 UTC
@pchrist: Please allow about a day to pass before closing as NEEDINFO. :)
Comment 3 ade05fr 2008-11-02 10:55:01 UTC
(In reply to comment #1)
> It seems that you broke your portage or something. Please provide more
> info(emerge --info output etc.) Reopen when you have submitted these info. 
> 

hello 
as i mentionned in the bug before i cant give you emerge --info because the emerge commande line is not working anymore.
Comment 4 Zac Medico gentoo-dev 2008-11-03 05:10:39 UTC
It seems like this might be triggered by openssl breakage due to being built with kerberos support, and the mit-krb5 dependence on ss and com_err.

You might be able to untar some packages from our tinderbox to get it working again:

  http://tinderbox.dev.gentoo.org/html/

If you have a linux/amd64 system then these packages might work for you:

  http://tinderbox.dev.gentoo.org/html/default-linux/amd64/All/

Comment 5 ade05fr 2008-11-03 09:32:47 UTC
which packages do i have to install again ?
i have unmerge ss and com_err to install e2fsprogs and i havent updated openssl for a while.
thanks
(In reply to comment #4)
> It seems like this might be triggered by openssl breakage due to being built
> with kerberos support, and the mit-krb5 dependence on ss and com_err.
> 
> You might be able to untar some packages from our tinderbox to get it working
> again:
> 
>   http://tinderbox.dev.gentoo.org/html/
> 
> If you have a linux/amd64 system then these packages might work for you:
> 
>   http://tinderbox.dev.gentoo.org/html/default-linux/amd64/All/
> 

Comment 6 Zac Medico gentoo-dev 2008-11-04 07:13:25 UTC
(In reply to comment #5)
> which packages do i have to install again ?
> i have unmerge ss and com_err to install e2fsprogs

First unpack ss and com_err and then run ldconfig. Maybe then python work again.
Comment 7 ade05fr 2008-11-04 08:04:13 UTC
i have done untar of the com_err and ss packages and copy all the files to the target folder and then made a ldconfig.
problem is still here.
(In reply to comment #6)
> (In reply to comment #5)
> > which packages do i have to install again ?
> > i have unmerge ss and com_err to install e2fsprogs
> 
> First unpack ss and com_err and then run ldconfig. Maybe then python work
> again.
> 

Comment 8 ade05fr 2008-11-04 08:38:14 UTC
i have done untar of the com_err and ss packages and copy all the files to the target folder and then made a ldconfig.
problem is still here.
(In reply to comment #6)
> (In reply to comment #5)
> > which packages do i have to install again ?
> > i have unmerge ss and com_err to install e2fsprogs
> 
> First unpack ss and com_err and then run ldconfig. Maybe then python work
> again.
> 

Comment 9 Zac Medico gentoo-dev 2008-11-04 17:29:10 UTC
Does /usr/lib64/python2.5/lib-dynload/_md5.so exist? If it does exist, it seems to be broken in some way. That file belongs to python so you'll probably want to download a python tarball from the tinderbox and unpack it on your system.
Comment 10 Zac Medico gentoo-dev 2008-11-05 00:11:09 UTC
The "No module named _md5" error is the same as bug 198447 and bug 191577.
Comment 11 Zac Medico gentoo-dev 2008-11-05 00:11:24 UTC

*** This bug has been marked as a duplicate of bug 198447 ***