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

Error Importing Annotations #108

Open
guamashton opened this issue Jan 10, 2025 · 2 comments
Open

Error Importing Annotations #108

guamashton opened this issue Jan 10, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@guamashton
Copy link

guamashton commented Jan 10, 2025

Environment Information

  • coralnet_toolbox version: v0.0.21
  • Python version: 3.10
  • Operating System: Windows 11 Professional

Description

When I try to import json annotations for photos, I get the following error:

Error Importing Annotations
An error occurred while importing annotations: 'NoneType' object has no attribute 'getRgb'

These were annotations made in this version and also in a previous version of the CoralNet Toolbox, both with the same issue. I am still running a previous version in a separate environment, and they load fine there.

@guamashton guamashton added the bug Something isn't working label Jan 10, 2025
@Jordan-Pierce Jordan-Pierce self-assigned this Jan 10, 2025
@Jordan-Pierce
Copy link
Owner

Hi @guamashton sorry to hear you're having issues, I thought that as I updated the annotation json format I wouldn't break anything, but I guess not.

I see where the problem is occurring and it's likely an easy fix; out of curiosity, do you know which version of the toolbox you're using? You can find it in coralnet_toolbox.init.py under __version__. If that isn't there (then it's really old) if you'll just share a screenshot of the files within the coralnet_toolbox folder with the dates last modified showing (then I'll know when you downloaded it and can go back to that version and check some things).

Finally, for the fix itself, it might be easier if you share your annotations.json file and I'll have a look and make sure there aren't any other issues with importing older versions of annotations.json files. If that's okay, you drop it here or send it via email or private DM.

Cheers.

@Jordan-Pierce
Copy link
Owner

Hi @guamashton do you still need assistance with this?

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