blbltheworm / yarpie

YARPie - yet another raspberry pi emulator
GNU General Public License v3.0
7 stars 1 forks source link

Yarpie GUI - no respons - after run the test example the GUI and click on it #5

Open duden-99 opened 4 years ago

duden-99 commented 4 years ago

Hi, Yarpie seems to be a great Simulator – I was just looking for something like it to start learning programming my Pi with Python even when my HW is not available. After installing Yarpi unfortunately I discovered a problem with Win10 64. The GUI startet successfully but when clicking on it the GUI window just freezes (no response = Keine Rückmeldung). Is there any idea what the root cause could be or has anybody solved this problem? The GUI just don't respond anymore after run the test project from Spyder4 with Python 3.8 and pygame latest version 1.9). Any idea what it could be or an idea how to find the root cause are highly appreciated. Unfortunately I am not a programming expert with Python (or Windows/Linux). I just started to learn Python with my Raspberry-Pi and wanted to use this great tool to be independent within my first learning steps from my HW.

Thanks for any help. Best regards

blbltheworm commented 4 years ago

Hi it's been a while that something happened here :) Thanks for posting. I can't promise to much as I was not working with python on Win10 so far but in the meanwhile I have at least a win10 copy. Could you please share your example code than I can give it a try.

duden-99 commented 4 years ago

Thanks for your reply. I have just used the example from your manual:

import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.OUT)
GPIO.setup(24, GPIO.IN)
while(1):
    GPIO.output(23, GPIO.input(24))
    time.sleep(0.1)

The program just starts but when I will click on the GUI or any button it immediately shows “no response”. The same effect is happening while I use Spyder 4 or IDLE from Python Shell. Since I am not very experienced, I even don’t know how to find some information in Windows why it might have been freezing. Any help or idea are appreciated. Thanks

blbltheworm commented 4 years ago

Hi, I spent the evening wrapping my head around that issue. It`s definetely a problem with WIn10 and pygame. The issue is the while-loop which somehow conflicts with the main eventloop within the emulator. I need some help here and hope I will find some.

duden-99 commented 4 years ago

Thanks a lot - I cross my fingers and hope you will find the root cause of the problem! Yarpi would really help me and seems to be a great idea and tool. I stay tuned! Thanks.

blbltheworm commented 4 years ago

Hi, unfortunately no luck so far and very little help in the python forums I know of. In the meanwhile one suggestion: As you like to emulate the Raspberry anyway. There are possibilities to run Raspian on windows (e.g. https://sourceforge.net/projects/rpiqemuwindows/). You could use this virtual machine, download yarpie into your emulated Raspian and run it from there. As Yarpie works fine in Linux this should work (I have not tried it yet).

Thanks for staying tuned. :)

duden-99 commented 4 years ago

Thanks for your feedback. I will wait an hope that you might find a solution. If I will find the time I will try it with running Raspian on Windows. Question would be how it will work since my Spyder will run under Windows. Thanks and hope you will have luck.