pynetwork / pypcap

pypcap - python libpcap module, forked from code.google.com/p/pypcap
Other
299 stars 74 forks source link

can't install with pip3 #19

Closed KaoWeiChen closed 8 years ago

KaoWeiChen commented 8 years ago

It can not use with python3 ?

kings-way commented 8 years ago

I found the problem too..... The first error is the function print used with the style of python2

  Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/tmp/pip-build-wc847xst/pypcap/setup.py", line 36
    print "Found pcap headers in %s" % pcap_h
                                   ^
SyntaxError: Missing parentheses in call to 'print'
brifordwylie commented 8 years ago

This looks like it might be solved with PR #18. I'll test that PR. So after looking at testing PR #18 there's no 'downside' to it (it's going to work fine on both python 2 and 3). But I'm running into a problem when trying to import the module on python3 (this may be an issue with my python3 since I don't use it very often). I'm going to merge PR#18 and open another ticket for the module import load issue with Python3.

brifordwylie commented 8 years ago

Closing this with PR #18, the bigger issue of general Python3 support will be addressed with #24