« first day (379 days earlier)      last day (2977 days later) » 

3:25 AM
Hi, I've got some issues here with urllib2 failing ssl verification on python.com on a fresh Alpine 3.3 install. Could this be related to the recent changes in OpenSSL 1.0.2g? stackoverflow.com/questions/35762510/…
 
user559633
1 message moved from Python
 
Hi, when using urllib2 on a fresh python install, are there any other libraries which I need to install so that SSL verification can succeed?
 
user559633
1 message moved from Python
 
5:30 PM
Anyways, did I just discover a bug in python? stackoverflow.com/questions/35776791/…
 
user559633
1 message moved from Python
 
here is my code

import dpkt

from dpkt.ip import IP

from dpkt.ethernet import Ethernet

import struct

import socket

import csv

def ip_to_str(address):

return socket.inet_ntoa(address)

f = open('ddostrace.20070804_134936.pcap', 'rb')

pcap = dpkt.pcap.Reader(f)

print "Source, Destination, Length, TTL, TOS, OFF, Protocol"

for ts, buf in pcap:

eth = dpkt.ethernet.Ethernet(buf)

if eth.type != dpkt.ethernet.ETH_TYPE_IP:

continue

ip = eth.data

do_not_fragment = bool(dpkt.ip.IP_DF)

more_fragments = bool(dpkt.ip.IP_MF)
 
1 message moved from Python
 
 
4 hours later…
9:39 PM
❯ sudo pip install virtualenv
The directory '/Users/abhimanyuaryan/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/abhimanyuaryan/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
 
1 message moved from Python
 

« first day (379 days earlier)      last day (2977 days later) »