LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   redhat-config-network error (https://www.linuxquestions.org/questions/linux-software-2/redhat-config-network-error-91100/)

dev8080 09-09-2003 11:22 PM

redhat-config-network error
 
I am getting this ugly error when I try to acces redhat-config-network. I am using wireless lan card on laptop. Card is working fine and internet is also working, but I am unable to access the configuration.

Gives the following error


Component: redhat-config-network
Version: 1.2.0
Summary: TB /usr/src/build/228093-i386/install/usr/lib/python2.2/sre.py:137:search:TypeError: expected string or buffer
Traceback (most recent call last):
File "/usr/sbin/redhat-config-network-gui", line 154, in ?
window = mainDialog()
File "/usr/src/build/226257-noarch/install/usr/share/redhat-config-network/netconfpkg/gui/maindialog.py", line 154, in __init__
File "/usr/src/build/226257-noarch/install/usr/share/redhat-config-network/netconfpkg/gui/maindialog.py", line 225, in load
File "/usr/src/build/226257-noarch/install/usr/share/redhat-config-network/netconfpkg/gui/maindialog.py", line 232, in loadDevices
File "/usr/src/build/226257-noarch/install/usr/share/redhat-config-network/netconfpkg/NCDeviceList.py", line 210, in getDeviceList
File "/usr/src/build/226257-noarch/install/usr/share/redhat-config-network/netconfpkg/NCDeviceList.py", line 117, in load
File "/usr/src/build/226257-noarch/install/usr/share/redhat-config-network/netconfpkg/plugins/NCDevWireless.py", line 34, in load
File "/usr/src/build/226257-noarch/install/usr/share/redhat-config-network/netconfpkg/NCWireless.py", line 52, in load
File "/usr/src/build/228093-i386/install/usr/lib/python2.2/sre.py", line 137, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or buffer

halfmanhalfbug 01-28-2004 01:57 PM

re: python2.2/sre.py TypeError from neat
 
Hi dev8080
I had the same problem with a hand-edited ifcfg file i made for a wireless device. After digging around in the python scripts it seems that the hand-edited file /etc/sysconfig/network-scripts/ifcfg-ethX (X=1 in my case) gets automatically copied (by what??) to:
/etc/sysconfig/networking/devices/ifcfg-ethX
/etc/sysconfig/profiles/default/ifcfg-ethX
so any error in the first is in all three and redhat-network-config (or neat) reads all of them. In my case I deleted all three and the problem went away. Apparently redhat-network-config requires a 'return' character at the end of each line, even the last. That is "TYPE=Wireless" should be "TYPE=Wireless return". At least this is the only difference I could find between a file that worked and one that caused the error.


All times are GMT -5. The time now is 07:52 AM.