Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing and running on osx 10.9 #19

Closed
gretel opened this issue Sep 2, 2014 · 8 comments
Closed

installing and running on osx 10.9 #19

gretel opened this issue Sep 2, 2014 · 8 comments

Comments

@gretel
Copy link

gretel commented Sep 2, 2014

tring to resolve dependencies on osx 10.9:

$ brew install homebrew/python/scapy
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-python'...

remote: Counting objects: 685, done.
remote: Total 685 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (685/685), 132.47 KiB | 0 bytes/s, done.
Resolving deltas: 100% (399/399), done.
Checking connectivity... done.
Tapped 15 formulae
pypcap: Unsatisfied dependency: Pyrex
Homebrew does not provide Python dependencies; install with:
  pip install Pyrex

trying that

$ pip install --allow-unverified Pyrex --allow-external Pyrex Pyrex
Downloading/unpacking Pyrex
  Pyrex is potentially insecure and unverifiable.

so i am stuck 🐛

@DanMcInerney
Copy link
Owner

I don't have osx available to me but could try sudo pip install pyrex
--allow-all-external --allow-unverified pyrex

and if that doesn't work installing it from scratch.
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/

On Mon, Sep 1, 2014 at 10:37 PM, Tom Hensel notifications@github.com
wrote:

tring to resolve dependencies on osx 10.9:

$ brew install homebrew/python/scapy
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-python'...

remote: Counting objects: 685, done.
remote: Total 685 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (685/685), 132.47 KiB | 0 bytes/s, done.
Resolving deltas: 100% (399/399), done.
Checking connectivity... done.
Tapped 15 formulae
pypcap: Unsatisfied dependency: Pyrex
Homebrew does not provide Python dependencies; install with:
pip install Pyrex

trying that

$ pip install --allow-unverified Pyrex --allow-external Pyrex Pyrex
Downloading/unpacking Pyrex
Pyrex is potentially insecure and unverifiable.

so i am stuck [image: 🐛]


Reply to this email directly or view it on GitHub
#19.

@gretel
Copy link
Author

gretel commented Sep 2, 2014

thanks, after messing for an hour with homebrew and pip i kinda progressed:

# install homebrew https://github.com/Homebrew/homebrew/wiki/Installation
$ brew tap Homebrew/python # https://github.com/Homebrew/homebrew-python
$ brew install python
$ brew link python
$ which python # has to be /usr/local/bin/python otherwise using system's python which won't work for us
$ pip install --allow-unverified Pyrex --allow-external Pyrex Pyrex
$ brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-python/master/scapy.rb
$ brew install libdnet
$ pip install --allow-all-external --allow-unverified dnet-real dnet-real
$ brew install pypcap

and finally

$ ./wifijammer.py
Traceback (most recent call last):
  File "./wifijammer.py", line 5, in <module>
    from scapy.all import *
  File "/usr/local/lib/python2.7/site-packages/scapy/all.py", line 16, in <module>
    from arch import *
  File "/usr/local/lib/python2.7/site-packages/scapy/arch/__init__.py", line 75, in <module>
    from bsd import *
  File "/usr/local/lib/python2.7/site-packages/scapy/arch/bsd.py", line 12, in <module>
    from unix import *
  File "/usr/local/lib/python2.7/site-packages/scapy/arch/unix.py", line 20, in <module>
    from pcapdnet import *
  File "/usr/local/lib/python2.7/site-packages/scapy/arch/pcapdnet.py", line 160, in <module>
    import dnet
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/dnet.so, 2): Symbol not found: _addr_bcast
  Referenced from: /usr/local/lib/python2.7/site-packages/dnet.so
  Expected in: flat namespace
 in /usr/local/lib/python2.7/site-packages/dnet.so

what version of libnet do you link with? homebrew builds

libdnet: stable 1.12 (bottled)
http://code.google.com/p/libdnet/

@DanMcInerney
Copy link
Owner

This thread looks like it should address it too on a deeper level.

