Open Sean-Nolan6 opened 2 years ago
Hey Sean, This is a python error, not related to the matlab engine. Can you try this fix:
In the file anTraX/antrax/classifier.py, change line 513 to:
cw = class_weight.compute_class_weight(class_weight='balanced', classes =np.unique(FL.classes), y=FL.classes)
Then update the python code with pip install -e .
I am unable to test this myself currently, so let me know what happens!
Hi your first solution helped the first issue, but I'm currently trialing your other datasets to get a sense of how long my tests were. However when I try and run train on the V25 sample, it keeps coming up with the same error:
Epoch 1/3
124/1000 [==>...........................] - ETA: 5:54 - loss: 3.5632 - acc: 0.3478Traceback (most recent call last):
File "/home/sean/anaconda3/envs/test/bin/antrax", line 33, in
Both errors are due to compatibility issue with 3rd party packages.
To fix your last error, reinstall the pillow
package:
pip uninstall pillow
pip install pillow==8.4.0
Thanks for bringing this to my attention, I will update the requirement file accordingly.
Uninstalling and installing pillow doesn't seem to have fixed the issue, any other ideas to what it might be?
Can you verify the pillow version? In a python console:
import PIL
print(PIL.__version__)
This is the error I get:
(test) sean@seans-ants:~$ import PIL
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 28, in
The command I sent you are python command that need to be run inside a python interactive shell (open one by typing “python” while inside your antrax conda environment).
On 23 Feb 2022, at 22:14, Sean-Nolan6 @.***> wrote:
This is the error I get: (test) @.***:~$ import PIL Traceback (most recent call last): File "/usr/lib/command-not-found", line 28, in from CommandNotFound import CommandNotFound File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in from CommandNotFound.db.db import SqliteDatabase File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 5, in import apt_pkg ImportError: /usr/local/MATLAB/MATLAB_Runtime/v96/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /lib/x86_64-linux-gnu/libapt-pkg.so.6.0)
— Reply to this email directly, view it on GitHub https://github.com/Social-Evolution-and-Behavior/anTraX/issues/35#issuecomment-1049174138, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACERP5VPDS74BUENN6UVWPTU4U53NANCNFSM5LYZGGHA. You are receiving this because you commented.
Hi I am currently setting up Antrax on an Ubuntu 21.10. I am using conda as a virtual environment and have installed the Matlab python engine that came with Matlab R2019a. The issue I currently am having is that when using the command antrax train I am seeing an error of:
It seems to be an error regarding the Matlab python engine version however I am using Matlab R2019a and pip list shows I have matlabengineforpython R2018a installed. Any help fixing this would be appreciated.