Comments (12)
What does your pi = line contain?
from pigpio.
pi=pigpio.pi()
from pigpio.
After the pi=pigpio.pi() line add the following
print(pi.connected)
If it's False you have not connected to the pigpio daemon. If you are running the script on the local Pi the most likely reason is you don't have a loopback device defined in /etc/network/interfaces.
from pigpio.
I read in other closed discussion about the loopback, could you please explain me what it should be and what it should not be? I could not understand it well.
from pigpio.
This is how my /etc/network/interfaces look like:
auto wlan0
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
from pigpio.
Try adding auto lo.
The loopback network interface
auto lo
iface lo inet loopback
from pigpio.
wow, it works now :-) Thanks joan
from pigpio.
Okay.
from pigpio.
Hi Joan,
I am getting an error:
Nonetype object has no attribute send
Could you please help me debug it?
Thanks in advance
from pigpio.
You need to give all relevant information.
from pigpio.
Hi. I'm having similar issue on arm64 not sure it's relevant.
installed pigpio, it fails to start:
/etc/init.d/pigpiod start
/usr/bin/pigpiod: error while loading shared libraries: ligpigpio.so: cannot open shared object file: No such file or directory
in python3 interpreter "import pigpio" works but then "pi = pigpio.pi() fails with Can't connect to localhost(8888)
I have added auto lo to /etc/network/interfaces
any tips would be great,
cheers,
erg
from pigpio.
I can't help with 64-bit issues as it's all a mystery to me. However I have just merged #284 which might possibly make a difference.
from pigpio.
Related Issues (20)
- more detailed documentation required about gpioWaveCreatePad HOT 5
- serOpen() serFlags? HOT 1
- Python DHT11 Example: DHT11 Class __iter__ does not work.
- How to access MCP23008 expander GPIOs?
- CM4 HDMI Audio + pigpio conflict? HOT 9
- general on pigpiod daemon HOT 4
- pigpio callback issue with threads
- Can create SPI wave in nano seconds resolution? HOT 10
- Initialization issue on debian 12 bookworm HOT 2
- `git pull` or `git clone` actions return 'https://github.com/joan2937/pigpio/': SSL certificate problem: certificate is not yet valid HOT 1
- Possible issue with wave function on PI 4 8GB bullseye 64bit HOT 39
- pigpio probably won't work on Pi5 (or later Pi's) HOT 4
- Allow get/set of slew rate and hyst bits for gpio HOT 3
- Uninstalling pigpiod attempted to remove /opt
- pigpio will not run on a Pi 5 HOT 16
- Failed on Rpi2 and AlpineLinux HOT 2
- Unclean PWM at certain frequencies. HOT 1
- i2c (am2320) works with pigpio and not pigpiod - could definition of i2c_open() be wrong?
- C pigpio timer inaccuracy on raspbery pi 4 with raspian
- Pigpio BB Serial Read CPU Resource vs. RPI version HOT 4
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 pigpio.