View Issue Details

IDProjectCategoryView StatusLast Update
0000824Kali LinuxTool Upgrade Requestpublic2014-01-01 17:22
Reportergzw Assigned Torhertzog  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Platformx86OSKaliOS Version1.0
Product Version1.0.5 
Summary0000824: Upgrade to mitmproxy fails
Description

When attempting to upgrade mitmproxy (after performing apt-get update) we get the error:

SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/dist-packages/libmproxy/flow.py', 789, 70, ' cookie_parameters = {key.strip().lower():value.strip() for key,sep,value in pairs[1:]}\n'))

This is because Python 2.6 doesn't support dict comprehensions.

Steps To Reproduce

apt-get update
apt-get install mitmproxy

See: http://bpaste.net/show/NAAfnTqx7rxEwXdHTUGB/

Additional Information

To solve this, I performed:

pip install mitmproxy

Alternatively, we'd need to tell apt-get to use Python 2.7. I'm not sure how to do this without create Python virtual envs.

Activities

fringes

fringes

2014-01-01 15:47

reporter   ~0001250

I had same problem using "apt-get dist-upgrade"

Easily reproducible with:
apt-get update; apt-get purge -y mitmproxy; apt-get install -y mitmproxy

rhertzog

rhertzog

2014-01-01 17:22

administrator   ~0001251

I just uploaded mitmproxy_0.9.2-2kali2_source.changes that will fix this problem by restricting the package to python 2.7 (we don't really care about python 2.6 since 2.7 is the default version).

Issue History

Date Modified Username Field Change
2014-01-01 11:53 gzw New Issue
2014-01-01 15:47 fringes Note Added: 0001250
2014-01-01 17:22 rhertzog Note Added: 0001251
2014-01-01 17:22 rhertzog Status new => closed
2014-01-01 17:22 rhertzog Assigned To => rhertzog
2014-01-01 17:22 rhertzog Resolution open => fixed
2021-05-31 13:37 rhertzog Category Tool Upgrade => Tool Upgrade Request