Skip to content

fix: remove dead io_storages/filesystem.py module - #9923

Open
pranaysb wants to merge 1 commit into
HumanSignal:developfrom
pranaysb:fix/remove-dead-filesystem-module
Open

fix: remove dead io_storages/filesystem.py module#9923
pranaysb wants to merge 1 commit into
HumanSignal:developfrom
pranaysb:fix/remove-dead-filesystem-module

Conversation

@pranaysb

@pranaysb pranaysb commented Sep 3, 2026

Copy link
Copy Markdown

Summary

  • label_studio/io_storages/filesystem.py does from .base import BaseForm, BaseStorage, CloudStorage, but no base module exists in io_storages/ (the nearest is base_models.py, which does not define these names). Importing this module raises ModuleNotFoundError.
  • A repo-wide search finds zero importers of this module and zero references to any of the classes it defines (JSONStorage, DirJSONsStorage, TasksJSONStorage, ExternalTasksJSONStorage, AnnotationsDirStorage). It is dead legacy code left over from an older storage implementation that predates the current model-based storage system in io_storages/base_models.py.
  • Since the BaseForm/BaseStorage/CloudStorage base classes it depends on no longer exist anywhere in the codebase, fixing the import isn't a real option without reintroducing removed functionality — deleting the file is the minimal, safe fix.

Fixes #9815

Test plan

  • grep -rn "io_storages.filesystem\|from \.filesystem\|import filesystem" label_studio/ — zero importers before and after
  • Confirmed none of the classes defined in the file (JSONStorage, DirJSONsStorage, TasksJSONStorage, ExternalTasksJSONStorage, AnnotationsDirStorage) are referenced elsewhere in the codebase

The module imports from a non-existent .base submodule (from .base import
BaseForm, BaseStorage, CloudStorage), so importing it raises
ModuleNotFoundError. No file in the codebase imports this module or
references any of the classes it defines, and the BaseForm/BaseStorage/
CloudStorage classes it depends on no longer exist anywhere in the repo.

Fixes HumanSignal#9815
@netlify

netlify Bot commented Sep 3, 2026

Copy link
Copy Markdown

👷 Deploy request for heartex-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4fe0227

@netlify

netlify Bot commented Sep 3, 2026

Copy link
Copy Markdown

👷 Deploy request for label-studio-docs-new-theme pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4fe0227

@netlify

netlify Bot commented Sep 3, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-playground canceled.

Name Link
🔨 Latest commit 4fe0227
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/6a990d16ec30790008e17c69

@netlify

netlify Bot commented Sep 3, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-storybook canceled.

Name Link
🔨 Latest commit 4fe0227
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6a990d166d7d2c0008219db5

@github-actions github-actions Bot added the fix label Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

io_storages/filesystem.py is a dead module — its from .base import … target doesn't exist

1 participant