SwagLyrics-For-Spotify icon indicating copy to clipboard operation
SwagLyrics-For-Spotify copied to clipboard

[BUG] No module named 'dbus'

Open iandark opened this issue 3 years ago • 2 comments

When i call swaglyrics CLI or web i got error message

~$ swaglyrics -c 
Traceback (most recent call last):
  File "/home/linuxbrew/.linuxbrew/bin/swaglyrics", line 33, in <module>
    sys.exit(load_entry_point('swaglyrics', 'console_scripts', 'swaglyrics')())
  File "/home/USERIAM/Dev/SwagLyrics-For-Spotify/swaglyrics/__main__.py", line 121, in main
    show_cli(make_issue)
  File "/home/USERIAM/Dev/SwagLyrics-For-Spotify/swaglyrics/__main__.py", line 68, in show_cli
    song, artist = spotify.current()  # get currently playing song, artist
  File "/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.9/site-packages/SwSpotify/spotify.py", line 136, in current
    return get_info_linux()
  File "/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.9/site-packages/SwSpotify/spotify.py", line 55, in get_info_linux
    import dbus
ModuleNotFoundError: No module named 'dbus'

I alreay installed python-dbus sudo apt-get install python-dbus sudo apt install python3-dbus

iandark avatar Mar 06 '21 11:03 iandark

can you give me some info about what os you're on? That might help pinpoint which dbus you need. Also see if pip install dbus-python does the trick

aadibajpai avatar Mar 06 '21 23:03 aadibajpai

can you give me some info about what os you're on? That might help pinpoint which dbus you need. Also see if pip install dbus-python does the trick

I'm using Ubuntu 20.04.

~$ pip install dbus-python                
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: dbus-python in /usr/lib/python3/dist-packages (1.2.16)

iandark avatar Mar 07 '21 00:03 iandark