Giter Site home page Giter Site logo

Comments (10)

alvations avatar alvations commented on June 9, 2024

Thank you for reporting the bug! Changed the code accordingly to fit click 8.0 name change in the call back.

pip install -U sacremoses>=0.50

Should work with latest click now.

from sacremoses.

eddie-scio avatar eddie-scio commented on June 9, 2024

Just noting that wandb avoids click 8.0.0 which makes it incompat: https://github.com/wandb/client/blob/master/requirements.txt#L1

from sacremoses.

alecbrick avatar alecbrick commented on June 9, 2024

can we do <8.1?

from sacremoses.

alvations avatar alvations commented on June 9, 2024

Ah tricky let me see if I can work out something.

from sacremoses.

alvations avatar alvations commented on June 9, 2024

I've fixed the click dependency to 7.1.2. last version before 8.x (for now) but maybe if this click dependency gets a little too pesky and I'll replace it in the long run.

pip install -U sacremoses>=0.51

Hope it works for everyone now.

from sacremoses.

alecbrick avatar alecbrick commented on June 9, 2024

i mean, i think the issue here is that when the code was originally resultcallback, click wasn't restricted to <8.0.0 - regardless of any changes that are made now, the old version will still have this issue

i think it's perfectly fine to set click>=8.0.0 and use result_callback, and anyone experiencing this issue needs to either bump sacremoses or restrict click themselves

up to you in the end, though

from sacremoses.

alvations avatar alvations commented on June 9, 2024

In the long run, seems like getting rid of click is the way to go.

Meanwhile I think there's no need to fixed click version to anything. It's a simple name-change difference of the callback function that makes click non back-compatible.

Let me think of something to monkey-patch just that callback function names.

from sacremoses.

alvations avatar alvations commented on June 9, 2024

I've uploaded a version that supports both click versions 7.x and 8.x.

pip install -U sacremoses>=0.53

IMHO, it's a nasty fix so I'll think hard on how to remove click.

from sacremoses.

alvations avatar alvations commented on June 9, 2024

Let me know if anyone using either version of clicks fails on your end.

from sacremoses.

gsarti avatar gsarti commented on June 9, 2024

Looks good, thanks!

from sacremoses.

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.