-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundError when attempting to download MIT1003 database #51
Comments
same problem |
I just checked the download is working with pysaliency 0.2.22, matlab 2023a on Ubuntu machine! I had to install matlab engine as per this: https://www.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html |
Thank you all for your comments and my apologies for not reaching out earlier. I just tried to download the MIT1003 dataset locally and for me (debian testing, Matlab R2022a) it works smoothly. Part of the MIT1003 import process is running MATLAB to extract the fixation data from the provided gaze traces. The error message looks a bit like this part didn't succeed. Errors in MATLAB should be detected by my code but unfortunately it's nontrivial to run matlab in a failsafe way and maybe I missed something. Could you check and maybe paste the output also before the error message? Is matlab starting at all? It should print something like @ahnchive the matlab engine for python should not be necessary, because I simply call a matlab script from python's |
The same problem. Moreover, I found that the MATLAB Command Window displayed the error: Function or variable |
I believe I might have identified the true cause of this issue. In line 118 of Eventually, before Matlab is fully started, the files in the temporary directory are cleared. This results in Matlab being unable to find the I attempted to add a @matthias-k , I sincerely hope that you or other experts could notice and solve this. |
I have discovered the underlying cause and the corresponding solution. An inappropriate Matlab startup parameter exists in line 333 of In some instances, the Python script does not wait for the conclusion of this interactive workflow, consequently resulting in a series of FileNotFoundError. Therefore, it is merely necessary to remove the parameters I sincerely hope that this suggestion will be noticed promptly and the modification can be made without delay here to resolve the problem. |
@alikecat thanks for the comment! I'm implementing your suggestion right now. I'm not sure that it explains the problem because the code should always wait for matlab to complete, but it is a good idea anyway. When I started implementing the matlab models, I only found |
Another question for everybody who experienced this problem: Which OS are you running? And maybe also add the matlab version. Could it be that the problem always happens in windows? |
ah, maybe matlab behaves differently under windows. We'll see soon |
I just merged a PR which (among other things) switches matlab calls to use the |
Hello,
I've encountered a FileNotFoundError issue while trying to download the MIT1003 dataset using pysaliency. Below is the error traceback:
This error occurs during the extraction and loading process of the MIT1003 dataset. It seems like the script is unable to find or access the .mat file after downloading and extracting the dataset.
I am using pysaliency version 0.2.21 on an Anaconda environment with Python. I have also ensured that all dependencies are up to date and have attempted to run the code on different MATLAB versions (2023b and 2020a) to check for compatibility issues, but the error persists.
Could you please provide guidance on how to resolve this issue, or is there a known workaround to successfully download and access the MIT1003 dataset through pysaliency?
Thank you for your assistance.
The text was updated successfully, but these errors were encountered: