mhsabbagh / green-recorder

A simple screen recorder for Linux desktop. Supports Wayland & Xorg
GNU General Public License v3.0
616 stars 118 forks source link

Python Error On Manjaro #105

Closed Noah11012 closed 5 years ago

Noah11012 commented 5 years ago

I am running Manjaro and installed Green Recorder through the AUR green-recorder-git package.

This is the error I get:

You are recording on: x11
Traceback (most recent call last):
  File "/usr/bin/green-recorder", line 352, in <module>
    delayadjustment.set_value(int(config.get('Options', 'delay')))
  File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'Options'
mhsabbagh commented 5 years ago

What are the contents of /home/"youruser"/.config/green-recorder/config.ini?

Noah11012 commented 5 years ago

Nothing:

➜  ~  cat /home/noah/.config/green-recorder/config.ini
➜  ~  
mhsabbagh commented 5 years ago

For some reason the configurations are not in your supposed config file, here's for example my file:

[Options]
frames = 30
delay = 0
folder = file:///home/mhsabbagh/Videos
command = 
filename = 
videoswitch = True
audioswitch = True
mouseswitch = True
followmouseswitch = False

Try placing it there (with changing the "folder" in your videos folder path) and see.

Noah11012 commented 5 years ago

Thanks for your help.

This is the output I now get:

You are recording on: x11
Traceback (most recent call last):
  File "/usr/bin/green-recorder", line 361, in <module>
    videoswitch.set_state(checkbool(config.get('Options', 'videocheck')))
  File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
    raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'videocheck' in section: 'Options'
mhsabbagh commented 5 years ago

Turns out the name of the default configuration options was different than the program expects. I fixed it now but you can replace the contents with this:

[Options]
frames = 30
delay = 0
folder = file:///home/mhsabbagh/Videos
command = 
filename = 
videocheck = True
audiocheck = True
mousecheck = True
followmousecheck = False

Thank you for your report!

levimake commented 5 years ago

For some reason the configurations are not in your supposed config file, here's for example my file:

[Options]
frames = 30
delay = 0
folder = file:///home/mhsabbagh/Videos
command = 
filename = 
videoswitch = True
audioswitch = True
mouseswitch = True
followmouseswitch = False

Try placing it there (with changing the "folder" in your videos folder path) and see.

In the config from the latest build, there is a small error in the config file. My config file looked like this :

[Options] frames = 30 delay = 0 folder = file:///home/levis command = filename = videocheck = True audiocheck = True mousecheck = True followmousecheck = False

I got the same error as this issue and I changed all those last four lines (replaced check to switch like you've given).

I replaced it to this :

[Options] frames = 30 delay = 0 folder = file:///home/levis command = filename = videoswitch = True audioswitch = True mouseswitch = True followmouseswitch = False

Voila ! Everything worked :) Thanks for this great project as I couldn't get any other screen recorder for my SWAY wm.