Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34509 (emerge_rsync) - Emerge crashed during rsync/sync: problem with object "socket"
Summary: Emerge crashed during rsync/sync: problem with object "socket"
Status: RESOLVED FIXED
Alias: emerge_rsync
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-27 03:58 UTC by Detro
Modified: 2011-10-30 22:21 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 Detro 2003-11-27 03:58:59 UTC
Emerge don't sync with rsync mirror: the problem is obviously TERRIBLE. :-(

I think about an error on "portage update":installed verion "2.0.49-r17".
Reading the error report and reading the "emerge code" I found at line 1748 the
use of an object that isn't "declared".

Please: help ME!!!! ;-)


Reproducible: Always
Steps to Reproduce:
1.emerge rsync

Actual Results:  
emerge rsync
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1784, in ?
    ip=socket.gethostbyname(hostname)
NameError: name 'socket' is not defined

and same...
emerge sync
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1784, in ?
    ip=socket.gethostbyname(hostname)
NameError: name 'socket' is not defined

Expected Results:  
...rsync! ;-)

Portage 2.0.49-r17 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9,
2.6.0-test10-gentoo-r1)
=================================================================
System uname: 2.6.0-test10-gentoo-r1 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=pentium3 -march=pentium3 -mfpmath=sse -fomit-frame-pointer
-falign-functions=32 -fforce-addr -pipe -mmmx -msse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium3 -march=pentium3 -mfpmath=sse -fomit-frame-pointer
-falign-functions=32 -fforce-addr -pipe -mmmx -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache sandbox"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://gentoo.tiscali.nl/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apache2 apm arts avi bonobo cdr crypt cscope cups curl
doc dvd encode esd evo fbcon flash foomatic foomaticdb gb gd gdbm gif gnome
gpgoto2 gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imlib java jdbc jikes jpeg
kde lcms libg++ libgda libwww mad mikmod mmx motif mozilla mpeg ncurses nls odbc
oggvorbis opengl oss pam pdflib perl php plotutils png postgres ppds python qt
quicktime readline ruby sdl slang slp snmp speel spell sse ssl svga tcltk tcpd
tetex tiff truetype usb videos wmf wxwindows x86 xml2 xmms xv zlib"
Comment 1 Detro 2003-11-27 05:58:07 UTC
Excuse me. I have founded another youser with the same problem on emerge and the solution only now.

Solution:

edit /usr/bin/emerge

correction:
import os,sys  --->>> import os,sys,socket

As I said, the problem was in the object socket, because... It wasn't imported!
Bye