Giter Site home page Giter Site logo

Comments (4)

matteo-grella avatar matteo-grella commented on May 12, 2024

Hi @csaade,

Thanks for pointing out this problem.

It appears that the reference to badger v2 has changed or removed. Very odd indeed.

In any case, I updated the dependency to version v3 and everything seems to work smoothly now on the main branch.

Can you please verify and let me know?

from spago.

csaade avatar csaade commented on May 12, 2024

Hey @matteo-grella,

Thanks for your help - it's working well on my end now! However, I'm still facing some compilation issues in the huggingfaceimporter/clientutils code mostly. Here are the errors:

`../go/src/github.com/nlpodyssey/spago/cmd/huggingfaceimporter/internal/importer.go:62:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/nlpodyssey/spago/cmd/huggingfaceimporter/internal/importer.go:66:4: unknown field 'EnvVar' in struct literal of type cli.StringFlag
../go/src/github.com/nlpodyssey/spago/cmd/huggingfaceimporter/internal/importer.go:69:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/nlpodyssey/spago/cmd/huggingfaceimporter/internal/importer.go:72:4: unknown field 'EnvVar' in struct literal of type cli.StringFlag
../go/src/github.com/nlpodyssey/spago/cmd/huggingfaceimporter/internal/importer.go:76:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/nlpodyssey/spago/cmd/huggingfaceimporter/internal/importer.go:79:4: unknown field 'EnvVar' in struct literal of type cli.BoolFlag

github.com/nlpodyssey/spago/cmd/clientutils
../go/src/github.com/nlpodyssey/spago/cmd/clientutils/client.go:24:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/nlpodyssey/spago/cmd/clientutils/client.go:29:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/nlpodyssey/spago/cmd/clientutils/client.go:34:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
`

Am I doing something wrong?

from spago.

matteo-grella avatar matteo-grella commented on May 12, 2024

I'm not sure.

You couldn't report here the sequence of operations and commands that led to this error, could you?

from spago.

matteo-grella avatar matteo-grella commented on May 12, 2024

Solved by updating the module github.com/urfave/cli to v2.

from spago.

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.