OSError: [Errno 2] No such file or directory ( AFTER reboot of Linux :( )
Hello,
first, thanks for this uinput package. It works fine. Unfortunately, it doesn't anymore once I reboot the linux system. :(
Before the reboot, I have installed the package and tried it, and my python script loaded it and executed my code.
After the reboot when I install the package again, and use the command-line to execute my script, it works again...until the next reboot.
This is what I did, step-by-step:
1. in command-line, I typed the following (according to a tutorial):
sudo modprobe uinput
git clone https:/
cd python-uinput
sudo python setup.py install --prefix=/usr/local
2. Received these for git clone:
Cloning into 'python-uinput'...
remote: Reusing existing pack: 993, done.
remote: Total 993 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (993/993), 235.38 KiB | 138 KiB/s, done.
Resolving deltas: 100% (422/422), done.
Aaaaaaaand this for setup-py install:
running install
running build
running build_py
creating build
creating build/lib.
creating build/lib.
copying src/__init__.py -> build/lib.
copying src/ev.py -> build/lib.
running build_ext
building '_libsuinput' extension
creating build/temp.
creating build/temp.
creating build/temp.
gcc -pthread -fno-strict-
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-
running install_lib
copying build/lib.
copying build/lib.
copying build/lib.
byte-compiling /usr/local/
byte-compiling /usr/local/
running install_egg_info
Removing /usr/local/
Writing /usr/local/
3. Jumped to /home/pi/pinball/ and typed "sudo python wizard.py" and it worked.
4. Typen "sudo nano /etc/rc.local" and edited the file, by adding BEFORE the "exit 0" :
cd /home/pi/pinball/
sudo python ./wizard.py >/tmp/script.out 2>&1
5. "sudo reboot"
6. This is what /tmp/script.out contains:
Traceback (most recent call last):
File "./wizard.py", line 13, in <module>
device = uinput.
File "/usr/local/
self.
File "/usr/local/
raise OSError(code, os.strerror(code))
OSError: [Errno 2] No such file or directory
Even if I type "sudo python wizard.py" the same lines show up on screen.
I have no clue what I should do now.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- DougyDoug
- Solved:
- Last query:
- Last reply: