Bug 491760 - cannot import name main
Summary: cannot import name main
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: pcapdiff
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-23 21:25 UTC by Curtis Doty
Modified: 2009-04-21 15:50 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-21 15:50:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Curtis Doty 2009-03-23 21:25:10 UTC
As packaged, it will produce following error:

$ pcapdiff foo 192.0.2.1 bar 192.0.2.2
-------------
Packet counts
-------------
               inbound    outbound
sent:                0           0
received:            0           0
forged:              0           0
dropped:             0           0
Traceback (most recent call last):
  File "/usr/bin/pcapdiff", line 5, in <module>
    from pcapdiff import main
ImportError: cannot import name main

Workaround is:

$ python /usr/share/pcapdiff/pcapdiff.py foo 192.0.2.1 bar 192.0.2.2
-------------
Packet counts
-------------
               inbound    outbound
sent:                0           0
received:            0           0
forged:              0           0
dropped:             0           0

Comment 1 Gwyn Ciesla 2009-03-24 13:30:53 UTC
Ok, it works on F-10.  It depends on pcapy, and both were rebuilt for Python 2.6.  Are any other python programs giving you trouble?

Comment 2 Gwyn Ciesla 2009-04-13 18:06:38 UTC
Ping?

Comment 3 Gwyn Ciesla 2009-04-21 15:50:54 UTC
I cannot reproduce this on F-11 Beta.  Closing.


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