GithubHelp home page GithubHelp logo

Comments (5)

pacman82 avatar pacman82 commented on August 22, 2024

Hello @To3No7 ,

thanks for giving the API a spin. Not sure what exactly is going on here, but at least I do not think that we need the importlib dependency at all. We currently just use it to parse the API version of the service.

Cheers, Markus

from aleph-alpha-client.

To3No7 avatar To3No7 commented on August 22, 2024

It seems that there is a change in version 3.10 of this library "Changed in version 3.10: importlib.metadata is no longer provisional." https://docs.python.org/3/library/importlib.metadata.html and that this functionality is taken over by importlib-metadata https://github.com/python/importlib_metadata , but I do not know how to program your usage of this to cope with various versions of python and these libraries.

Will you update aleph_alpha_client.py so that it no longer depend on this library?

from aleph-alpha-client.

pacman82 avatar pacman82 commented on August 22, 2024

This is my intention. If my current understanding is correct, we only actually use the version type of this library to parse a version string of the http API in order to inform users that they may want to update the client in case the API has changed in a non backwards compatible manner.

Basically I think the use of this package can be replaced with a split.

from aleph-alpha-client.

pacman82 avatar pacman82 commented on August 22, 2024

Sorry, I am in error. We use it to set the package version for User Agent header correctly. Still I think we can do without that dependency.

from aleph-alpha-client.

jneuff avatar jneuff commented on August 22, 2024

Hi @To3No7,

we removed our dependency on importlib.metadata. A colleague just tested the latest release 1.4.2 in google colab and it worked. Please let us know, if you run into further problems.

from aleph-alpha-client.

Related Issues (12)

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.