PIdog installation software : setup.py install

See picture with warnings en errors. Has to do with installation PIdog
“ sudo python3 setup.py install “ I use a new Raspberrypi 4b.
What did I wrong or can I skip it?
Regards Hans Reijner

Failed to install robot hat first maybe?

cd ~/
git clone -b v2.0 GitHub - sunfounder/robot-hat: Robot Hat python library
cd robot-hat
sudo python3 setup.py install

1 Like

The “cd robot-hat in stead of cd pidog was the solution.
Thanks Hans Reijner

1 Like

You are most welcome, glad it worked out. Have fun!

Dear,
Still a little problem to search for the “ sunfounder-controller.git “ , please the pictures
Could you please help me another time. I like to use the controller app since everything worked fine.

Perhaps another directory. I looked at the SunFounder · GitHub (i’m a member), but no such file…….

Regards Hans Reijner

It’s here on the installation page…
https://docs.sunfounder.com/projects/pidog/en/latest/python/py_12_app_control.html

copied below

cd ~
git clone

\https://github.com/sunfounder/sunfounder-controller.git
cd ~/sunfounder-controller
sudo python3 setup.py install

Yes you’re right. I already found that. But the result is the same as told you before. See attachment in former reply. Perhaps I still do something wrong. But sunfounder-controller is not found. Please help me out. The PIDog does everything perfect in “fun” mode . Still waiting for the app. I really appreciate your support and help
Regards Hans Reijner

Nope, I did check your former reply. According to your screenshot, you have typed it incorrectly

Please check… You have typed git clone

https://github.com/sunfounder-controller.git

Not git clone

You have omitted the middle sunfounder subdirectory

Thanks. Easy to install. Sorry for disturbing,
Regards Hans


Dear,

Hopefully my last cry for help. See attachment. I tried after successfully loaded the sunfounder-controller + setup, to start “ cd ~/pidog/examples - sudo python3 12_app_control.py.
The not expected results in the attachment.

Did I do again something stupid?
Regards Hans

I am very sorry but I am currently 75% through a very nice bottle of Malbec.

My best quick bet is that you simply need to power off and on again, and make a clean relaunch. It looks like you already had a pidog initialize in progress.

I’ll try to analyse your logs in the morning. Sunfounder may give you a speedier answer than I as this one needs a bit more thought

1 Like

Your suggestion power off/on I already did. Also disconnect the battery. All other fun examples did work anymore with the same gooi busy.
Enjoy your fine wine and take another glass​:joy::wine_glass::wine_glass::wine_glass:
I m not in a hurry.
Regards Hans

It may just be that the GPIO is not turned off, causing a pin conflict.
Try to find and close the relevant software, or restart.
You can try shutting down all Python programs using the command:
sudo killall python3 -9.

Something else appears to be using your gpio. If you’ve already turned it off and on again, disconnected battery, then it cannot be an old instance of e.g podog still running. You said this was a new install? So I suspect youve not added any autostart functions such as systemd? But maybe you have?

This doesn’t really add up, and could take some time to debug, via a forum.

I’d suggest just reflashing SD card and start again, with correct Sunfounder scripts run from the off. It will probably be much quicker. As you said this was a new install, then you won’t lose any of your own work.

One final comment. Your earlier typographical errors suggest that you may be writing the install commands in manually, which can be error prone and easy to miss a step Can you cut and paste them directly from the website?

Thanks, you’re great. I will try all your suggestions and if not I will re-install all the software, because it worked fine. I own you a bottle of fine wine. I live in the Netherlands. I saw you was early at work (4 o’clock).
Regards Hans

SPF650 is correct. :clap:

Hello,
So far so good. Still the app connection. See attachment. It connects en disconnects immediately due to “ no close frame received or sent”. Do you have an idea to solve this last issue/problem. It seems something to do with the websocket??

Regards Hans

I don’t see an attachment

Anyway it usually means that the TCP connection was lost somehow. Therefore, the WebSocket was closed without receiving/sending any close frame.

I.e a dodgy network connection

Excuse me.I]ll attached the attachment. I already put a wireless usb adapter. It goes better but not super. The left joystick is not reacting. The right is perfect. Pidog reacts on voice command, but also not super. It will take some more tests I think . Thanks for all your help sofar. I studied the 12_app_control.py. Give me more info. We’ll keep in touch
Regards Hans

Well, it looks like your robot is working now! Just seems like networking issues remaining.