mholgatem / GPIOnext

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

EvDev not Found #57

Closed aliyahqayum closed 2 years ago

aliyahqayum commented 2 years ago

Module Not Found Error

After trying to configure GPIO pins using GPIO next, we are getting an error that the EvDev module is not found. What can we run to ensure all modules have been downloaded?

D4AFC02C-6780-43B7-9FF9-AF85939CF86F

merwok commented 2 years ago

I think instructions are here: https://github.com/mholgatem/GPIOnext#how-to-install There is a script that does everything (or can be read to do equivalent steps).

aliyahqayum commented 2 years ago

I think instructions are here: https://github.com/mholgatem/GPIOnext#how-to-install There is a script that does everything (or can be read to do equivalent steps).

Right but we are getting this issue when cloning the repository. What is the script that does everything?

merwok commented 2 years ago

I’m not a maintainer here, just a bystander trying to be helpful. The instructions are right at the end of the link I shared.

mholgatem commented 2 years ago

By the looks of it, this is after you've already cloned the repository and are now trying to run gpionext. It looks like either evdev didn't install correctly or it didn't get added to the modules list.

First, check to see if evdev is installed sudo pip3 install evdev

if that is installed, you next want to check to make sure the module is getting loaded. sudo nano /etc/modules if evdev is not listed, add it on it's own line at the end of the file. save and exit.

reboot and hopefully you are up an running. If not, come back with any errors that you are getting. I probably won't check back until Monday at the earliest though.

aliyahqayum commented 2 years ago

When running

sudo pip3 install evdev

We found that we didn't have python installed. We attempted to install it using:

sudo apt install python3-pip

But the retropi doesn't have enough space to download all the packages. We tried installing python 2.7 instead, but that didn't work either.

merwok commented 2 years ago

Does it have to be installed system-wide? If not, you could use standard capabilities of Python: python3 -m venv .venv then .venv/bin/pip install evdev

aliyahqayum commented 2 years ago

Still taking up too much space :( We need more than 2kb but we only have 16gb

mholgatem commented 2 years ago

??? 2kb is less than 16gb.

aliyahqayum commented 2 years ago

Half way through installing I get a message asking if the additional packages and modules can continue installing (which takes up the rest of the 2kb). We answer yes so we don’t run into any other issues caused by missing packages and / or modules. This results in the issue we are facing with the lack of storage.