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

[BUG] No module named 'dbus' #2860

Open
iandark opened this issue Mar 6, 2021 · 2 comments
Open

[BUG] No module named 'dbus' #2860

iandark opened this issue Mar 6, 2021 · 2 comments

Comments

@iandark
Copy link

iandark commented Mar 6, 2021

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

@aadibajpai
Copy link
Member

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

@iandark
Copy link
Author

iandark commented Mar 7, 2021

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)

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

2 participants