[MacPorts] #18032: Couldn't find pcapy.py and dpkt.py after installation
#18032: Couldn't find pcapy.py and dpkt.py after installation -------------------------------+-------------------------------------------- Reporter: xl64100@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: -------------------------------+-------------------------------------------- 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. -- Ticket URL: <http://trac.macports.org/ticket/18032> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18032: Couldn't find pcapy.py and dpkt.py after installation -------------------------------+-------------------------------------------- Reporter: xl64100@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: -------------------------------+-------------------------------------------- Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/18032#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18032: Couldn't find pcapy.py and dpkt.py after installation -------------------------------+-------------------------------------------- Reporter: xl64100@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: -------------------------------+-------------------------------------------- Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/18032#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18032: Couldn't find pcapy.py and dpkt.py after installation -------------------------------+-------------------------------------------- Reporter: xl64100@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: -------------------------------+-------------------------------------------- Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/18032#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18032: Couldn't find pcapy.py and dpkt.py after installation -------------------------------+-------------------------------------------- Reporter: xl64100@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: -------------------------------+-------------------------------------------- Comment(by blb@…): Replying to [comment:2 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.
-- Ticket URL: <http://trac.macports.org/ticket/18032#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18032: Couldn't find pcapy.py and dpkt.py after installation -------------------------------+-------------------------------------------- Reporter: xl64100@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: -------------------------------+-------------------------------------------- Comment(by xl64100@…): Ok so there are no package yet for python2.5 for those 2 packages, I'll use the sources then :) Thanks -- Ticket URL: <http://trac.macports.org/ticket/18032#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18032: Couldn't find pcapy.py and dpkt.py after installation -----------------------------------+---------------------------------------- Reporter: xl64100@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Port: py25-pcapy py25-dpkt | -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed * port: => py25-pcapy py25-dpkt Old description:
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.
New description: 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. -- Comment: py25-pcapy was added in r65104; see #23949. py25-dpkt was added in r68213; see #23484. -- Ticket URL: <http://trac.macports.org/ticket/18032#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts