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 — Trying to import latest version of FEAST is failing · Issue #3538 · feast-dev/feast

Trying to import latest version of FEAST is failing #3538

New issue
Copy link
New issue
Copy link
Closed
Closed
Trying to import latest version of FEAST is failing#3538
Copy link
Labels
kind/bugpriority/p2

Description

@malavika-menon
malavika-menon
opened on Mar 15, 2023
Issue body actions

Expected Behavior

After pip installing the feast package, I expect to be able to import feast in the next cell in order to develop with the FEAST python sdk

Current Behavior

Right now it throws this error: ValueError: tuple.index(x): x not in tuple

With this stack trace:

----> 1 import feast

File ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/__init__.py:7
      4 except ModuleNotFoundError:
      5     from importlib_metadata import PackageNotFoundError, version as _version  # type: ignore
----> 7 from feast.infra.offline_stores.bigquery_source import BigQuerySource
      8 from feast.infra.offline_stores.contrib.athena_offline_store.athena_source import (
      9     AthenaSource,
     10 )
     11 from feast.infra.offline_stores.file_source import FileSource

File ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/infra/offline_stores/bigquery_source.py:8
      6 from feast.data_source import DataSource
      7 from feast.errors import DataSourceNoNameException, DataSourceNotFoundException
----> 8 from feast.feature_logging import LoggingDestination
      9 from feast.protos.feast.core.DataSource_pb2 import DataSource as DataSourceProto
     10 from feast.protos.feast.core.FeatureService_pb2 import (
     11     LoggingConfig as LoggingConfigProto,
     12 )

File ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/feature_logging.py:14
      8 from feast.embedded_go.type_map import FEAST_TYPE_TO_ARROW_TYPE, PA_TIMESTAMP_TYPE
      9 from feast.errors import (
     10     FeastObjectNotFoundException,
     11     FeatureViewNotFoundException,
     12     OnDemandFeatureViewNotFoundException,
     13 )
---> 14 from feast.feature_view import DUMMY_ENTITY_ID
     15 from feast.protos.feast.core.FeatureService_pb2 import (
     16     LoggingConfig as LoggingConfigProto,
     17 )
     19 if TYPE_CHECKING:

File ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/feature_view.py:22
     19 from google.protobuf.duration_pb2 import Duration
     20 from typeguard import typechecked
---> 22 from feast import utils
     23 from feast.base_feature_view import BaseFeatureView
     24 from feast.data_source import DataSource, KafkaSource, KinesisSource, PushSource

File ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/utils.py:15
     12 from pytz import utc
     14 from feast.constants import FEAST_FS_YAML_FILE_PATH_ENV_NAME
---> 15 from feast.entity import Entity
     16 from feast.protos.feast.types.EntityKey_pb2 import EntityKey as EntityKeyProto
     17 from feast.protos.feast.types.Value_pb2 import Value as ValueProto

File ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/entity.py:28
     23 from feast.usage import log_exceptions
     24 from feast.value_type import ValueType
     27 @typechecked
---> 28 class Entity:
     29     """
     30     An entity defines a collection of entities for which features can be defined. An
     31     entity can also contain associated metadata.
   (...)
     43         last_updated_timestamp: The time when the entity was last updated.
     44     """
     46     name: str

File ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/typeguard/_decorators.py:142, in typechecked(target)
    140 for key, attr in target.__dict__.items():
    141     if is_method_of(attr, target):
--> 142         retval = instrument(attr)
    143         if isfunction(retval):
    144             setattr(target, key, retval)

File ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/typeguard/_decorators.py:88, in instrument(f)
     85 elif f.__closure__ is not None:
     86     # Existing closure needs modifications
     87     cell = make_cell()
---> 88     index = new_code.co_freevars.index(f.__name__)
     89     closure = f.__closure__[:index] + (cell,) + f.__closure__[index:]
     90 else:
     91     # Make a brand new closure

ValueError: tuple.index(x): x not in tuple

Steps to reproduce

  • pip install feast
  • import feast

Specifications

  • FEAST Version: 0.29.0
  • Platform: MacOSx (12.6)
  • Subsystem:
  • Python version: 3.8.13

Possible Solution

  • Pinning typeguard to a specific version?
Reacted by davidschuler-8451, Martijn Gemmink and rana-daoud
Reacted by Bjorn Goossens

Activity

  1. malavika-menon
    added
    kind/bug
    priority/p2
    on Mar 15, 2023
  2. malavika-menon commented on Mar 15, 2023

    @malavika-menon
    malavika-menon
    on Mar 15, 2023
    Author
    More actions

    Typeguard latest version is currently 3.0.0, but this is breaking feast. The last stable version is 2.13.3

    Reacted by Saveliy Galochkin and Sivanantham
  3. davidschuler-8451 commented on Mar 15, 2023

    @davidschuler-8451
    davidschuler-8451
    on Mar 15, 2023
    Contributor
    More actions

    confirmed that directly installing typeguard==2.13.3 after installing feast fixed the issue for me.

    Reacted by Martijn Gemmink, rana-daoud, T.J., Saveliy Galochkin, Sivanantham, Mikołaj Nazarczuk, Szymon Balawajder and Hyeongseok Yoo
  4. AndreaEr commented on Mar 21, 2023

    @AndreaEr
    AndreaEr
    on Mar 21, 2023
    More actions

    received this ModuleNotFoundError: No module named 'venv\Lib\site-packages\_distutils_hack\override' after install typeguard==2.13.3,
    I am using 3.10.2 python version

  5. adchia commented on Apr 21, 2023

    @adchia
    adchia
    on Apr 21, 2023
    Collaborator
    More actions

    Think this was fixed by #3542 and was already released so closing!

  6. adchia
    closed this as completedon Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugpriority/p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — 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.