Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 34402

Summary: Emerge fails, but there's a simple solution
Product: Gentoo Linux Reporter: Anders Dahlqvist <anders>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Anders Dahlqvist 2003-11-26 04:46:15 UTC
portage 2.0.49-r17 
ANY emerge fails, giving the message 
 
Traceback (most recent call last): 
  File "/usr/bin/emerge", line 1784, in ? 
    ip=socket.gethostbyname(hostname) 
NameError: name 'socket' is not defined 
 

Reproducible: Always
Steps to Reproduce:
1. emerge <arguments> 
 
2.ebuild <ebuild> argument 
 
3. 
 
Actual Results:  
Traceback (most recent call last): 
  File "/usr/bin/emerge", line 1784, in ? 
    ip=socket.gethostbyname(hostname) 
NameError: name 'socket' is not defined 
 


Solution: 
Change line 6 in /usr/bin/emerge from  
 
import os,sys 
 
to 
 
import os,sys,socket 
 
 
My comment: thank God for open source and python!
Comment 1 Axel Reimann 2003-11-26 06:57:35 UTC
My comment: thank God for such considerate Gentoo users!
Solved my problem immediately, thanks again.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-11-26 07:25:14 UTC

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