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

  • Home
  • SEARCH
  • 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 8527633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:36:41+00:00 2026-06-11T08:36:41+00:00

I just started to use Python so the following might be a really REALLY

  • 0

I just started to use Python so the following might be a really REALLY dumb question but I searched the web for a long time and didn’t find anything.

I’m trying to use the XMMS2 client from a Django View. Here is what I have in my views.py:

import xmmsclient
import os
import sys

def list(request):
    xmms = xmmsclient.XMMS("tutorial1")
    xmms.connect(os.getenv("XMMS_PATH"))
    result = xmms.playlist_list_entries()
    result.wait()
    ...

And here is the error I get:

AttributeError at /xmms2/list/
'module' object has no attribute 'XMMS'

And the line in question is this:

 xmms = xmmsclient.XMMS("tutorial1") 

The view works fine if I remove all the code and replace it with (for example):

return HttpResponse("list")

I first thought there was a problem with the xmmsclient library but it works fine when I run this xmms2-tutorial example

So I guess there is some sort of incompatibility between Django and xmmsclient but I really don’t have a clue.

I’m running Ubuntu 12.04, Python 2.7.3, Django 1.4.1 and XMMS2 0.8

Any help will be really appreciated!

  • 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-06-11T08:36:43+00:00Added an answer on June 11, 2026 at 8:36 am

    The problem was a name conflict. My Django app name was “xmmsclient”.

    So when I did

    xmmsclient.XMMS("tut1")
    

    I was referring to my app module, not the one from the XMMS2 client library.

    Thanks a lot to Erik Massop from the xmms2-devel list!

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

Sidebar

Related Questions

I've been using Python for a long time and I've just started to toy
I have just started learning python/matplotlib/basemap and could really use some help. How do
I've just started programming, therefore I'm kinda noob. I'm trying to use python to
I am just starting to use a web framework. I have decided I really
I've just started using Eclipse for Python development since we can make use of
I've just started to learn the long-heard python language. I've been working with C
Please forgive my simple question. I have just started to use Matplotlib and I
I've just started programming in PyQt and I'm following Rapid GUI programming in Python
I just started to learn Django and Python. I use the online book from
I just started to use the object oriented programming in Python. I wander if

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.