Git Product home page Git Product logo

Comments (6)

benallard avatar benallard commented on May 26, 2024 1

Na, you will not be able to put the gi/gobject stuff in the install_require array, as those are not available via Pypi.

I'm now convinced the best solution is to mention the mandatory additional installation pretty early, like on top of the README in a Requirement section.

from python-bluezero.

benallard avatar benallard commented on May 26, 2024

Looks like the correct dependency name is dbus-python.

from python-bluezero.

ukBaz avatar ukBaz commented on May 26, 2024

Hello @benallard,
Can you tell me some more about this?
Up to now I've been using the instructions at:
https://github.com/ukBaz/python-bluezero/blob/master/docs/install_bluez.rst
And the commands

sudo apt-get install python-dbus
sudo apt-get install python3-dbus

Which has caused me great pain on Travis-CI as apt-get will only work on certain versions of Python on Travis.
Is dbus-python a version that will install cleanly using pip? Does that mean I can use it on Travis-CI?

If this is true then you could have solved a big cause of pain for this project

from python-bluezero.

benallard avatar benallard commented on May 26, 2024

Unfortunately, not, this is not the solution to all issues. The dbus-python Pypi project would only (try to) install/compile the dbus module (provided the right development libraries are installed as well). Even with this installed the gi/gobject stuff is still missing ... Installing python3-dbus looks indeed like the easiest way to get all running.

Worth a mention in the README maybe ?

from python-bluezero.

WayneKeenan avatar WayneKeenan commented on May 26, 2024

Maybe just specifying an array of dependancies using the 'install_requires' key in setup.py will get you there? (Sorry didn't twig sooner)

For example here's one of mine that uses it: https://github.com/WayneKeenan/python-vrzero/blob/master/setup.py

There is a caveat I've found... modules installed this way remain in a zipped egg under Python's 'dist' folder.
Usually not a problem, but it broke pi3d as that module tries to 'file open' resources in the module tree, which it expected to be expanded/unzipped fully.

from python-bluezero.

ukBaz avatar ukBaz commented on May 26, 2024

These modules normally come installed on the core systems that this library is targeted at. My concern with putting things in the readme that is unnecessary for the majority of uses is that it becomes overly wordy and confusing.

It has been sat here for 4 years without anyone adding to it. As a result, I'm going to close this.

from python-bluezero.

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.