Comments (8)
I had the same error, with a bit more detail:
b"make: Entering directory '/tmp/pip-install-awh6wojw/bluepy/bluepy'\ntar xzf bluez-src.tgz\ntouch ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c\nPackage glib-2.0 was not found in the pkg-config search path.\nPerhaps you should add the directory containing
glib-2.0.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'glib-2.0' found\nPackage glib-2.0 was not found in the pkg-config search path.\nPerhaps you should add the directory containing
glib-2.0.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'glib-2.0' found\ncc -L. -g -Wall -Os -DHAVE_CONFIG_H -I./bluez-5.47/attrib -I./bluez-5.47 -I./bluez-5.47/lib -I./bluez-5.47/src -I./bluez-5.47/gdbus -I./bluez-5.47/btio -I./bluez-5.47/sys -o bluepy-helper bluepy-helper.c ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c \nbluepy-helper.c:33:10: fatal error: glib.h: No such file or directory\n #include <glib.h>\n ^~~~~~~~\ncompilation terminated.\n./bluez-5.47/attrib/att.c:33:10: fatal error: glib.h: No such file or directory\n #include <glib.h>\n ^~~~~~~~\ncompilation terminated.\n./bluez-5.47/attrib/gatt.c:32:10: fatal error: glib.h: No such file or directory\n #include <glib.h>\n ^~~~~~~~\ncompilation terminated.\n./bluez-5.47/attrib/gattrib.c:34:10: fatal error: glib.h: No such file or directory\n #include <glib.h>\n ^~~~~~~~\ncompilation terminated.\n./bluez-5.47/attrib/utils.c:30:10: fatal error: glib.h: No such file or directory\n #include <glib.h>\n ^~~~~~~~\ncompilation terminated.\n./bluez-5.47/btio/btio.c:37:10: fatal error: glib.h: No such file or directory\n #include <glib.h>\n ^~~~~~~~\ncompilation terminated.\n./bluez-5.47/src/log.c:38:10: fatal error: glib.h: No such file or directory\n #include <glib.h>\n ^~~~~~~~\ncompilation terminated.\n./bluez-5.47/src/shared/io-glib.c:30:10: fatal error: glib.h: No such file or directory\n #include <glib.h>\n ^~~~~~~~\ncompilation terminated.\n./bluez-5.47/src/shared/timeout-glib.c:22:10: fatal error: glib.h: No such file or directory\n #include <glib.h>\n ^~~~~~~~\ncompilation terminated.\nmake: *** [Makefile:30: bluepy-helper] Error 1\nmake: Leaving directory '/tmp/pip-install-awh6wojw/bluepy/bluepy'\n"
Which translates to
fatal error: glib.h: No such file or directory
Which let me to here
Where they advise to try:
sudo apt-get install libglib2.0-dev
Which solved the problem on my raspberry Pi
from miflora-mqtt-daemon.
Hey! Seems like this is an issue with bluepy. Maybe linked to the latest raspbian or the 64bit version.
Does sudo pip3 install bluepy
succeed?
from miflora-mqtt-daemon.
cool, superschnell...
No, even this doesn't work. As an extract:
pi@MyHome:~ $ sudo pip3 install bluepy Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting bluepy Using cached bluepy-1.3.0.tar.gz (217 kB) Building wheels for collected packages: bluepy Building wheel for bluepy (setup.py) ... error
and
Running setup.py clean for bluepy Failed to build bluepy Installing collected packages: bluepy Running setup.py install for bluepy ... error
npm v6.14.16
node 14.19.1
Do you need a complete log?
from miflora-mqtt-daemon.
I am using rapsberian64 and in order to make it run I had to run this:
$ sudo apt-get install python3-pip libglib2.0-dev
$ sudo pip3 install bluepy
from miflora-mqtt-daemon.
Hey guys,
in summary, what should be added to the README? PR welcome!!
from miflora-mqtt-daemon.
As I faced the same issue, I suggest to added the following to the README, as by now this is not yet included:
In case you are running the service on an Raspberry Pi4 64 bit version, the following package is required too
sudo apt install libglib2.0-dev
Best Martin
from miflora-mqtt-daemon.
PR #170
from miflora-mqtt-daemon.
Thanks!
from miflora-mqtt-daemon.
Related Issues (20)
- Its possible to change MAC address in MyFlora sensor? HOT 2
- Bluepy error after apt update && upgrade HOT 1
- Daemon connects and collects data but does not publish to openhab HOT 3
- `$ sudo hcitool lescan` - Input/Output error HOT 2
- Anyone with problems? ->Miflora Firmware 3.3.5 HOT 4
- Failed to retrieve data from Mi Flora sensor but `bluetoothctl` detects all data HOT 2
- Light measurement disturbed by flashing LED HOT 1
- Add config option for "expire_after" HOT 2
- running as service in python3.10 HOT 3
- Api changes in miflora break miflora-mqtt-daemon HOT 4
- Brightness value wrong HOT 6
- MQTT Push - Topic not case sensitive HOT 2
- Last Message timestamp HOT 2
- Project dependencies may have API risk issues HOT 1
- Running on ESP32 HOT 1
- Change unit of light sensor from "lux" to "lx" HOT 1
- Support for Flower Care Max sensor?
- one sensor stopped answering, but works in the app HOT 2
- Error: The MAC address "..." seems to be in the wrong format. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miflora-mqtt-daemon.