Title: 'feast.ui_server' is not a package · Issue #4241 · feast-dev/feast · GitHub
Open Graph Title: 'feast.ui_server' is not a package · Issue #4241 · feast-dev/feast
X Title: 'feast.ui_server' is not a package · Issue #4241 · feast-dev/feast
Description: Expected Behavior feast ui command is starting without errors Current Behavior feast ui --host 127.0.0.1 --port 8889 /Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/feast/ui_server.py:45: Deprecatio...
Open Graph Description: Expected Behavior feast ui command is starting without errors Current Behavior feast ui --host 127.0.0.1 --port 8889 /Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-pa...
X Description: Expected Behavior feast ui command is starting without errors Current Behavior feast ui --host 127.0.0.1 --port 8889 /Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-pa...
Opengraph URL: https://github.com/feast-dev/feast/issues/4241
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'feast.ui_server' is not a package","articleBody":"## Expected Behavior \r\nfeast ui command is starting without errors\r\n\r\n## Current Behavior\r\n```\r\nfeast ui --host 127.0.0.1 --port 8889\r\n/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/feast/ui_server.py:45: DeprecationWarning: \r\n on_event is deprecated, use lifespan event handlers instead.\r\n\r\n Read more about it in the\r\n [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).\r\n \r\n @app.on_event(\"shutdown\")\r\n/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/fastapi/applications.py:4495: DeprecationWarning: \r\n on_event is deprecated, use lifespan event handlers instead.\r\n\r\n Read more about it in the\r\n [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).\r\n \r\n return self.router.on_event(event_type)\r\nTraceback (most recent call last):\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/bin/feast\", line 8, in \u003cmodule\u003e\r\n sys.exit(cli())\r\n ^^^^^\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/click/core.py\", line 1157, in __call__\r\n return self.main(*args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/click/core.py\", line 1078, in main\r\n rv = self.invoke(ctx)\r\n ^^^^^^^^^^^^^^^^\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/click/core.py\", line 1688, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/click/core.py\", line 1434, in invoke\r\n return ctx.invoke(self.callback, **ctx.params)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/click/core.py\", line 783, in invoke\r\n return __callback(*args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/click/decorators.py\", line 33, in new_func\r\n return f(get_current_context(), *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/feast/cli.py\", line 172, in ui\r\n store.serve_ui(\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/feast/feature_store.py\", line 2494, in serve_ui\r\n ui_server.start_server(\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/feast/ui_server.py\", line 105, in start_server\r\n app = get_app(\r\n ^^^^^^^^\r\n File \"/Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-packages/feast/ui_server.py\", line 54, in get_app\r\n ui_dir_ref = importlib_resources.files(__name__) / \"ui/build/\"\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/usr/local/Cellar/python@3.11/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/resources/_common.py\", line 22, in files\r\n return from_package(get_package(package))\r\n ^^^^^^^^^^^^^^^^^^^^\r\n File \"/usr/local/Cellar/python@3.11/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/resources/_common.py\", line 55, in get_package\r\n raise TypeError(f'{package!r} is not a package')\r\nTypeError: 'feast.ui_server' is not a package\r\n```\r\n\r\n## Steps to reproduce\r\n```\r\npip install feast==0.38.0\r\nfeast init test_ui # created a project\r\ncd test_ui/feature_repo\r\nfeast apply -- OK\r\nfeast serve -p 8008 # started feast server 127.0.0.1:8008 -- OK\r\n\r\n#in the same folder\r\nfeast ui --host 127.0.0.1 --port 8009 # I was trying different ports 8008, 8888 etc -- ERROR\r\n```\r\n\r\n### Specifications\r\n\r\n- Version: feast==0.38.0 , python3.11\r\n- Platform: MacOs\r\n- Subsystem:\r\n\r\n## Possible Solution\r\n","author":{"url":"https://github.com/mascai","@type":"Person","name":"mascai"},"datePublished":"2024-05-30T08:54:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/4241/feast/issues/4241"}
| 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:187f8f9a-1ab0-4ee3-ef01-73020061635b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE08:16B5B3:282A726:369B83F:69736720 |
| html-safe-nonce | 29b7f5924129701501624cb98862bde11fe14b558cbee5524df62aa7f9415f2b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTA4OjE2QjVCMzoyODJBNzI2OjM2OUI4M0Y6Njk3MzY3MjAiLCJ2aXNpdG9yX2lkIjoiODEwMTM1NzEwNTc5NDIxMzY2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0673479cb22e71e23a27c16685299497b3aa3469be63225f27cfed2d37df3d3e |
| hovercard-subject-tag | issue:2325121109 |
| 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/4241/issue_layout |
| twitter:image | https://opengraph.githubassets.com/faded06e05aea664507d52d6f42e7ee357fca898b8bd87384b84da9a3f280627/feast-dev/feast/issues/4241 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/faded06e05aea664507d52d6f42e7ee357fca898b8bd87384b84da9a3f280627/feast-dev/feast/issues/4241 |
| og:image:alt | Expected Behavior feast ui command is starting without errors Current Behavior feast ui --host 127.0.0.1 --port 8889 /Users/aamoskalenko/0_root_folder/02_dev/35_feast_ui/venv/lib/python3.11/site-pa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mascai |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width