Git Product home page Git Product logo

Comments (12)

joan2937 avatar joan2937 commented on June 24, 2024

What does your pi = line contain?

from pigpio.

harshangshah avatar harshangshah commented on June 24, 2024

pi=pigpio.pi()

from pigpio.

joan2937 avatar joan2937 commented on June 24, 2024

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.

harshangshah avatar harshangshah commented on June 24, 2024

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.

harshangshah avatar harshangshah commented on June 24, 2024

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.

joan2937 avatar joan2937 commented on June 24, 2024

Try adding auto lo.

The loopback network interface

auto lo
iface lo inet loopback

from pigpio.

harshangshah avatar harshangshah commented on June 24, 2024

wow, it works now :-) Thanks joan

from pigpio.

joan2937 avatar joan2937 commented on June 24, 2024

Okay.

from pigpio.

harshangshah avatar harshangshah commented on June 24, 2024

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.

joan2937 avatar joan2937 commented on June 24, 2024

You need to give all relevant information.

from pigpio.

erg-samowzbudnik avatar erg-samowzbudnik commented on June 24, 2024

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.

joan2937 avatar joan2937 commented on June 24, 2024

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)

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.