Title: Trying to import latest version of FEAST is failing · Issue #3538 · feast-dev/feast · GitHub
Open Graph Title: Trying to import latest version of FEAST is failing · Issue #3538 · feast-dev/feast
X Title: Trying to import latest version of FEAST is failing · Issue #3538 · feast-dev/feast
Description: 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 n...
Open Graph Description: 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 thi...
X Description: 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 thi...
Opengraph URL: https://github.com/feast-dev/feast/issues/3538
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Trying to import latest version of FEAST is failing","articleBody":"## Expected Behavior \r\nAfter 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\r\n\r\n## Current Behavior\r\nRight now it throws this error: `ValueError: tuple.index(x): x not in tuple`\r\n\r\n\r\nWith this stack trace:\r\n```\r\n----\u003e 1 import feast\r\n\r\nFile ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/__init__.py:7\r\n 4 except ModuleNotFoundError:\r\n 5 from importlib_metadata import PackageNotFoundError, version as _version # type: ignore\r\n----\u003e 7 from feast.infra.offline_stores.bigquery_source import BigQuerySource\r\n 8 from feast.infra.offline_stores.contrib.athena_offline_store.athena_source import (\r\n 9 AthenaSource,\r\n 10 )\r\n 11 from feast.infra.offline_stores.file_source import FileSource\r\n\r\nFile ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/infra/offline_stores/bigquery_source.py:8\r\n 6 from feast.data_source import DataSource\r\n 7 from feast.errors import DataSourceNoNameException, DataSourceNotFoundException\r\n----\u003e 8 from feast.feature_logging import LoggingDestination\r\n 9 from feast.protos.feast.core.DataSource_pb2 import DataSource as DataSourceProto\r\n 10 from feast.protos.feast.core.FeatureService_pb2 import (\r\n 11 LoggingConfig as LoggingConfigProto,\r\n 12 )\r\n\r\nFile ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/feature_logging.py:14\r\n 8 from feast.embedded_go.type_map import FEAST_TYPE_TO_ARROW_TYPE, PA_TIMESTAMP_TYPE\r\n 9 from feast.errors import (\r\n 10 FeastObjectNotFoundException,\r\n 11 FeatureViewNotFoundException,\r\n 12 OnDemandFeatureViewNotFoundException,\r\n 13 )\r\n---\u003e 14 from feast.feature_view import DUMMY_ENTITY_ID\r\n 15 from feast.protos.feast.core.FeatureService_pb2 import (\r\n 16 LoggingConfig as LoggingConfigProto,\r\n 17 )\r\n 19 if TYPE_CHECKING:\r\n\r\nFile ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/feature_view.py:22\r\n 19 from google.protobuf.duration_pb2 import Duration\r\n 20 from typeguard import typechecked\r\n---\u003e 22 from feast import utils\r\n 23 from feast.base_feature_view import BaseFeatureView\r\n 24 from feast.data_source import DataSource, KafkaSource, KinesisSource, PushSource\r\n\r\nFile ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/utils.py:15\r\n 12 from pytz import utc\r\n 14 from feast.constants import FEAST_FS_YAML_FILE_PATH_ENV_NAME\r\n---\u003e 15 from feast.entity import Entity\r\n 16 from feast.protos.feast.types.EntityKey_pb2 import EntityKey as EntityKeyProto\r\n 17 from feast.protos.feast.types.Value_pb2 import Value as ValueProto\r\n\r\nFile ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/feast/entity.py:28\r\n 23 from feast.usage import log_exceptions\r\n 24 from feast.value_type import ValueType\r\n 27 @typechecked\r\n---\u003e 28 class Entity:\r\n 29 \"\"\"\r\n 30 An entity defines a collection of entities for which features can be defined. An\r\n 31 entity can also contain associated metadata.\r\n (...)\r\n 43 last_updated_timestamp: The time when the entity was last updated.\r\n 44 \"\"\"\r\n 46 name: str\r\n\r\nFile ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/typeguard/_decorators.py:142, in typechecked(target)\r\n 140 for key, attr in target.__dict__.items():\r\n 141 if is_method_of(attr, target):\r\n--\u003e 142 retval = instrument(attr)\r\n 143 if isfunction(retval):\r\n 144 setattr(target, key, retval)\r\n\r\nFile ~/.pyenv/versions/3.8.13/envs/sandbox-py38/lib/python3.8/site-packages/typeguard/_decorators.py:88, in instrument(f)\r\n 85 elif f.__closure__ is not None:\r\n 86 # Existing closure needs modifications\r\n 87 cell = make_cell()\r\n---\u003e 88 index = new_code.co_freevars.index(f.__name__)\r\n 89 closure = f.__closure__[:index] + (cell,) + f.__closure__[index:]\r\n 90 else:\r\n 91 # Make a brand new closure\r\n\r\nValueError: tuple.index(x): x not in tuple\r\n\r\n```\r\n\r\n## Steps to reproduce\r\n- pip install feast \r\n- import feast\r\n\r\n### Specifications\r\n\r\n- FEAST Version: 0.29.0\r\n- Platform: MacOSx (12.6)\r\n- Subsystem:\r\n- Python version: 3.8.13\r\n\r\n## Possible Solution\r\n\r\n- Pinning `typeguard` to a specific version?\r\n","author":{"url":"https://github.com/malavika-menon","@type":"Person","name":"malavika-menon"},"datePublished":"2023-03-15T15:04:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/3538/feast/issues/3538"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:932feba6-ade7-c0a9-92d0-5b72378c7b86 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA7E:D6BAD:5354962:70D5E90:697363C2 |
| html-safe-nonce | d6e18602f18dad3cadd7917aacdaf6a32c84ccf20c9b6b3e930331408f1da622 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTdFOkQ2QkFEOjUzNTQ5NjI6NzBENUU5MDo2OTczNjNDMiIsInZpc2l0b3JfaWQiOiIxMjY4ODIzMjQzMjYzMDA5NzMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 59218d3f3f484646b37e2541717b4e081ba69ea2c4ec38ced0db0062859e97b3 |
| hovercard-subject-tag | issue:1625703682 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/3538/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f57b95398d2190c24d31812995ebf0b67316a7a09a201fe89778d983f14e20e0/feast-dev/feast/issues/3538 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f57b95398d2190c24d31812995ebf0b67316a7a09a201fe89778d983f14e20e0/feast-dev/feast/issues/3538 |
| og:image:alt | 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 thi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | malavika-menon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fe8be790582ef7a55477ce1918ac0ed16b106d31 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width