Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 640879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:00:07+00:00 2026-05-13T21:00:07+00:00

I am using dbus to get the current playing song from Songbird Media Player

  • 0

I am using dbus to get the current playing song from Songbird Media Player & Metadata is also taken from dbus object.

The line where error comes is:-

audio_file = MP3(current_playing_track['location'], ID3=ID3)

The error is:-

 Traceback (most recent call last):
  File "./last.py", line 42, in <module>
    audio_file = MP3(current_playing_track['location'], ID3=ID3)
  File "/usr/lib/python2.6/dist-packages/mutagen/__init__.py", line 73, in __init__
    self.load(filename, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/mutagen/id3.py", line 1949, in load
    try: self.tags = ID3(filename, **kwargs)
  File "/usr/lib/python2.6/dist-packages/mutagen/id3.py", line 74, in __init__
    super(ID3, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/mutagen/_util.py", line 103, in __init__
    super(DictProxy, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/mutagen/__init__.py", line 37, in __init__
    self.load(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/mutagen/id3.py", line 109, in load
    self.__fileobj = file(filename, 'rb')
IOError: [Errno 2] No such file or directory: dbus.String(u'file:///media/Misc/Songbird%20Library/Puddle%20Of%20Mudd/Puddle%20Of%20Mudd%20-%20Unknown%20Album%20-%20Spin%20You%20Around.mp3', variant_level=1)

How do I convert file location to a normal string?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:00:08+00:00Added an answer on May 13, 2026 at 9:00 pm

    Just do str( your_dbus_string )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the Qt DBus library, I'm having a hard time registering an object implementing
I'm using accessing thorough DBUS from some process. The trouble is that it runs
I am using DBus in a project. I understand from DBus specification that for
I'm trying to write a notification script using python-dbus. How can I get properties
I have some trouble with dbus-send when using a{sv} Calling a method with in_signature='a{ss}'
I'm getting error when I try setting status to empathy with dbus using python,
I'm using python-dbus and cherrypy to monitor USB devices and provide a REST service
there's a freedesktop.org notification system using DBUS. Looks simple enough, but I just can't
I'm using dbus to communicate two programs. One creates a large image and it
It's the first time I'm using DBus so please bear with me. This is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.