Skip to content
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

TypeError: No file format adaptor could read this file. #1181

Closed
1 of 4 tasks
e-velin opened this issue Feb 17, 2023 · 5 comments
Closed
1 of 4 tasks

TypeError: No file format adaptor could read this file. #1181

e-velin opened this issue Feb 17, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@e-velin
Copy link

e-velin commented Feb 17, 2023

Bug description

Hi,

I installed SLEAP on a MacBook Pro 2018 with Intel Iris Plus Graphics 655 1536 MB Graphics card for annotation only, following the Installation guide from sleap.ai, including the "conda env create -f environment_no_cuda.yml -n sleap" command specifically for the case without an Nvidia GPU.

When I try to open a .slp sleap project file, it won't open the file and I receive this message in the terminal window:
TypeError: No file format adaptor could read this file.

Do you have any suggestions what could go possibly wrong?

Thanks.

Your personal set up

  • OS: macOS 13.2.1
  • Version(s):
SLEAP v1.2.9, python 3.7.16
@e-velin e-velin added the bug Something isn't working label Feb 17, 2023
@roomrys
Copy link
Collaborator

roomrys commented Feb 24, 2023

Hi @e-velin,

Do you telling me a bit more about how to produce the error (i.e. which button did you select [File>> ...], what was the full file name [.pkg.slp?]) and/or providing me with the file to open (shared with [email protected])? We very recently invested in another mac for better support on that front! I can try to reproduce the error, if you also have the full traceback, that might be useful.

Thanks,
Liezl

@e-velin
Copy link
Author

e-velin commented Mar 1, 2023

Hi @roomrys,

Thank you for your reply. I updated the details in my description. This error occurs when I select File > Open Project > ___.slp in the SLEAP GUI. I sent the exact .slp project file and the output of sleep-diagnostic to [email protected].

Thanks,
Evelin

@roomrys
Copy link
Collaborator

roomrys commented Mar 2, 2023

Hi @e-velin,

I think I know what the problem is. There has a been a slight change in our file structure from the 1.2.9 release to the 1.3.0a0 pre-release - an extra field is now stored in the slp. So, if you had opened the slp in a newer version of SLEAP (post-1.2.9-release), saved, and then tried to re-open in a previous version (<=1.2.9), you will get a strange error message saying SLEAP cannot open this file.

I see you have the source code of SLEAP locally. The fix is to head to the directory containing the SLEAP source code, open a terminal in that directory, and update your source code by running git pull. The slp should now open (as it did for me on the latest source code).

Let us know how it goes and/or if you need any help.

Thanks,
Liezl

Thinking out loud...

If this is going to be a problem, there is no way of changing past version of code to have futuristic error messages, but maybe we can omit storing that extra field in the slp unless we absolutely need it? Some people would still run into this problem, but not many - would that make it a more difficult to diagnose problem? Probably, not a good idea. Should we direct "conda from source" users to use the main branch instead of develop. Yes, probably.

@roomrys roomrys added the fixed in future release Fix or feature is merged into develop and will be available in future release. label Mar 2, 2023
@roomrys
Copy link
Collaborator

roomrys commented Mar 15, 2023

Hi @e-velin,

I am just following up to see if you can verify that the problem was indeed caused by switching from v1.3.0a0 to <1.3.0a0? Related: #1217 (issue) and #1222 (PR).

Thanks,
Liezl

@roomrys
Copy link
Collaborator

roomrys commented Mar 24, 2023

This fix is now available in the latest release v1.3.0. To install:

conda create -y -n sleap -c sleap -c nvidia -c conda-forge sleap=1.3.0

@roomrys roomrys closed this as completed Mar 24, 2023
@roomrys roomrys removed the fixed in future release Fix or feature is merged into develop and will be available in future release. label Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants