Opened 15 years ago

Closed 14 years ago

#18032 closed defect (fixed)

Couldn't find pcapy.py and dpkt.py after installation

Reported by: xl64100@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: py25-pcapy py25-dpkt

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello,

I runned sudo port install py-pcapy and sudo port install py-dpkt correctly but after installation I couldn't find the pcapy.py nor dpkt.py files :

locate pcapy
/opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-pcapy
/opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-pcapy/Portfile
locate dpkt
/opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-dpkt
/opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-dpkt/Portfile

I don't know if it is installed but not in locate database, but it is not also found by python script calling it... I had to install them from sources.

XL.

Change History (7)

comment:1 Changed 15 years ago by blb@…

Note that the locate database is only updated once a week, so something just installed won't be seen by it until that time.

You can use port contents <portname> to see a list of what a given port has installed.

comment:2 in reply to:  1 ; Changed 15 years ago by xl64100@…

Hello, and thanks for your quick answer

Using port contents, I didn't find pcapy.py but I found dpkt.py

port contents py-pcapy                                                                                  
Port py-pcapy contains:
  /opt/local/lib/python2.4/site-packages/pcapy.so
  /opt/local/share/doc/py-pcapy/ChangeLog
  /opt/local/share/doc/py-pcapy/LICENSE
  /opt/local/share/doc/py-pcapy/pcapy.html
  /opt/local/share/doc/py-pcapy/PKG-INFO
  /opt/local/share/doc/py-pcapy/README
port contents py-dpkt | grep dpkt.py                                                                        
  /opt/local/lib/python2.4/site-packages/dpkt/dpkt.py
  /opt/local/lib/python2.4/site-packages/dpkt/dpkt.pyc

dpkt is correctly installed, I just runned /usr/bin/python and not /opt/local/bin/python2.5... but pcapy is still missing

thanks.

XL.

comment:3 Changed 15 years ago by alakazam@…

See the other ticket : py-dpkt is for python2.4 (yes, this is a bit confusing ;) ), py25-dpkt (which doesn't actually exist... :/ ) would be the one for python 2.5. You should also look into python_select to have /opt/local/bin/python point to the python version you intend to use.

comment:4 in reply to:  2 Changed 15 years ago by blb@…

Replying to xl64100@…:

Using port contents, I didn't find pcapy.py but I found dpkt.py

port contents py-pcapy                                                                                  
Port py-pcapy contains:
   /opt/local/lib/python2.4/site-packages/pcapy.so

Note that pcapy.so is a module, compiled instead of in python, so python24 should be able to import this.

comment:5 Changed 15 years ago by xl64100@…

Ok so there are no package yet for python2.5 for those 2 packages, I'll use the sources then :) Thanks

comment:6 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:7 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: py25-pcapy py25-dpkt added
Resolution: fixed
Status: newclosed

py25-pcapy was added in r65104; see #23949.

py25-dpkt was added in r68213; see #23484.

Note: See TracTickets for help on using tickets.