Giter Site home page Giter Site logo

GUI about freeclimber HOT 6 OPEN

kari223 avatar kari223 commented on June 21, 2024
GUI

from freeclimber.

Comments (6)

adamspierer avatar adamspierer commented on June 21, 2024 1

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

from freeclimber.

kari223 avatar kari223 commented on June 21, 2024 1

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.

from freeclimber.

adamspierer avatar adamspierer commented on June 21, 2024 1

@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!

from freeclimber.

BerMoa avatar BerMoa commented on June 21, 2024

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...

from freeclimber.

adamspierer avatar adamspierer commented on June 21, 2024

@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.

from freeclimber.

kari223 avatar kari223 commented on June 21, 2024

@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:

########################################################################

FreeClimber v.0.4.0

Please cite: https://doi.org/10.1242/jeb.229377######################

Beginning program @ 2022-08-02 20:23:40

########################################################################
Traceback (most recent call last):
File "C:\Users\karin\Desktop\Git Cloning\FreeClimber\scripts\FreeClimber_main.py", line 489, in
main()
File "C:\Users\karin\Desktop\Git Cloning\FreeClimber\scripts\FreeClimber_main.py", line 454, in main
fc = FreeClimber(config_file = config_file)
File "C:\Users\karin\Desktop\Git Cloning\FreeClimber\scripts\FreeClimber_main.py", line 36, in init
self.load_parameters()
File "C:\Users\karin\Desktop\Git Cloning\FreeClimber\scripts\FreeClimber_main.py", line 52, in load_parameters
variables = f.readlines()#.split('\n')
File "C:\Users\karin\AppData\Local\Programs\Python\Python36\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 5682: character maps to

I'm not really sure what this means but do you have any suggestions for fixing it? Thank you.

from freeclimber.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.