Giter VIP home page Giter VIP logo

Comments (8)

DanMcInerney avatar DanMcInerney commented on June 28, 2024

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 [email protected]
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.

from wifijammer.

gretel avatar gretel commented on June 28, 2024

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/

from wifijammer.

DanMcInerney avatar DanMcInerney commented on June 28, 2024

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 [email protected]
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 [email protected]
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.

from wifijammer.

DanMcInerney avatar DanMcInerney commented on June 28, 2024

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 [email protected]
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 [email protected]
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 [email protected]
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.

from wifijammer.

gretel avatar gretel commented on June 28, 2024

thanks, read that. you got dnet-real?

from wifijammer.

DanMcInerney avatar DanMcInerney commented on June 28, 2024

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 [email protected]
wrote:

thanks, read that. you got dnet-real?


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

from wifijammer.

gretel avatar gretel commented on June 28, 2024

well but how does your code work then

from wifijammer.

DanMcInerney avatar DanMcInerney commented on June 28, 2024

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 [email protected] wrote:

well but how does your code work then


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

from wifijammer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.