Bug 97395

Summary: NCDevADSL.py:33:load:NameError: global name 'ConfDevice' is not defined
Product: [Retired] Red Hat Raw Hide Reporter: Olivier Baudron <olivier.baudron>
Component: redhat-config-networkAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-08-15 13:46:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 100643    

Description Olivier Baudron 2003-06-14 12:02:11 UTC
# redhat-config-network-tui

An unhandled exception has occured.  This is most likely a bug.  Please save the
crash dump and file a detailed bug report against redhat-config-network at
https://bugzilla.redhat.com/bugzilla

Component: redhat-config-network
Version: 1.3.0
Summary: TB 

/usr/src/build/251628-noarch/install/usr/share/redhat-config-network/netconfpkg/plugins/NCDevADSL.py:33:load:NameError:
global name 'ConfDevice' is not defined

Traceback (most recent call last):
  File "/usr/sbin/redhat-config-network-tui", line 509, in ?
    mainScreen(screen)
  File "/usr/sbin/redhat-config-network-tui", line 152, in mainScreen
    nw=EthernetWindow(screen,getDeviceList())
  File
"/usr/src/build/251628-noarch/install/usr/share/redhat-config-network/netconfpkg/NCDeviceList.py",
line 263, in getDeviceList
    DVList.load()
  File
"/usr/src/build/251628-noarch/install/usr/share/redhat-config-network/netconfpkg/NCDeviceList.py",
line 117, in load
    newdev.load(dev)
  File
"/usr/src/build/251628-noarch/install/usr/share/redhat-config-network/netconfpkg/plugins/NCDevADSL.py",
line 33, in load
NameError: global name 'ConfDevice' is not defined

Comment 1 Harald Hoyer 2003-06-27 11:07:53 UTC
should be fixed in rawhide

Comment 2 Olivier Baudron 2003-07-16 10:49:24 UTC
It does not seem to be fixed in 1.3.1-1.
I get exactly the same error.

Comment 3 Olivier Baudron 2003-07-16 12:31:02 UTC
I have zero knowledge of python, but maybe the following works...

--- netconfpkg/plugins/NCDevADSL.py    2003-06-25 12:01:09 +0200
+++ netconfpkg/plugins/NCDevADSL.py    2003-07-16 14:26:15 +0200
@@ -15,7 +15,7 @@
 ## along with this program; if not, write to the Free Software
 ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-from netconfpkg.NCDevice import Device
+from netconfpkg.NCDevice import *
 from netconfpkg.NCDeviceFactory import getDeviceFactory
 from netconfpkg.NC_functions import DSL
 import netconfpkg 


Comment 4 Olivier Baudron 2003-07-16 20:22:42 UTC
...and yes, it works!

Comment 5 Olivier Baudron 2003-08-15 08:50:25 UTC
Fixed in rawhide. Thanks.