GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Could not import module 'hybrid_online_store' · Issue #5630 · feast-dev/feast

Could not import module 'hybrid_online_store' #5630

New issue
Copy link
New issue
Copy link
Closed
#5810
Closed
Could not import module 'hybrid_online_store'#5630
#5810
Copy link
Assignees
haoxu0
Labels
good first issueGood for newcomersGood for newcomerskind/bugpriority/p2starter-ticketGood starter ticketsGood starter tickets

Description

@fcas
fcas
opened on Sep 24, 2025
Issue body actions

Expected Behavior

Import hybrid_online_store module correctly, according to this documentation: https://github.com/feast-dev/feast/blob/master/docs/reference/online-stores/hybrid.md.

Current Behavior

Could not import module 'hybrid_online_store'

Steps to reproduce

Use the following RepoConfig:

repo_config = RepoConfig(
    **{
        "project": "prod",
        "registry": {
            "registry_type": "sql",
            "path": os.getenv("DATABASE_URL"),
            "cache_ttl_seconds": 0,
            "sqlalchemy_config_kwargs": {
                "max_overflow": 50,
                "pool_size": 5,
                "pool_recycle": 3600,
            },
        },
        "provider": "aws",
        "entity_key_serialization_version": 3,
        "online_store": {
            "type": "hybrid_online_store.HybridOnlineStore",
            "routing_tag": "store",
            "online_stores": [
                {
                    "type": "dynamodb",
                    "conf": {
                        "region": "us-east-1",
                        "max_pool_connections": 50,
                        "connect_timeout": 5,
                        "read_timeout": 10,
                        "total_max_retry_attempts": 2
                    }
                },
                {
                    "type": "redis",
                    "conf": {
                        "connection_string": os.getenv("REDIS_URL")
                    }
                }
            ],
        },
    }
)

Specifications

  • Version: 0.53.0
  • Platform: macOs 14.6.1
  • Subsystem: Python 3.12

Possible Solution

Use the following config:

repo_config = RepoConfig(
    **{
        "project": "prod",
        "registry": {
            "registry_type": "sql",
            "path": os.getenv("DATABASE_URL"),
            "cache_ttl_seconds": 0,
            "sqlalchemy_config_kwargs": {
                "max_overflow": 50,
                "pool_size": 5,
                "pool_recycle": 3600,
            },
        },
        "provider": "aws",
        "entity_key_serialization_version": 3,
        "online_store": {
            "type": "feast.infra.online_stores.hybrid_online_store.hybrid_online_store.HybridOnlineStore",
            "routing_tag": "store",
            "online_stores": [
                {
                    "type": "dynamodb",
                    "conf": {
                        "region": "us-east-1",
                        "max_pool_connections": 50,
                        "connect_timeout": 5,
                        "read_timeout": 10,
                        "total_max_retry_attempts": 2
                    }
                },
                {
                    "type": "redis",
                    "conf": {
                        "connection_string": os.getenv("REDIS_URL")
                    }
                }
            ],
        },
    }
)

Also, it's necessary to change the type attribute in hybrid_online_store.py (https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/online_stores/hybrid_online_store/hybrid_online_store.py) from:

    type: Literal["HybridOnlineStore", "hybrid_online_store.HybridOnlineStore"] = (
        "hybrid_online_store.HybridOnlineStore"
    )

To:

    type: Literal["HybridOnlineStore", "feast.infra.online_stores.hybrid_online_store.hybrid_online_store.HybridOnlineStore"] = (
        "hybrid_online_store.HybridOnlineStore"
    )
Reacted by Gabriela, Danilo Chicale, Caroline Zago, nivea, 유하준(Hajun Yoo)/MLOps, Jacob Weinhold, Jonathan Zarecki and Francisco Javier Arceo

Activity

  1. fcas
    added
    kind/bug
    priority/p2
    on Sep 24, 2025
  2. ntkathole
    added
    good first issueGood for newcomersGood for newcomers
    starter-ticketGood starter ticketsGood starter tickets
    on Sep 25, 2025
  3. haoxu0
    self-assigned this
    on Nov 23, 2025
  4. YassinNouh21 commented on Jan 4, 2026

    @YassinNouh21
    YassinNouh21
    on Jan 4, 2026
    Collaborator
    More actions

    Hi! I noticed this issue has been open for a while. I've submitted a fix in PR #5810 that adds the missing hybrid shorthand to ONLINE_STORE_CLASS_FOR_TYPE and the required __init__.py. Would appreciate a review when you have time!

    Reacted by Francisco Javier Arceo and Felipe Cordeiro Alves Dias
  5. franciscojavierarceo
    closed this as completedin #5810on Jan 5, 2026
  6. fcas commented on Jan 26, 2026

    @fcas
    fcas
    on Jan 26, 2026
    Author
    More actions

    @YassinNouh21 thanks a lot! I'll try to use this new version ASAP.

    Reacted by Yassin Nouh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @haoxu0
    haoxu0

Labels

good first issueGood for newcomersGood for newcomerskind/bugpriority/p2starter-ticketGood starter ticketsGood starter tickets

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.