Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 97395 - NCDevADSL.py:33:load:NameError: global name 'ConfDevice' is not defined
Summary: NCDevADSL.py:33:load:NameError: global name 'ConfDevice' is not defined
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: redhat-config-network
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: CambridgeBlocker
TreeView+ depends on / blocked
 
Reported: 2003-06-14 12:02 UTC by Olivier Baudron
Modified: 2007-04-18 16:54 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-08-15 13:46:26 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.