简体   繁体   English

Raspberry Pi Pygame问题

[英]Raspberry pi Pygame issues

I have a Kedei V6.3 touchscreen for a raspberry pi and I'm using raspbian 8 Jessie and a raspberry pi 1B. 我有一个用于树莓派的Kedei V6.3触摸屏,我正在使用树莓派8 Jessie和树莓派1B。 My touchscreen is running and I'm trying to install a UI from gitHub: https://github.com/garthvh/pitftmenu i have installed it, but when i try to run it it gives me an error: 我的触摸屏正在运行,我正在尝试从gitHub安装UI: https : //github.com/garthvh/pitftmenu我已经安装了它,但是当我尝试运行它时,它给了我一个错误:

Traceback (most recent call last):    
  File "/home/pi/Desktop/pitftmenu/menu_kali-1.py", line 11, in <module>
    pygame.display.init()
pygame.error: Unable to open mouse

I tried to run it regularly and as root.i have downloaded my OS from here: http://kedei.net/raspberry/raspberry.html and the software works, but if i try sudo apt-get upgrade, the touchscreen stops working, so i cannot update it and i would really like to run that UI 我尝试定期运行它,并以root用户身份运行。我已从此处下载了我的操作系统: http ://kedei.net/raspberry/raspberry.html,该软件正常运行,但是如果我尝试sudo apt-get upgrade,则触摸屏将停止工作,所以我无法更新它,我真的很想运行该用户界面

Thanks for the suggestions, I've found the answer to the problem and it's pretty simple, all i had to do is to run it in raspberry pi Desktop. 感谢您的建议,我找到了问题的答案,这很简单,我要做的就是在raspberry pi Desktop中运行它。 I was trying to run it through SSH and was hoping that it would show up, but it turns out, you cannot run it in ssh. 我试图通过SSH运行它,希望它能显示出来,但是事实证明,您不能在ssh中运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM