I can not get sunfounder-controller.git to run, error invalid command 'installcd'

Hi All,

I’m trying to get the controller working for the pidog. When I follow the instructions, and enter

sudo python3 setup.py installcd

I get the error error: invalid command ‘installcd’

I tried upgrading python 3 and this did not help, still get the same error. I also tried to clone the module sunfounder-controller using the following command

pi@raspberrypi:~ $ git clone -b v2.0 GitHub - sunfounder/sunfounder-controller

and get the following error
fatal: destination path ‘sunfounder-controller’ already exists and is not an empty directory.

I’m not sure what to do next to get the original setup.py installcd working.

Please let me know a path forward ….

The first error message is correct. There is no such command as

 installcd

You appear to have merged 2 lines of commands together.

I’m not sure which stage you are upto? But the 2 commands should be

sudo python3 setup.py install
cd

Secondly. You appear to have successfully cloned the controller repository into your local sunfounder-controller directory, so it is not now allowing you to overwrite it.

So, you either need to delete the sunfounder-controller directory and it’s contents and then reclone the repository, or if it’s OK, just continue with it’s installation.

IIt’s often quicker to just flash an sdcard, and start again.

“SPF650” is correct. Your command sudo python3 setup.py installcd was wrong; the correct one is sudo python3 setup.py install.

The “fatal” error about the ‘sunfounder-controller’ directory means you’ve already cloned the code successfully. No need to do it again.

To finish, just run:

cd ~/sunfounder-controller
sudo python3 setup.py install