Results 1 to 4 of 4

Thread: Error when setting up python-configargparse (0.9.3-0kali1) with apt-get

  1. #1
    Join Date
    2014-Jun
    Posts
    3

    Error when setting up python-configargparse (0.9.3-0kali1) with apt-get

    Hello. After running apt-get update && apt-get dist-upgrade earlier, I began having a syntax error which causes dpkg to fail on installation of python-configargparse (0.9.3-0kali1). This results in issues for mitmproxy and kali-linux-full packages. Please see output below.

    Things tried so far:

    • Googling. Only found similar listing on Portuguese site but that site didnt have a solution.
    • Installing python-configargparse manually (didnt work)
    • Editing the pythonconfigargparse.py in hopes of fixing the syntax error (but cannot figure out what is the error)


    Any advice please?

    Code:
    root@kali:# apt-get install python-configargparse 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    python-configargparse is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? 
    Setting up python-configargparse (0.9.3-0kali1) ...
    SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/dist-packages/configargparse.py', 16, 65, 'ACTION_TYPES_THAT_DONT_NEED_A_VALUE = {argparse._StoreTrueAction, argparse._StoreFalseAction, argparse._CountAction, argparse._StoreConstAction, argparse._AppendConstAction}\n'))
    
    dpkg: error processing python-configargparse (--configure):
     subprocess installed post-installation script returned error exit status 101
    Errors were encountered while processing:
     python-configargparse
    
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  2. #2
    Join Date
    2015-Jan
    Posts
    2
    refer to this site https://bugs.kali.org/view.php?id=1996
    they said it will be available that a new configargparse will be but this time i dont have yet the python-configargsparse (0.9.3-0kali2)
    because python-configargsparse (0.9.3-0kali1) works in python2.7 not on python2.6
    i just remove python-configargsparse (0.9.3-0kali1) using synaptics package manager

  3. #3
    Join Date
    2013-Mar
    Location
    milano
    Posts
    301
    Quote Originally Posted by gene1224 View Post
    refer to this site https://bugs.kali.org/view.php?id=1996
    they said it will be available that a new configargparse will be but this time i dont have yet the python-configargsparse (0.9.3-0kali2)
    because python-configargsparse (0.9.3-0kali1) works in python2.7 not on python2.6
    i just remove python-configargsparse (0.9.3-0kali1) using synaptics package manager
    happy new year for ALL
    i think today as SOLVED after apt-get update && apt-get dist-upgrade

  4. #4
    Join Date
    2014-Jun
    Posts
    3
    Quote Originally Posted by zimmaro View Post
    happy new year for ALL
    i think today as SOLVED after apt-get update && apt-get dist-upgrade
    Thanks. This is confirmed patched as of January 2nd, 2015.

Similar Threads

  1. Problem with python-configargparse today (apt-get dist-upgrade)
    By kaliusr56 in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2015-01-02, 13:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •