mazen160/shennina

Running shennina.py on Arch Linux

Closed this issue · 4 comments

Hello.

I had some issues installing the default requirements so I used these :

pymetasploit3
termcolor
python-nmap
requests
flask
tensorflow==2.8.0 (Instead of 2.7.3)
tensorflow-estimator==2.7.0
tensorflow-hub==0.12.0
matplotlib==3.4.3
pandas==1.1.5
numpy==1.21.0 (Instead of 1.16.3)
numpydoc==0.9.1

So the requirements installed well but when I run shennina.py I get these errors :

Traceback (most recent call last):
File "/home/arch1618033/HACKING_TOOLS/shennina/shennina.py", line 11, in
import a3c_classes
File "/home/arch1618033/HACKING_TOOLS/shennina/classes/a3c_classes.py", line 4, in
from tensorflow.python.keras import layers
File "/usr/lib/python3.10/site-packages/tensorflow/init.py", line 473, in
keras._load()
File "/usr/lib/python3.10/site-packages/tensorflow/python/util/lazy_loader.py", line 41, in _load
module = importlib.import_module(self.name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.10/site-packages/keras/init.py", line 25, in
from keras import models
File "/usr/lib/python3.10/site-packages/keras/models.py", line 20, in
from keras import metrics as metrics_module
File "/usr/lib/python3.10/site-packages/keras/metrics.py", line 24, in
from keras import activations
File "/usr/lib/python3.10/site-packages/keras/activations.py", line 20, in
from keras.layers import advanced_activations
File "/usr/lib/python3.10/site-packages/keras/layers/init.py", line 27, in
from keras.engine.base_preprocessing_layer import PreprocessingLayer
File "/usr/lib/python3.10/site-packages/keras/engine/base_preprocessing_layer.py", line 19, in
from keras.engine import data_adapter
File "/usr/lib/python3.10/site-packages/keras/engine/data_adapter.py", line 38, in
import pandas as pd # pylint: disable=g-import-not-at-top
File "/usr/lib/python3.10/site-packages/pandas/init.py", line 30, in
from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
File "/usr/lib/python3.10/site-packages/pandas/_libs/init.py", line 13, in
from pandas._libs.interval import Interval
File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

CAN ANYBODY HELP ME FIX THIS PLEASE ?

Some info about my system (Feel free to ask for more detail) :

  • Arch Linux
  • Terminal Alacrity
  • Python 3.10.8
  • Pip 22.3.1

Thanks a lot :)

have you tried uninstalling numpy and reinstalling

pip3 install --upgrade numpy

or

pip3 uninstall numpy
pip3 install numpy

Well you have 2 options in here:
1- Install python 3.9 then create a virtual environment and install the requirements in there.

2- Pull a python 3.9 docker image and install the tool in it

have you tried uninstalling numpy and reinstalling

pip3 install --upgrade numpy

or

pip3 uninstall numpy
pip3 install numpy

pip3 install --upgrade numpy Worked for me. Thanks a lot.

Well you have 2 options in here: 1- Install python 3.9 then create a virtual environment and install the requirements in there.

2- Pull a python 3.9 docker image and install the tool in it

Will try it out and confirm but pip3 install --upgrade numpy worked for me