Open kari223 opened 2 years ago
Hi there,
The error says you are running the program in its command line form (called from the command line) when you want to run the program in its GUI form (called from the command line). Assuming everything was set up following the tutorial and assuming you are in the right directory, step 1A gives the command to run the GUI from the command line:
pythonw ./scripts/FreeClimber_gui.py --video_file ./example/w1118_m_2_1.h264
Hi there,
Thank you for your help with this matter. I have managed to follow the tutorial, and when I attempt to run the program the GUI starts, asks me to pick a video file and then suddenly stops. I have attempted to run it both from the command line and the cloned GitHub flie on my laptop. Before the program closes, the error message reads:
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes n position 2-3: truncated \UXXXXXXXX escape OnInit returned false, exiting...
Kind regards, Karina.
Hello,
did you solve the problem? I Jave the same problem.
Loading: /Users/XXXXXXX/FreeClimber/example/w1118_m_2_1.mp4
!! Could not read /Users/CCCCCC/FreeClimber/example/w1118_m_2_1.mp4 into FreeClimber. Likely due to unacceptable video file or FFmpeg not installed !! Could not read in video file metadata Traceback (most recent call last): File "/Users/XXXXXXX/FreeClimber/scripts/detector.py", line 276, in video_to_array out,err = (ffmpeg AttributeError: module 'ffmpeg' has no attribute 'input'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "./scripts/FreeClimber_gui.py", line 40, in OnInit frame = create(None, file_name) File "./scripts/FreeClimber_gui.py", line 782, in create return main_gui(parent, file_path) File "./scripts/FreeClimber_gui.py", line 125, in init self.load_video() File "./scripts/FreeClimber_gui.py", line 192, in load_video variables = vars) File "/Users/iceman/FreeClimber/scripts/detector.py", line 76, in init self.image_stack = self.video_to_array(video_file,loglevel='panic') File "/Users/XXXXXXX/FreeClimber/scripts/detector.py", line 283, in video_to_array print('!! Could not read in video file to an array. Error message (if any):', err) UnboundLocalError: local variable 'err' referenced before assignment OnInit returned false, exiting...
@kari223 - Your error might be caused by how the file path is compiled? Try swapping the "/" in the file path with "\" since Macs and Windows have different path formatting. I'm unsure if this will solve it completely, but it looked similar to a problem here and the program should work on Windows. Keep me posted either way and we can figure it out!
@BerMoa - Your error is likely because FFmpeg is not (properly) installed on your computer. If the instructions in the tutorial don't work, then install FFmpeg manually and re-run through the instructions in the tutorial.
I found success installing it through Homebrew though it is also available through the FFmpeg website and should work that way as well.
@adamspierer Hello, Thank you for your help. I am now getting a different issue when I run this: "C:\Users\karin\Desktop\Git Cloning\FreeClimber\scripts\FreeClimber_main.py" --config_file "C:\Users\karin\Desktop\Git Cloning\example_w1118_m_2_1.avi"
So the program begins and the file path is recognized (I think), but then this happens:
########################################################################
########################################################################
Traceback (most recent call last):
File "C:\Users\karin\Desktop\Git Cloning\FreeClimber\scripts\FreeClimber_main.py", line 489, in
I'm not really sure what this means but do you have any suggestions for fixing it? Thank you.
Hello,
I am a biologist with little python experience. I have managed to install the FreeClimber files, but I'm not sure how to activate the GUI. have made an environment using conda and attempted to follow the tutorial. However, I am confused by this from the tutorial:
"A required.cfg is needed to run the command line tool. This file is generated by the GUI, or can be modified from the provided example.cfg file. The program will find all specified video files of a common type (file_suffix) that are nested within the specified parent folder (project_path), rather than where the configuration file is held." What does this mean and what do I do? I just want to start the GUI so I can input my video and parameters. Thank you so much for your help,