evilsocket / pwnagotchi

(⌐■_■) - Deep Reinforcement Learning instrumenting bettercap for WiFi pwning.
https://pwnagotchi.ai/
Other
7.78k stars 1.16k forks source link

AI Error #1172

Open schemil053 opened 1 year ago

schemil053 commented 1 year ago

My AI is not working, the error in the logfile of pwnagotchi:

2023-07-13 21:18:41,904] [INFO] [epoch 1] duration=00:00:48 slept_for=00:00:30 blind=0 sad=0 bored=0 inactive=0 active=1 peers=0 tot_bond=0.00 avg_bond=0.00 hops=1 missed=0 deauths=6 assocs=2 handshakes=2 cpu=100% mem=30% temperature=37C reward=0.3507142857142857 [2023-07-13 21:18:59,461] [ERROR] error while starting AI (numpy.ndarray size changed, may indicate binary incompatibility. Expected 44 from C header, got 40 from PyObject) Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/pwnagotchi/ai/init.py", line 21, in load from stable_baselines import A2C File "/usr/local/lib/python3.7/dist-packages/stable_baselines/init.py", line 1, in from stable_baselines.a2c import A2C File "/usr/local/lib/python3.7/dist-packages/stable_baselines/a2c/init.py", line 1, in from stable_baselines.a2c.a2c import A2C File "/usr/local/lib/python3.7/dist-packages/stable_baselines/a2c/a2c.py", line 6, in import tensorflow as tf File "/usr/lib/python3/dist-packages/tensorflow/init.py", line 98, in from tensorflow_core import * File "/usr/lib/python3/dist-packages/tensorflow_core/init.py", line 35, in from tensorflow._api.v1 import compat File "/usr/lib/python3/dist-packages/tensorflow_core/_api/v1/compat/init.py", line 21, in from tensorflow._api.v1.compat import v1 File "/usr/lib/python3/dist-packages/tensorflow_core/_api/v1/compat/v1/init.py", line 652, in from tensorflow_estimator.python.estimator.api._v1 import estimator File "/usr/local/lib/python3.7/dist-packages/tensorflow_estimator/init.py", line 8, in from tensorflow_estimator._api.v1 import estimator File "/usr/local/lib/python3.7/dist-packages/tensorflow_estimator/_api/v1/estimator/init.py", line 8, in from tensorflow_estimator._api.v1.estimator import experimental File "/usr/local/lib/python3.7/dist-packages/tensorflow_estimator/_api/v1/estimator/experimental/init.py", line 8, in from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder File "/usr/local/lib/python3.7/dist-packages/tensorflow_estimator/python/estimator/init.py", line 25, in import tensorflow_estimator.python.estimator.estimator_lib File "/usr/local/lib/python3.7/dist-packages/tensorflow_estimator/python/estimator/estimator_lib.py", line 53, in from tensorflow_estimator.python.estimator.inputs import inputs File "/usr/local/lib/python3.7/dist-packages/tensorflow_estimator/python/estimator/inputs/inputs.py", line 22, in from tensorflow_estimator.python.estimator.inputs.numpy_io import numpy_input_fn File "/usr/local/lib/python3.7/dist-packages/tensorflow_estimator/python/estimator/inputs/numpy_io.py", line 26, in from tensorflow_estimator.python.estimator.inputs.queues import feeding_functions File "/usr/local/lib/python3.7/dist-packages/tensorflow_estimator/python/estimator/inputs/queues/feeding_functions.py", line 40, in import pandas as pd File "/usr/local/lib/python3.7/dist-packages/pandas/init.py", line 29, in from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib File "/usr/local/lib/python3.7/dist-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 44 from C header, got 40 from PyObject [2023-07-13 21:18:59,668] [WARNING] [ai] AI not loaded!

Nannk commented 1 year ago

Hey. I had the same problem. Updating numpy does help with this. https://github.com/evilsocket/pwnagotchi/issues/1015