# Picrawler - termios.error: (25, 'Inappropriate ioctl for device')

**URL:** <https://forum.sunfounder.com/t/picrawler-termios-error-25-inappropriate-ioctl-for-device/4751>\
**Category:** General\
**Created:** [June 4, 2026, 7:51pm UTC](https://forum.sunfounder.com/t/picrawler-termios-error-25-inappropriate-ioctl-for-device/4751 "2026-06-04T19:51:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![levstto1](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@levstto1](https://forum.sunfounder.com/u/levstto1)\
**Post date:** [June 4, 2026, 7:51pm UTC](https://forum.sunfounder.com/t/picrawler-termios-error-25-inappropriate-ioctl-for-device/4751/1 "2026-06-04T19:51:37Z")

</div>

When I ran the program “2.keyboard\_control.py” I get "termios.error: (25, ‘Inappropiate ioctl for device’}  
How do I fix this problem?  
Thanks

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [June 5, 2026, 8:05am UTC](https://forum.sunfounder.com/t/picrawler-termios-error-25-inappropriate-ioctl-for-device/4751/2 "2026-06-05T08:05:32Z")

</div>

Are you running the script with Thonny? If so, please try using Geany (also pre‑installed on Raspberry Pi OS) or run the script from the terminal with the python command instead.

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [June 5, 2026, 8:06am UTC](https://forum.sunfounder.com/t/picrawler-termios-error-25-inappropriate-ioctl-for-device/4751/3 "2026-06-05T08:06:16Z")

</div>

You can try downloading the Debian Bullseye with desktop environment.
