THE ANNIN ROBOTICS FORUM HAS MOVED TO A NEW COMMUNITY. 👉
AR4 Control Softwar...
 
Notifications
Clear all

AR4 Control Software does` t want to start!

28 Posts
10 Users
0 Reactions
513 Views
Avatar of ADGR
 ADGR
(@adgr)
Active Member
Joined: 3 months ago
Posts: 4
Topic starter  

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?



   
Quote
Topic Tags
Avatar of jroblesc
(@jroblesc)
Active Member
Joined: 3 months ago
Posts: 3
 

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.



   
ReplyQuote
Chris Annin
(@chris-annin)
Member Admin
Joined: 3 months ago
Posts: 538
 

Are you trying to run the source code or just the exe file?



   
ReplyQuote
Avatar of ADGR
 ADGR
(@adgr)
Active Member
Joined: 3 months ago
Posts: 4
Topic starter  

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.



   
ReplyQuote
Avatar of Minh Nguyen
(@minh-nguyen)
Active Member
Joined: 3 months ago
Posts: 8
 

@ADGR Hi, could you send me your AR4 software? I dont know how to compile by myself. Thank alot.

My email: minh.nguyen299@gmail.



   
ReplyQuote
Avatar of Jude Loza
(@jude-loza)
Active Member
Joined: 3 months ago
Posts: 4
 

I have come across the same issue I will try running it with python 3.9 as the .exe file does not work.



   
ReplyQuote
Avatar of Jude Loza
(@jude-loza)
Active Member
Joined: 3 months ago
Posts: 4
 

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{

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



   
ReplyQuote
Chris Annin
(@chris-annin)
Member Admin
Joined: 3 months ago
Posts: 538
 

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.



   
ReplyQuote
Avatar of Minh Nguyen
(@minh-nguyen)
Active Member
Joined: 3 months ago
Posts: 8
 

@chris-annin I got the same problem , when I run AR4.exe, command windows appear for 0.5s then nothing happen. I use win 10 64bit.



   
ReplyQuote
Avatar of Cody S
(@cody-s)
Eminent Member
Joined: 3 months ago
Posts: 20
 

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.



   
ReplyQuote
Avatar of Cody S
(@cody-s)
Eminent Member
Joined: 3 months ago
Posts: 20
 

Update: I have zero issues getting the AR3 software up and running. It was a very quick and painless process. Sadly I can't provide any more insight.



   
ReplyQuote
Chris Annin
(@chris-annin)
Member Admin
Joined: 3 months ago
Posts: 538
 

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.



   
ReplyQuote
Avatar of Minh Nguyen
(@minh-nguyen)
Active Member
Joined: 3 months ago
Posts: 8
 

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.



   
ReplyQuote
Avatar of dedoky
(@dedoky)
Active Member
Joined: 3 months ago
Posts: 13
 

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.



   
ReplyQuote
Avatar of raghuraman.b
(@raghuraman-b)
Active Member
Joined: 3 months ago
Posts: 6
 

@dedoky

Watch Annin's python startup video, and follow the exact same procedure. This error may not appear.

Still the error persists, comment out the line root.iconbitmap(r'AR.ico')



   
ReplyQuote
Page 1 / 2
Share:
Upload your Photo