°Ô½Ã¹° 1,369°Ç
   
CentOS 5.X ³×Æ®¿öÅ© ¼³Á¤ È­¸é¿¡·¯ (setup)
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2013-12-31 (È­) 13:02 Á¶È¸ : 7339
±ÛÁÖ¼Ò :
                                

[root@r05 site-packages]# setup
ó¸®ÇÒ ¼ö ¾ø´Â ¿¹¿ÜÀûÀÎ »óȲÀÌ ¹ß»ýÇß½À´Ï´Ù.  ÀÌ¿Í°°Àº »óȲÀº ¹ö±×·Î ¿¹»óµË´Ï´Ù.  Å©·¡½Ã ´ýÇÁ·Î ÀúÀåÇϽŠÈÄ¿¡ system-config-network¿¡ ´ëÇÑ ¹ö±×ÀÇ ³»¿ëÀ» http://bugzilla.redhat.com/bugzilla/ ·Î ÀÚ¼¼È÷ º¸°íÇØ Áֽñ⠹ٶø´Ï´Ù.
Component: system-config-network
Version: 1.3.99.21
Summary: TB /usr/lib64/python2.4/site-packages/rhpl/genClass.py:217:_objToStr:UnicodeDecodeError: 'utf8' codec can't decode byte 0xbd in position 0: unexpected code byte
Traceback (most recent call last):
  File "/usr/sbin/system-config-network-tui", line 230, in ?
    loadConfig(screen)
  File "/usr/sbin/system-config-network-tui", line 136, in loadConfig
    hardwarelist = getHardwareList()
  File "/usr/share/system-config-network/netconfpkg/NCHardwareList.py", line 510, in getHardwareList
    __HWList.load()
  File "/usr/share/system-config-network/netconfpkg/NCHardwareList.py", line 363, in load
    self.updateFromSystem()
  File "/usr/share/system-config-network/netconfpkg/NCHardwareList.py", line 269, in updateFromSystem
    log.log(5, str(self))
  File "/usr/lib64/python2.4/site-packages/rhpl/genClass.py", line 550, in __str__
    return GenClass.__str__(self)
  File "/usr/lib64/python2.4/site-packages/rhpl/genClass.py", line 179, in __str__
    return self._objToStr(parentStr)
  File "/usr/share/system-config-network/netconfpkg/NCHardwareList.py", line 328, in _objToStr
    retstr += dev._objToStr("HardwareList.%s.%s" % (dev.Type,
  File "/usr/lib64/python2.4/site-packages/rhpl/genClass.py", line 217, in _objToStr
    retstr += "%s.%s=%s\n" % (parentStr, child, str(val))
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbd in position 0: unexpected code byte

> /usr/lib64/python2.4/site-packages/rhpl/genClass.py(217)_objToStr()
-> retstr += "%s.%s=%s\n" % (parentStr, child, str(val))
(Pdb)

 
ÇØ°á)
ÆÄÀ̽㿡¼­ ¿À·ù°¡ ¹ß»ý
setup - > ³×Æ®¿÷ ¼³Á¤¿¡¼­ È®ÀεǾúÀ¸¸ç ÆÄÀ̽ãÀÌ ¼³Ä¡µÈ Æú´õ¿¡  /usr/lib64/python2.4/site-packages/   
sitecustomize.py ÆÄÀÏÀ» »ý¼ºÇؼ­ ¾Æ·¡¿Í °°ÀÌ º¹»ç
 
# touch  /usr/lib64/python2.4/site-packages/sitecustomize.py
# vim /usr/lib64/python2.4/site-packages/sitecustomize.py
import sys
sys.setdefaultencoding('iso-8859-1')
 

[Ãâó] python UnicodeDecodeError|ÀÛ¼ºÀÚ »ç¶û±»

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.