Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NoneType' object has no attribute 'add_cmd' #1257

Open
KUKARAF opened this issue Oct 21, 2023 · 0 comments
Open

'NoneType' object has no attribute 'add_cmd' #1257

KUKARAF opened this issue Oct 21, 2023 · 0 comments

Comments

@KUKARAF
Copy link

KUKARAF commented Oct 21, 2023

install 3.7 3.11 or 3.12 run yt

Issue / Suggestion

rtx use python@latest
python --version
 >> Python 3.12.0
pip install yewtube
yt

This results in this error:

Traceback (most recent call last):
  File "/home/rafa/.local/share/rtx/installs/python/3.12.0/bin/yt", line 5, in <module>
    from mps_youtube import main
  File "/home/rafa/.local/share/rtx/installs/python/3.12.0/lib/python3.12/site-packages/mps_youtube/main.py", line 44, in <module>
    from . import g, c, commands, screen, history, init
  File "/home/rafa/.local/share/rtx/installs/python/3.12.0/lib/python3.12/site-packages/mps_youtube/commands/__init__.py", line 37, in <module>
    from . import download, search, album_search, spotify_playlist, misc, config, local_playlist
  File "/home/rafa/.local/share/rtx/installs/python/3.12.0/lib/python3.12/site-packages/mps_youtube/commands/download.py", line 13, in <module>
    from .search import yt_url, user_pls
  File "/home/rafa/.local/share/rtx/installs/python/3.12.0/lib/python3.12/site-packages/mps_youtube/commands/search.py", line 24, in <module>
    from .songlist import paginatesongs, plist
  File "/home/rafa/.local/share/rtx/installs/python/3.12.0/lib/python3.12/site-packages/mps_youtube/commands/songlist.py", line 78, in <module>
    @command(r'pl\s+%s' % PL, 'pl')
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rafa/.local/share/rtx/installs/python/3.12.0/lib/python3.12/site-packages/mps_youtube/commands/__init__.py", line 28, in command
    completer.add_cmd(command)
    ^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'add_cmd'

Your Environment

  • python installed via rtx

  • bash: mpsyt: command not found...

  • nobara linux

  • VLC version 3.0.19 Vetinari ()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant