PaulWilsonTo / WilsonPythonFinch

Control BirdBrain Technologies Finch 2.0 with Python in ReplIt
1 stars 0 forks source link

Run Repository #1

Open ADP13805 opened 1 month ago

ADP13805 commented 1 month ago

First of all, thanks for creating and publishing this code and spending the time to help me. Probably there is something I don't understand, but I am currently not capable of running any part of your repo and it would be really helpful if you could point me in the right direction. I cloned the repository and tried to run it, however, I get the following error.

File "c:\Users\patuz\Downloads\WilsonPythonFinch-master\WilsonPythonFinch\test_leds.py", line 25, in
finch = Finch() ^^^^^^^ File "c:\Users\patuz\Downloads\WilsonPythonFinch-master\WilsonPythonFinch\wilson\finch.py", line 19, in init self.__target = Worker.nextTarget() ^^^^^^^^^^^^^^^^^^^ File "c:\Users\patuz\Downloads\WilsonPythonFinch-master\WilsonPythonFinch\wilson\internal\worker.py", line 47, in nextTarget
worker = Worker.getById(thread.sourceId) ^^^^^^^^^^^^^^^ AttributeError: '_MainThread' object has no attribute 'sourceId'

I know that this is probably just a lack of competence on my side, but i could not find it out on my own, so it would be really helpful if you could assist me.

PaulWilsonTo commented 1 month ago

I wrote this code for ReplIt since I needed support in an online-only environment which BirdBrain did not support. There is no reason to do this in a local environment, which it appears is what you are trying to do. BirdBrain already gives you Python and Java files that will work in a local environment, and trying to get a web app to run locally is also more involved (and not needed). Last comment: ReplIt has changed so much that I no longer use this code.

ADP13805 commented 1 month ago

Thanks for your reply, that's good to know.

I will creaty a python gui for the Robot myself, because it makes it easier to demonstrate different functionalities to my students at the Auroville Institute of Applied Technology.