Comments (7)
@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.
Hi thanks for your reply, yes both of them show version 1.13.3
from machine_learning_security.
@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.
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.
Hi I posted the solution to this issue in my issue thread.
from machine_learning_security.
Thanks @fanntom !!
from machine_learning_security.
@fanntom Indeed, thank you!
from machine_learning_security.
Related Issues (20)
- NMAP HOT 10
- DeepExploit issue
- DeepExploit issues HOT 1
- pip3 install tensorflow error & auto killed HOT 1
- Could not find a version that satisfies the requirement tensorflow>=1.8.0 HOT 1
- python3 DeepExploit.py -h & SyntaxError: invalid syntax
- Problem with string matching HOT 1
- range of targets and modules
- Retry "auth.login" call. reason: [Errno 60] Operation timed out HOT 1
- Illegal instruction HOT 1
- int is not allowed for map key? HOT 3
- DeepExploit issue HOT 2
- Lots Of Bug HOT 3
- Msf5 exploitation
- Starting a Business
- how to s solve this question? HOT 4
- No ports found in host that has opened ports HOT 1
- Retry "auth.login" call. reason: [Errno 111] Connection refused HOT 3
- Installation Environment
- 'utf-8' codec can't decode byte 0xb5 in position 182: invalid start byte
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from machine_learning_security.