Hacker News new | ask | show | jobs
by deathbob 5719 days ago
master>python idiocy.py Traceback (most recent call last): File "idiocy.py", line 2, in <module> import getopt, sys, pcap, dpkt, re, httplib, urllib ImportError: No module named pcap

Is there a python equivalent to RubyGems ?

1 comments

Yeah how do you use this? I see pcap here http://pypi.python.org/pypi/pcap/1.1 but can't seem to install it.

master>pip install pcap Downloading/unpacking pcap Could not find any downloads that satisfy the requirement pcap No distributions at all found for pcap Storing complete log in /Users/bob/.pip/pip.log

Nope.

$pip install python-dpkt && pip install libpcap && pip

install python-pcap

Downloading/unpacking python-dpkt

  Could not find any downloads that satisfy the requirement

 python-dpkt
No distributions at all found for python-dpkt

Storing complete log in /Users/davidfisher/.pip/pip.log

Grab the tarball from http://downloads.sourceforge.net/project/pylibpcap/pylibpcap... and then "pip install pylibpcap-0.6.2.tar.gz"

You'll need the Apple Developer tools / XCode first.