Git Product home page Git Product logo

Comments (11)

privatedumbo avatar privatedumbo commented on June 21, 2024 2

Good, agreed. Will come back tomorrow for this. Thanks for the ping-pong 🏓

from feast.

privatedumbo avatar privatedumbo commented on June 21, 2024

This happened to me to. The problem is related to importlib_resources.

Problem: this does not work with importlib.resources
Solution: install importlib-resources

To validate this, you can run and it should work. I can PR:

from unittest import mock
import importlib_resources


with mock.patch("feast.ui_server.importlib_resources", new=importlib_resources):
        store = FeatureStore()
        store.serve_ui(
            host=host,
            port=port,
            get_registry_dump=registry_dump,
            registry_ttl_sec=registry_ttl_sec,
            root_path=root_path,
        )

from feast.

shuchu avatar shuchu commented on June 21, 2024

The importlib of Python involves many changes and deprecations in newer Python versions. I would prefer to modify the code and catch the latest changes in importlib.resources

from feast.

privatedumbo avatar privatedumbo commented on June 21, 2024

So you suggest fixing this using the built-in one, instead of installing importlib-resources?

from feast.

tokoko avatar tokoko commented on June 21, 2024

I think I broke this, sorry about that :). changing importlib_resources.files(__name__) with importlib_resources.files('feast') should be a fix if I'm not mistaken. I was for some reason still not able to start the ui server with the change applied, but it seemed to fix the is not a package error. If anyone can verify it, would be a great help...

from feast.

privatedumbo avatar privatedumbo commented on June 21, 2024

v0.38.0
v0.37.1

For what I see, the difference is using the builtin vs the library. Not the package name

from feast.

tokoko avatar tokoko commented on June 21, 2024

Yes, I made the change in #4109. The difference apparently is that files method in library expects anchor file path as a first parameter, while the same method in built-in expects a package name. I thought there were supposed to be drop-in replacements and missed that...

from feast.

privatedumbo avatar privatedumbo commented on June 21, 2024

Yes, should be TBH. I can PR this tomorrow if it helps.
Option A) we re-install the lib
Option B) we fix it using the built-in if possible

WDYT?

from feast.

tokoko avatar tokoko commented on June 21, 2024

yup, I'd prefer fixing it with built-in if possible. importlib libraries are pretty popular and have caused diamond dependency problems before... so if there's a way to not depend on them, that would be a plus. thanks a lot

from feast.

shuchu avatar shuchu commented on June 21, 2024

So you suggest fixing this using the built-in one, instead of installing importlib-resources?

yes, the Python built-in one is preferred as the discussion concluded.

from feast.

privatedumbo avatar privatedumbo commented on June 21, 2024

PR raised here:
#4248

from feast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.