Bug 439359

Summary: system-config-network and python error
Product: [Fedora] Fedora Reporter: pmarion <pmarion19>
Component: system-config-networkAssignee: Harald Hoyer <harald>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: rawhideCC: jmoskovc
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-29 08:55:00 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:

Description pmarion 2008-03-28 09:16:55 UTC
Description of problem:
when starting system-config-network (or system-config-firewall) 

Traceback (most recent call last):
  File "/usr/sbin/system-config-network-gui", line 53, in <module>
    from netconfpkg.exception import handleException
  File "/usr/share/system-config-network/netconfpkg/__init__.py", line 61, in
<module>
    exec _cmd
  File "<string>", line 1, in <module>
  File "/usr/share/system-config-network/netconfpkg/Control.py", line 29, in
<module>
    import NCDeviceList
  File "/usr/share/system-config-network/netconfpkg/NCDeviceList.py", line 26,
in <module>
    from netconfpkg.NCDeviceFactory import getDeviceFactory
  File "/usr/share/system-config-network/netconfpkg/NCDeviceFactory.py", line
74, in <module>
    from netconfpkg.plugins import *
  File "/usr/share/system-config-network/netconfpkg/plugins/__init__.py", line
35, in <module>
    exec _cmd
  File "<string>", line 1, in <module>
  File "/usr/share/system-config-network/netconfpkg/plugins/NCDevCTC.py", line
22, in <module>
    from netconfpkg.NC_functions import CTC
ImportError: cannot import name CTC


How reproducible:
Start system-config-network 
I get the same message with system-config-firewall

Steps to Reproduce:
1. Start in on console system-config-network or system-config-firewall

Comment 1 Harald Hoyer 2008-03-28 09:33:26 UTC
quickfix, remove /usr/share/system-config-network/netconfpkg/plugins/NCDevCTC.py*

Comment 2 pmarion 2008-03-28 16:29:24 UTC
If I move /usr/share/system-config-network/netconfpkg/plugins/NCDevCTC.py* in /tmp
I get 
  File "/usr/share/system-config-network/netconfpkg/plugins/NCDevCipe.py", line
73, in <module>
    if NC_functions.DOCIPE:
AttributeError: 'module' object has no attribute 'DOCIPE'

And so long
Now 
[root@localhost ~]# system-config-networkTraceback (most recent call last):
  File "/usr/sbin/system-config-network-gui", line 53, in <module>
    from netconfpkg.exception import handleException
  File "/usr/share/system-config-network/netconfpkg/__init__.py", line 61, in
<module>
    exec _cmd
  File "<string>", line 1, in <module>
  File "/usr/share/system-config-network/netconfpkg/NCCipe.py", line 22, in <module>
    from netconfpkg import Cipe_base
ImportError: cannot import name Cipe_base


Comment 3 Harald Hoyer 2008-03-28 19:41:09 UTC
do you have stale old files from a broken update?

what's the output of:
$ rpm -qf /usr/share/system-config-network/netconfpkg/NCCipe.py

Comment 4 pmarion 2008-03-29 07:32:41 UTC
rpm -qf /usr/share/system-config-network/netconfpkg/NCCipe.py
system-config-network-tui-1.5.0-1.fc9.noarch


Comment 5 pmarion 2008-03-29 07:43:18 UTC
I have tied yum erase system-config-network-tui.noarc
Suppression:
 system-config-network-tui  noarch     1.5.0-1.fc9      installed         4.8 M
Suppression pour dépendance:
 system-config-network   noarch     1.5.0-1.fc9      installed         1.8 M

Résumé de la transaction
=============================================================================
Installation      0 Paquetage(s)         
Mise à jour       0 Package(s)         
Suppression       2 Package(s)         

Est-ce correct [y/N] : y
Téléchargement des paquetages :
Lancement de rpm_check_debug
Lancement de la transaction de test
Transaction de test terminée
Transaction de test réussie
Lancement de la transaction
  Erasing   : system-config-network-tui    ######################### [1/2] 
  Erasing   : system-config-network        ######################### [2/2] 

Supprimé: system-config-network-tui.noarch 0:1.5.0-1.fc9
Dépendance supprimée: system-config-network.noarch 0:1.5.0-1.fc9
Complété !

Aflet this delete and without any new installation
system-config-network and system-config-firewall work fine.

But what the matter with tui.noarch 0:1.5.0-1.fc9 and tui.noarch1.5.1-1.fc9.noarch



Comment 6 Harald Hoyer 2008-03-29 08:55:00 UTC
seems like you had installed two versions.. 1.5.0 and 1.5.1. sounds like an
update problem.