Giter VIP home page Giter VIP logo

Comments (5)

buzz avatar buzz commented on May 28, 2024

Hey, on travels... can look into this when I'm back in February... Sorry.
But should be fairly easy to get this running. Build the Valodim/python-pulseaudio yourself. It's just a thin ctypes wrapper lib. Rerun the script until no import errors remain. You can do it!

Happy for feedback :)

from volctl.

buzz avatar buzz commented on May 28, 2024

Fixed in 5fa2e4f, 05e87d5 :)

from volctl.

stubb avatar stubb commented on May 28, 2024

Thanks for clarifying it. Iam trying to use this on arch linux but the python pulseaudio lib throws an error:

Traceback (most recent call last):
  File "volctl.py", line 6, in <module>
    from pulseaudio.lib_pulseaudio import PA_VOLUME_MUTED, PA_VOLUME_NORM, \
  File "/usr/lib/python2.7/site-packages/pulseaudio/__init__.py", line 29, in <module>
    class PulseAudio(gobject.GObject):
  File "/usr/lib/python2.7/site-packages/gi/__init__.py", line 62, in __getattr__
    raise AttributeError(_static_binding_error)
AttributeError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183

Maybe iam going to create a PR for python pulseaudio...

from volctl.

buzz avatar buzz commented on May 28, 2024

Looks like you have sbillaudelle/python-pulseaudio installed (through a package manager?). Valodim/python-pulseaudio is a fork of the former one. They occupy the same python module name space. You might have a name clash. Try to uninstall/remove sbillaudelle/python-pulseaudio.

from volctl.

stubb avatar stubb commented on May 28, 2024

Yep I had it installed via the package management, but already tried the newer version from Valodim with no luck. Sadly havnt much time to investigate right now.

from volctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.