mholgatem / GPIOnext

The next evolution of GPioneer! Create virtual gamepads with your GPIO pins!
MIT License
134 stars 37 forks source link

Gpio next syntax error raspberry pie 3 emulation station #83

Closed Devenhulk123 closed 6 months ago

Devenhulk123 commented 1 year ago

I wanted to use my raspberry gpio pins and I installed it using these scripts cd ~ git clone https://github.com/mholgatem/GPIOnext.git bash GPIOnext/install.sh After that that it gave me a invalid syntax I dont know what to do or what I put to set a input really. This is the invalid syntax it gives me 20230720_154401

Thanks Deven

merwok commented 1 year ago

Hello! To get help with a problem on the internet, you need to say

Devenhulk123 commented 1 year ago

Hello! To get help with a problem on the internet, you need to say

  • what command you run
  • what error message you see (preferably as text not screenshots)

Sorry Its my first time posting so I didn't really know what to put

mholgatem commented 1 year ago

The reason that you are getting that error is that you are most likely running an old version of python3. Use this command to find your version:

python3 --version

If your version is <3.6, upgrade it with: sudo apt install python3.9

Devenhulk123 commented 1 year ago

The reason that you are getting that error is that you are most likely running an old version of python3. Use this command to find your version:

python3 --version

If your version is <3.6, upgrade it with: sudo apt install python3.9 I just tried and the same error popped up

merwok commented 1 year ago

That’s probably because the script uses python3, and on your system that corresponds to Python 3.6, even if 3.9 is installed. Can you update your operating system to a version that uses a current Python version?

Devenhulk123 commented 1 year ago

That’s probably because the script uses python3, and on your system that corresponds to Python 3.6, even if 3.9 is installed. Can you update your operating system to a version that uses a current Python version?

I used sudo apt-get update followed by sudo apt-get upgrade and everything thing is updated already what do you mean by upgrade the operating system?

merwok commented 1 year ago

Answering that would take some time, and be out of scope for this place!

But can you show the output of these commands:

cat /etc/os-release
apt-cache show python3 | head -n3
Devenhulk123 commented 1 year ago

Answering that would take some time, and be out of scope for this place!

But can you show the output of these commands:

cat /etc/os-release
apt-cache show python3 | head -n3

Sorry for the late reply I went on a trip with my parents and we didn't have any signal if your still willing to help these are the stuff that popped up

Devenhulk123 commented 1 year ago

Answering that would take some time, and be out of scope for this place! But can you show the output of these commands:

cat /etc/os-release
apt-cache show python3 | head -n3

Sorry for the late reply I went on a trip with my parents and we didn't have any signal if your still willing to help these are the stuff that popped up

![Uploading 20230724_091729.jpg…]()

merwok commented 1 year ago

Your link goes to this same page. Can you copy-paste the output from the two commands?

Devenhulk123 commented 1 year ago

Your link goes to this same page. Can you copy-paste the output from the two commands?

pi@retropie:~$ cat /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)'

NAME="Raspbian GNU/Linux"

VERSION ID="9"

VERSION="9 (stretch)"

ID=raspbian

ID LIKE-debian

HOME URL="http://www.raspbian.org/"

SUPPORT URL="http://www.raspbian.org/RaspbianForums" BUG REPORT URL="http://www.raspbian.org/RaspbianBugs"

pi@retropie:~$ apt-cache show python3 | head -n3

Package: python3

Source: python3-defaults

Version: 3.5.3-1

pi@retropie:~ $

Devenhulk123 commented 1 year ago

Your link goes to this same page. Can you copy-paste the output from the two commands?

Sorry that was my bad

merwok commented 1 year ago

We learn two things:

Raspberry Pi foundation does not recommend updating the system in place, but making a fresh install on a new SD card.

Devenhulk123 commented 1 year ago

We learn two things:

  • you are running raspberry pi OS 9, but the current version is 10
  • the python version used by the python3 command is 3.5, which is too old to support this script

Raspberry Pi foundation does not recommend updating the system in place, but making a fresh install on a new SD card.

Is there any way I could try updating it without starting new SD card before I wipe it clean

mholgatem commented 1 year ago

Yes, you can. But in my experience, you tend to get better performance from a fresh install. If you are determined to just upgrade in place, here's a guide

Devenhulk123 commented 1 year ago

Yes, you can. But in my experience, you tend to get better performance from a fresh install. If you are determined to just upgrade in place, here's a guide

Okay thank you I'll try it out