The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ImportError: No module named argparse

Discussion in 'General Discussion' started by webmasteryoda, Jan 16, 2016.

  1. webmasteryoda

    webmasteryoda Active Member

    Joined:
    Apr 3, 2013
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Serbia
    cPanel Access Level:
    Root Administrator
    I dont know what to do.

    I literary have thousands of these emails on my mail queue (13,049 records).

    its blocking my mail server to work correctly.

    Check this:
    Code:
    --1452945631-eximdsn-587128044
    Content-type: text/plain; charset=us-ascii
    
    This message was created automatically by mail delivery software.
    
    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:
    
      root@localhost
        retry timeout exceeded
    
    --1452945631-eximdsn-587128044
    Content-type: message/delivery-status
    
    Reporting-MTA: dns; xxxxxxx.xxxxxxxxxxx.xxx
    
    Action: failed
    Final-Recipient: rfc822;root@localhost
    Status: 5.0.0
    
    --1452945631-eximdsn-587128044
    Content-type: message/rfc822
    
    Return-path: <DoNotReply@xxxxxxx.xxxxxxxxxxx.xxx>
    Received: from root by xxxxxxx.xxxxxxxxxxx.xxx with local (Exim 4.86)
        (envelope-from <DoNotReply@xxxxxxx.xxxxxxxxxxx.xxx>)
        id 1aKPWx-0000hw-9g
        for root@localhost; Sat, 16 Jan 2016 13:00:31 +0100
    Date: Sat, 16 Jan 2016 13:00:31 +0100
    From: ABRT Daemon <DoNotReply@xxxxxxx.xxxxxxxxxxx.xxx>
    To: root@localhost
    Subject: [abrt] a crash has been detected again
    User-Agent: Heirloom mailx 12.4 7/29/08
    MIME-Version: 1.0
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    Message-Id: <E1aKPWx-0000hw-9g@xxxxxxx.xxxxxxxxxxx.xxx>
    
    abrt_version:   2.0.8
    cmdline:        /usr/bin/python /usr/libexec/abrt-action-generate-machine-id -o /var/spool/abrt/pyhook-2016-01-16-13:00:24-2449/machineid
    executable:     /usr/libexec/abrt-action-generate-machine-id
    hostname:       xxxxxxx.xxxxxxxxxxx.xxx
    kernel:         2.6.32-431.29.2.el6.x86_64
    last_occurrence: 1452945624
    time:           Sat 16 Jan 2016 01:00:31 PM CET
    uid:            0
    
    backtrace:
    :abrt-action-generate-machine-id:24:<module>:ImportError: No module named argparse
    :
    :Traceback (most recent call last):
    :  File "/usr/libexec/abrt-action-generate-machine-id", line 24, in <module>
    :    from argparse import ArgumentParser
    :ImportError: No module named argparse
    :
    :Local variables in innermost frame:
    :__builtins__: <module '__builtin__' (built-in)>
    :__file__: '/usr/libexec/abrt-action-generate-machine-id'
    :__package__: None
    :sys: <module 'sys' (built-in)>
    :__name__: '__main__'
    :__doc__: 'This module provides algorithms for generating Machine IDs.\n'
    
    --1452945631-eximdsn-587128044--
    So, what can I do? Any clues?

    Thanks in advance
    Bane
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Not sure if this is of any use to you or not:
    Bug 1246539 – abrt misses a dependency on python-argparse

    In the meantime, your root emails are not being delivered to you properly. You should double check and or change your root email to one off server that works. (assuming thats the issue)
    Home »Server Configuration »Basic cPanel & WHM Setup, Contact Info tab.
    Home »Server Contacts »Edit System Mail Preferences
    Home »Server Contacts »Contact Manager

    You should be able t run a report, select all email you want to delete in bulk and delete it from here:
    Home »Email »Mail Queue Manager
     
  3. webmasteryoda

    webmasteryoda Active Member

    Joined:
    Apr 3, 2013
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Serbia
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page