Coder Social home page Coder Social logo

Comments (4)

wisp3rwind avatar wisp3rwind commented on July 19, 2024

Would you mind providing some more details about how to reproduce this? In particular, exact versions/git commits for beets/beets-alternatives. We're testing quite a few versions of beets and python on Travis, and right now they all seem to build correctly.

EDIT: beets-alternatives is in principle working correctly, isn't it? This should only happen when you run exactly beet alt, omitting the beet alt update subcommand. All of the plugin functionality is actually behind this subcommand, beet alt isn't supposed to do anything. Nevertheless, it should give an intelligible error message...

from beets-alternatives.

daviddavo avatar daviddavo commented on July 19, 2024
➜  beets-alternatives git:(master) beet --version
beets version 1.4.9
Python version 3.7.4
➜  beets-alternatives git:(master) beet alt         
Traceback (most recent call last):
  File "/usr/bin/beet", line 11, in <module>
    load_entry_point('beets==1.4.9', 'console_scripts', 'beet')()
  File "/usr/lib/python3.7/site-packages/beets/ui/__init__.py", line 1266, in main
    _raw_main(args)
  File "/usr/lib/python3.7/site-packages/beets/ui/__init__.py", line 1253, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/usr/lib/python3.7/site-packages/beets_alternatives-0.9.0-py3.7.egg/beetsplug/alternatives.py", line 79, in func
    opts.func(lib, opts)
AttributeError: 'Namespace' object has no attribute 'func'

from beets-alternatives.

geigerzaehler avatar geigerzaehler commented on July 19, 2024

As @wisp3rwind pointed out this is indeed an issue with the implementation of AlternativeCommand and persists across all versions of python and beets.

I would suggest showing an error to the user that a command is required. This should be easy to accomplish with argparse. Do you want to give it a try @daviddavo?

from beets-alternatives.

wisp3rwind avatar wisp3rwind commented on July 19, 2024

I can also do this (will not before the weekend, if you feel like tackling the issue yourself, just go ahead @daviddavo)

from beets-alternatives.

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.