chapmanb/cloudbiolinux#164

I just googled "pip install Pyrex"

On Mon, Sep 1, 2014 at 11:02 PM, Dan McInerney dan.h.mcinerney@gmail.com
wrote:

I don't have osx available to me but could try sudo pip install pyrex
--allow-all-external --allow-unverified pyrex

and if that doesn't work installing it from scratch.
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/

On Mon, Sep 1, 2014 at 10:37 PM, Tom Hensel notifications@github.com
wrote:

tring to resolve dependencies on osx 10.9:

$ brew install homebrew/python/scapy
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-python'...

remote: Counting objects: 685, done.
remote: Total 685 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (685/685), 132.47 KiB | 0 bytes/s, done.
Resolving deltas: 100% (399/399), done.
Checking connectivity... done.
Tapped 15 formulae
pypcap: Unsatisfied dependency: Pyrex
Homebrew does not provide Python dependencies; install with:
pip install Pyrex

trying that

$ pip install --allow-unverified Pyrex --allow-external Pyrex Pyrex
Downloading/unpacking Pyrex
Pyrex is potentially insecure and unverifiable.

so i am stuck [image: 🐛]


Reply to this email directly or view it on GitHub
#19.

@DanMcInerney
Copy link
Owner

Responded without reading the new response. I'm not sure, I get:

Python 2.7.3
[GCC 4.7.2] on
Type "help", "copyright", "credits" or "license" for more information.

import dnet
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named dnet

On Mon, Sep 1, 2014 at 11:39 PM, Dan McInerney dan.h.mcinerney@gmail.com
wrote:

This thread looks like it should address it too on a deeper level.

chapmanb/cloudbiolinux#164

I just googled "pip install Pyrex"

On Mon, Sep 1, 2014 at 11:02 PM, Dan McInerney dan.h.mcinerney@gmail.com
wrote:

I don't have osx available to me but could try sudo pip install pyrex
--allow-all-external --allow-unverified pyrex

and if that doesn't work installing it from scratch.
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/

On Mon, Sep 1, 2014 at 10:37 PM, Tom Hensel notifications@github.com
wrote:

tring to resolve dependencies on osx 10.9:

$ brew install homebrew/python/scapy
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-python'...

remote: Counting objects: 685, done.
remote: Total 685 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (685/685), 132.47 KiB | 0 bytes/s, done.
Resolving deltas: 100% (399/399), done.
Checking connectivity... done.
Tapped 15 formulae
pypcap: Unsatisfied dependency: Pyrex
Homebrew does not provide Python dependencies; install with:
pip install Pyrex

trying that

$ pip install --allow-unverified Pyrex --allow-external Pyrex Pyrex
Downloading/unpacking Pyrex
Pyrex is potentially insecure and unverifiable.

so i am stuck [image: 🐛]


Reply to this email directly or view it on GitHub
#19.

@gretel
Copy link
Author

gretel commented Sep 2, 2014

thanks, read that. you got dnet-real?

@gretel gretel changed the title pyrex issue on osx installing and running on osx 10.9 Sep 2, 2014
@DanMcInerney
Copy link
Owner

Won't let me import dnet-real. Pip doesn't see anything installed with dnet
in the name either. I see a few references for it in some python packages
via dpkg but no libraries by that name.

On Mon, Sep 1, 2014 at 11:49 PM, Tom Hensel notifications@github.com
wrote:

thanks, read that. you got dnet-real?


Reply to this email directly or view it on GitHub
#19 (comment)
.

@gretel
Copy link
Author

gretel commented Sep 2, 2014

well but how does your code work then

@DanMcInerney
Copy link
Owner

Dunno, maybe I'm just searching wrong. But scapy docs give three different
ways of running it on OSX including how to install libdnet
http://www.secdev.org/projects/scapy/portability.html#osx

On Tue, Sep 2, 2014 at 1:31 AM, Tom Hensel notifications@github.com wrote:

well but how does your code work then


Reply to this email directly or view it on GitHub
#19 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants