b-fullam / Automating-VirusTotal-APIv3-for-IPs-and-URLs

Automating VirusTotal's API v3 for IP address and URL analysis w/HTML Reporting. Python script that functions like a CLI tool to interact programmatically with VirusTotal API v3.
MIT License
40 stars 14 forks source link

Error with python3.11 #3

Open VictorSdelsol opened 11 months ago

VictorSdelsol commented 11 months ago

Hi, I'm trying to run the script on a WSL VM.

I have done all the steps indicated to use your script and I am getting the following errors:

─$ python vt-ip-url-analysis.py -h /home/nueve/.local/lib/python3.11/site-packages/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (5.2.0)/charset_normalizer (2.0.10) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported " Traceback (most recent call last): File "init.pxd", line 942, in numpy.import_array RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/nueve/Automating-VirusTotal-APIv3-for-IPs-and-URLs/vt-ip-url-analysis.py", line 6, in import pandas as pd File "/usr/local/lib/python3.11/dist-packages/pandas/init.py", line 22, in from pandas.compat import ( File "/usr/local/lib/python3.11/dist-packages/pandas/compat/init.py", line 15, in from pandas.compat.numpy import ( File "/usr/local/lib/python3.11/dist-packages/pandas/compat/numpy/init.py", line 7, in from pandas.util.version import Version File "/usr/local/lib/python3.11/dist-packages/pandas/util/init.py", line 1, in from pandas.util._decorators import ( # noqa File "/usr/local/lib/python3.11/dist-packages/pandas/util/_decorators.py", line 14, in from pandas._libs.properties import cache_readonly # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/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 File "pandas/_libs/hashtable.pyx", line 1, in init pandas._libs.hashtable File "pandas/_libs/missing.pyx", line 1, in init pandas._libs.missing File "/usr/local/lib/python3.11/dist-packages/pandas/_libs/tslibs/init.py", line 31, in from pandas._libs.tslibs.conversion import ( File "pandas/_libs/tslibs/conversion.pyx", line 1, in init pandas._libs.tslibs.conversion File "pandas/_libs/tslibs/nattype.pyx", line 30, in init pandas._libs.tslibs.nattype File "init.pxd", line 944, in numpy.import_array ImportError: numpy.core.multiarray failed to import

Thank you for your work and help.

octopus175 commented 7 months ago

upgrading numpy works for me

pip3 install -U numpy