diladele / websafety

Simple and powerful web filter for HTTP and HTTPS traffic
https://www.diladele.com
243 stars 24 forks source link

hardcoded pandas version is too old - need to update #2233

Open ra-at-diladele-com opened 1 month ago

ra-at-diladele-com commented 1 month ago

In /opt/websafety-ui/var/console/requirements.txt we have a hardcoded version of pandas pandas==2.0.3 - when you run the vm build script lately that version of pandas seem to be too old.

You will get the following error when trying to run the Admin UI:

[Tue Jul 09 11:45:22.552707 2024] [wsgi:error] [pid 1358:tid 139829105600064] [remote 192.168.0.33:28902] 
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, 
got 88 from PyObject

This can be fixed by:

cd /opt/websafety-ui/env/bin
./pip uninstall pandas
./pip install pandas
systemctl restart apache2