-
Notifications
You must be signed in to change notification settings - Fork 490
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
Bluepy-helper not being built #158
Comments
Do you get any errors? Here it compiles just fine.. |
No, installing does not give any errors. But as I said bluepy-helper is not being build with the When you
You can see already that there is a
That is a setup script bug. |
Ah, good catch! Actually it seems to be fixed in git already: tpr@maksalaatikko|~/temp
) virtualenv .
Using base prefix '/usr'
New python executable in /home/tpr/temp/bin/python3
Also creating executable in /home/tpr/temp/bin/python
Installing setuptools, pip, wheel...done.
tpr@maksalaatikko|~/temp
) . bin/activate
(temp) tpr@maksalaatikko|~/temp
) pip install git+https://github.com/IanHarvey/bluepy.git
Collecting git+https://github.com/IanHarvey/bluepy.git
Cloning https://github.com/IanHarvey/bluepy.git to /tmp/pip-_mal6z3y-build
Installing collected packages: bluepy
Running setup.py install for bluepy ... done
Successfully installed bluepy-1.0.5
(temp) tpr@maksalaatikko|~/temp
) find .|grep bluepy-helper
./lib/python3.5/site-packages/bluepy/bluepy-helper.c
./lib/python3.5/site-packages/bluepy/bluepy-helper
(temp) tpr@maksalaatikko|~/temp
|
No, it is not fixed in in git. pip3 in Debian jessie behaves differently for a install from pypi and git url. For See PR #162 |
progress please? |
I am also seeing this on X64 arch under Ubuntu 16.04.2. For the 1.1.0 release the helper is not compiled. When downgrading to 1.0.5, same thing except the ARM binary for the helper was pre-packaged as described in #127. Note, going the non-pip route and compiling from source worked fine. |
Same problem. I had to compile by hand in order to make it works (bluepy.Helper was missing, on my debian, module installed with pip3, for python3.5) |
I'm having the same problem here on Debian jesse. I'm not a programmer so I'm looking for help with some details on how fix this. How do i compile bluepy-helper.c without breaking anything. |
Hi guys, You're going to have to give me some clues here. Please post a transcript of what you tried, and what the resulting messages were. If The helper itself can be built by going into the I really can't help if I don't know which stage is failing. It works for me... Cheers |
Ian, I got helper to build.
Still getting the same error.
I want to try a couple more things before I give you the rundown of what I have.
Right now I'm bouncing back and fourth between two raspberry pis and I think I'm causing myself more confusion.
Let me sort it out and I'll get you more to help me with.
Thanks for your response.
Bob
Get Outlook for Android
On Fri, Sep 1, 2017 at 12:37 PM -0400, "Ian Harvey" <[email protected]> wrote:
Hi guys,
You're going to have to give me some clues here. Please post a transcript of what you tried, and what the resulting messages were. If pip install or pip3 install methods don't work, can you try cloning the repo and doing python setup.py install.
The helper itself can be built by going into the bluepy/bluepy directory and just running make.
I really can't help if I don't know which stage is failing. It works for me...
Cheers
Ian
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It seems that pip builds a different setup.py target by default:
This does not work, the bluepy-helper is not getting installed. However, if you disable the wheel handling like so:
then the bluepy helper is getting built and installed. Note that setup.py gets passed different targets: in the non-working case it uses bdist_wheel, while in the working case "install" is used as the target. |
So I'm still struggling to reproduce this. What platform is this on, please? Thanks |
This is on debian unstable, the version is
Thanks for looking into this. |
Hi Ian !
Thanks again for your great work !
Well, i don't have my computer here, but i remind that it was a debian stretch up to date, with pip3 installed (i think that it was the official debian version, but maybe i did an update for a newer one, if needed by one of my python module).
I'm going to check this as soon as possible.
Cheers
…----- Mail original -----
So I'm still struggling to reproduce this. What platform is this on,
please?
And what's the output from pip3 --version ?
Thanks
Ian
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub , or mute the thread
.
|
So..
I did a fresh install of raspbian (debian stretch).
I have installed python3-pip (pip3 version 9.0.1)
install of bluepy (pip3 install bluepy)
Then, when i run my program (that uses bluepy), i had trouble to access the device (a TI CC2650)
So, i went in /usr/local/lib/python3.5/dist-packages/bluepy
i run make
some compilations are done
then, i restart my program : it works well.
Cheers,
Sylvain
…----- Mail original -----
So I'm still struggling to reproduce this. What platform is this on,
please?
And what's the output from pip3 --version ?
Thanks
Ian
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub , or mute the thread
.
|
As a temporary workaround, I've changed the installation instructions to use I'm not sure whether it's possible to build wheels which have multiple architectures (i.e. various ARMs and x86's) in them; the 'net seems rather quiet on the topic. |
Hi Ian, I've seen @bennuttall talk on the topic of piwheels and he says "wheels for packages implemented in C are architecture-specific". Hope that helps |
It seems bluepy is a platform-agnostic wheel (the Regarding piwheels, we built Python 3 wheels on a Raspberry Pi 3, which you can find here: https://www.piwheels.hostedpi.com/simple/bluepy/ Note that packages which require compilation get tagged with |
In the setup.py, a compile of the C module is run so I suspect that import distutils.util
distutils.util.get_platform() As Bluepy is built on BlueZ it should indicate Linux as a minimum. |
My current theory is that, because I'm not actually building a I'm guessing there's a magic config item I can override here. |
Ian, I am all set. I figured out how to properly run a program as root.
It works great. Now I can move on to the intended applications.
Thank you for the support. I've read several of your posts and learned so much.
Your dedication is commendable.
Thank you
Bob
Get Outlook for Android
From: [email protected]
Sent: Friday, September 1, 9:48 PM
Subject: Re: [IanHarvey/bluepy] Bluepy-helper not being built (#158)
To: IanHarvey/bluepy
Ian, I got helper to build.
Still getting the same error.
I want to try a couple more things before I give you the rundown of what I have.
Right now I'm bouncing back and fourth between two raspberry pis and I think I'm causing myself more confusion.
Let me sort it out and I'll get you more to help me with.
Thanks for your response.
Bob
Get Outlook for Android
On Fri, Sep 1, 2017 at 12:37 PM -0400, "Ian Harvey" <[email protected]> wrote:
Hi guys,
You're going to have to give me some clues here. Please post a transcript of what you tried, and what the resulting messages were. If pip install or pip3 install methods don't work, can you try cloning the repo and doing python setup.py install.
The helper itself can be built by going into the bluepy/bluepy directory and just running make.
I really can't help if I don't know which stage is failing. It works for me....
Cheers
Ian
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I've now made a 1.1.2 release, and build some 2.7 and 3.4 wheels for it on my Pi. It's possible I made earlier releases with an old version of Anyway, if anyone reading could confirm or deny that 1.1.2 installs for them with modern Thanks |
Interesting. What method did you use to upload arm wheels to pypi? It's also been picked up by piwheels: https://www.piwheels.hostedpi.com/simple/bluepy/ Note that the wheels are for Python 2.7 and 3.4 only, so this will not work on Python 3 in Raspbian Stretch (as it's Python 3.5), or other Python 3 versions. Are you going to upload a manylinux wheel too? |
I don't quite understand what cache this refers to - since I've cleared the local pip cache in both cases... (Maybe it tries to build a local wheel in the 1st case, and building a wheel works differently from installing?) But yeah, some improvement I'd say... |
@bennuttall - I uploaded with @simon-budig - hmm. It's possibly not picking up the wheel from PyPI because I built it for Python 3.4 ( This is all making a pure-Python rewrite look much more appealing... |
This is on x86_64 |
@IanHarvey but where did you upload it to? I believe PyPI doesn't allow uploading ARM wheels but warehouse (next-gen PyPI) does. See pypi/warehouse#2003 |
On my raspbian (stretch, latest version) apt install python3-pip libglib2.0-dev
|
Version 1.1.2 doesn't work for me yet:
As this is an x86_64 machine (a regular laptop with Bluetooth), something goes very wrong as it installs an ARM executable. |
OK. Let's try again. There's now a version 1.1.4 up on PyPI (https://pypi.python.org/pypi?:action=display&name=bluepy&version=1.1.4) which has a revised Please note, this is an Thanks |
Works on my Pi Zero W (aka the other flavour of ARM). On to figuring out notifications. |
piwheels isn't building at the moment, but when it kicks off again we'll pick this up and build for Pi (ARMv6 and ARMv7). |
Hello guys, I have been desperately trying to install python-eq3bt on onion omega 2+ which has openWRT system. This package has bluepy as its dependency. But i've been unsuccessful at my attempts to install bluepy. Upon research i found there is no 'make' on openWRT. And for that there is lengthy process. But I don't have that much of knowledge. So it would be very, very helpful, if someone could help me out in this. All i want is to have an interface with the EQ3 bluetooth devices. Any help would be highly appreciated. |
Here's an OpenWrt package: https://pb.nanl.de/show.php?id=5166&hash=52065413 |
piwheels now has the latest bluepy wheels for Armv6/v7 and for py34 (jessie) and py35 (stretch): https://www.piwheels.org/simple/bluepy/
|
Here I'm trying to install bluepy and having the same problem. Environment:
|
@lupa18 what hardware? |
Sorry, hardware is: rock64 |
Make is not called when using the PyPi package via
pip install bluepy
on raspian jessy.The text was updated successfully, but these errors were encountered: