Coder Social home page Coder Social logo

Comments (7)

13o-bbr-bbq avatar 13o-bbr-bbq commented on July 20, 2024

@pieterhouwen
Maybe, your python environment has two numpy.
This error message display that two numpy are competing.
Please try you following.

  • In pip
sudo pip list
numpy (1.13.3)
  • In python console
>>> import numpy
>>> print numpy.__version__
1.13.3

Is it matching?

from machine_learning_security.

pieterhouwen avatar pieterhouwen commented on July 20, 2024

Hi thanks for your reply, yes both of them show version 1.13.3

from machine_learning_security.

13o-bbr-bbq avatar 13o-bbr-bbq commented on July 20, 2024

@pieterhouwen
Thanks for reply.
Could you change the name of one "numpy" as following?

cd "your python directory"/lib/python/
sudo mv numpy numpy_bad

from machine_learning_security.

pieterhouwen avatar pieterhouwen commented on July 20, 2024

I have changed one , and then the other but still nothing, here's some of my output:

root@supersecretkali:/opt/exploitation/machine_learning_security/DeepExploit# cd / && find -name numpy | more
./usr/local/lib/python2.7/dist-packages/pandas-0.20.1-py2.7-linux-x86_64.egg/pan
das/compat/numpy
./usr/lib/python2.7/dist-packages/numpy
./usr/lib/python2.7/dist-packages/numpy/core/include/numpy
./usr/lib/python3/dist-packages/numpy_bad/core/include/numpy
./usr/share/numpy
./usr/include/python2.7/numpy
./usr/include/python3.6m/numpy
./usr/include/numpy

root@supersecretkali:/usr/lib/python3/dist-packages# mv numpy numpy_bad

root@supersecretkali:/usr/lib/python2.7/dist-packages# mv numpy numpy_bad
root@supersecretkali:/usr/lib/python2.7/dist-packages# cd /opt/exploitation/machine_learning_security/DeepExploit/
root@supersecretkali:/opt/exploitation/machine_learning_security/DeepExploit# python DeepExploit.py -t 192.168.2.2 -m train
Traceback (most recent call last):
File "DeepExploit.py", line 17, in
import numpy as np
ImportError: No module named numpy
root@supersecretkali:/opt/exploitation/machine_learning_security/DeepExploit# echo numpy==1.13.3 >req.txt
root@supersecretkali:/opt/exploitation/machine_learning_security/DeepExploit# pip install -r req.txt
Requirement already satisfied: numpy==1.13.3 in /usr/lib/python2.7/dist-packages (from -r req.txt (line 1))
root@supersecretkali:/opt/exploitation/machine_learning_security/DeepExploit# ls /usr/lib/python2.7/dist-packages/ | grep numpy
numpy-1.13.3.egg-info
numpy_bad
root@supersecretkali:/opt/exploitation/machine_learning_security/DeepExploit# rm /usr/lib/python2.7/dist-packages/numpy-1.13.3.egg-info/\

rm: cannot remove '/usr/lib/python2.7/dist-packages/numpy-1.13.3.egg-info/': Is a directory
root@supersecretkali:/opt/exploitation/machine_learning_security/DeepExploit# rm -r /usr/lib/python2.7/dist-packages/numpy-1.13.3.egg-info/
root@supersecretkali:/opt/exploitation/machine_learning_security/DeepExploit# pip install -r req.txt
Collecting numpy==1.13.3 (from -r req.txt (line 1))
Downloading numpy-1.13.3-cp27-cp27mu-manylinux1_x86_64.whl (16.6MB)
100% |████████████████████████████████| 16.7MB 75kB/s
Installing collected packages: numpy
Successfully installed numpy-1.13.3
root@supersecretkali:/opt/exploitation/machine_learning_security/DeepExploit# python DeepExploit.py -t 192.168.2.2 -m train
Using TensorFlow backend.
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
[*] Invalid IP address: 192.168.2.2
root@supersecretkali:/opt/exploitation/machine_learning_security/DeepExploit#

from machine_learning_security.

fanntom avatar fanntom commented on July 20, 2024

Hi I posted the solution to this issue in my issue thread.

from machine_learning_security.

13o-bbr-bbq avatar 13o-bbr-bbq commented on July 20, 2024

Thanks @fanntom !!

from machine_learning_security.

pieterhouwen avatar pieterhouwen commented on July 20, 2024

@fanntom Indeed, thank you!

from machine_learning_security.

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.