Hey,
I'm just trying to run the program for the AR4 version, but unfortunately nothing happens. The program crashes immediately after starting. I checked this on two different computers. Win10.
Should I install something additional? Python for example?
any updates on that?
I'm unsure what I'm doing wrong, but it doesn't work for me on two different laptops. One is windows 11 and the other is Windows 10.
I have compiled a exe beta version that has the serial timeout added. Please let me know if anyone having the windows 11 issue can open this and then set the com port.
Adding the timeout of 1 second worked for me. It runs 4 functions after this, each which do a serial read and then time out, so there is a 4 second pause before the program loads. This runs fine when I do a build from sublime text editor. I can't compile yet, I have some python path issues after installing python from the windows app store =/
Interesting, thank you for the feedback on that. The serial commands are nested in a "try" function which should write an error to the log if there is no serial connection available but still open the software. I will start looking into that and see what I can figure out.
I know what is going on, at least in my case. I do not have any hardware at all yet. I only just ordered the parts kit last week.
What freezes the program up is that it does a few ser.read() commands during startup, but there is no hardware to read from. If I comment out the serial reads on startup, it loads up quick. I was not aware the software wasn't meant to be run without any hardware attached. Maybe we could implement a timeout if there is no response?
I have spent all day trying to figure this out. I then got a bit desperate and just started commenting out little bits of code to see if something would change.
With serial commented out the software loads right up. I know this isn't a solution but letting you know in case it helps. I'll look in to this further as well.
That error indicates the icon file is not in your build folder. I have not yet figured out the initial issue. I just bought a brand new windows 11 computer and I am unable to replicate the issue, the software starts for me. If anyone has any errors come up or any other indications that would help narrow this down it would be greatly appreciated.
Anyone figure this out? I can't get the software to run on my main Windows 11 PC. I tried installing ttkthemese, pyserial, numpy and then pysintaller to make an executable, but I get an error when I try to run it.
" File "AR4.py", line 75, in <module>
File "tkinter\__init__.py", line 2109, in wm_iconbitmap
_tkinter.TclError: bitmap "AR.ico" not defined"
I may have just compiled something wrong.
The downloaded pre-compiled version does the same for me as what is shown in the picture of the first post.
Update: I try to reinstall old version of win 10 ( build: 1803) then ar4 soft work normaly. So i think the problem come with something change in windows.
I haven't been able to reproduce the issue on windows 10 or 11 but Cody was able to send me a screenshot of the cmd window / error which helps immensely so I will work on this next week when I get back.
I too am having the same issue as Minh Nguyen but on Windows 11
. I'm attempting to work through it now, sadly I am rather unfamiliar with using Python/CMD. Chris, could you put together a step by step in the AR4 manual for people like myself? I just want to make sure I follow the correct steps. But now that I think of it, I believe you have outlined this somewhere in one of your videos.
I've run the exe on windows 10 and 11 machines and have not been able to replicate the issue. I am continuing to investigate, in the meantime please keep me posted if anyone else has this issue or any findings.
So, I compiled the exe my self with no luck but after I installed the libraries with the pip install numpy pip install ttkthemes
pip install pyserial Then I went to the directory of the file(you will have to enable the open command prompt window here option{https://www.youtube.com/watch?v=xhQz3pVWQDQ&ab_channel=TechSolution}) then go to the folder with the source code right click on it and open in command prompt. From there it is a simple as typing python AR4.py or python3 AR4.py
I have come across the same issue I will try running it with python 3.9 as the .exe file does not work.
I cannot run the exe file compiled by you.
Today I compiled the AR4 program myself (also after some problems. With python 3.7 I could not connect the teensy board, after installing python 3.9 connecting worked). and it works.
I tested the AR4 and AR3 program (compiled by you) on 3 different computers.
On one it crashes as shown on the screenshot, on the second only the cmd window appears for about 0.5s and the program shuts down. On the third one it works without any problem.
The AR3 program runs on all of them without any problem.
Are you trying to run the source code or just the exe file?
As I have a Mac, what I did was to install the last version of Python 3, and open a Terminal window to:
1. Go to the AR4 source code directory
2. Create a virtual environment in this terminal window (do "python3 -m venv venv")
3. Install the ttkthemes, pyserial, and numpy libraries (using pip3 install <package>)
4. and finally do: python3 AR4.py
Hope it helps doing the same in Windows.