Skip to content

fix: Remove dead module io_storages/filesystem.py (#9815) - #9821

Open
johntomcat7408-cmyk wants to merge 2 commits into
HumanSignal:developfrom
johntomcat7408-cmyk:develop
Open

fix: Remove dead module io_storages/filesystem.py (#9815)#9821
johntomcat7408-cmyk wants to merge 2 commits into
HumanSignal:developfrom
johntomcat7408-cmyk:develop

Conversation

@johntomcat7408-cmyk

Copy link
Copy Markdown

What is the purpose of the change

label_studio/io_storages/filesystem.py imports BaseForm, BaseStorage and
CloudStorage from io_storages/base.py, which does not exist; the classes are not
defined anywhere in the codebase, so importing the module raises ModuleNotFoundError.
The import has been broken since the 1.0.0 rewrite (#652), which moved
storage/filesystem.py to io_storages/filesystem.py but deleted storage/base.py
in the same commit. Nothing imports the module — io_storages/__init__.py is empty,
io_storages/models.py only imports the azure_blob/s3/gcs/redis submodules, and a
repo-wide search finds no references to the module or to any of the five classes it
defines. Its functionality is covered by io_storages/localfiles/ and the ORM models
in base_models.py. This removes the file instead of fixing the import, because the
missing base classes belong to the removed Flask-era storage layer.

Fixes #9815.

Brief change log

  • Delete label_studio/io_storages/filesystem.py (−281 lines, no other changes).

Verifying this change

  • Before: python -c "import io_storages.filesystem" raises
    ModuleNotFoundError: No module named 'io_storages.base'.
  • After: import io_storages succeeds; no runtime code path loads the removed module,
    so behavior is unchanged.

@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

👷 Deploy request for heartex-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit d7e730a

@netlify

netlify Bot commented Jul 15, 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 d7e730a

@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-playground canceled.

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

@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-storybook canceled.

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

@github-actions github-actions Bot added the fix label Jul 15, 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