← Back to team overview

openshot.developers team mailing list archive

[Bug 729359] [NEW] openshot-render crash with "AttributeError: 'NoneType' object has no attribute 'settings'"

 

Public bug reported:

When trying to render a project with openshot-render it crashes with
AttributeError. The project.form attribute, which seems to be a
reference to a GTK form, is never set when running from openshot-render.

I was extremely happy to find the render-tool, as I've spent days trying
to figure out a way to do a big batch job. Not so happy when I realised
it didn't work. ;)

1) Ubuntu 10.10 (Also on 10.04)
2) Installed from repositories
3) Openshot-version 1.3.0


OUTPUT:

$openshot-render proj.osp

rendering options:
container type: avi
video codec: mpeg4
video bitrate: 5000000

audio codec: libmp3lame
audio sample rate: 44100
channels: 2
audio bitrate: 128000

Traceback (most recent call last):
  File "/usr/bin/openshot-render", line 58, in <module>
    main()
  File "/usr/lib/pymodules/python2.6/openshot/openshot_render.py", line 37, in main
    bot.render()
  File "/usr/lib/pymodules/python2.6/openshot/classes/cli_render.py", line 239, in render
    self.current_project.GenerateXML(os.path.join(self.USER_DIR, "sequence.mlt"))
  File "/usr/lib/pymodules/python2.6/openshot/classes/project.py", line 258, in GenerateXML
    self.sequences[0].GenerateXML(dom, tractor1)
  File "/usr/lib/pymodules/python2.6/openshot/classes/sequences.py", line 226, in GenerateXML
    bg_track.GenerateXML(dom, multitrack, fps=fps)
  File "/usr/lib/pymodules/python2.6/openshot/classes/track.py", line 110, in GenerateXML
    current_frame = MyClip.GenerateXML(dom, playlist, current_frame, fps=fps)
  File "/usr/lib/pymodules/python2.6/openshot/classes/clip.py", line 466, in GenerateXML
    use_affine = self.parent.parent.project.form.settings.general["use_affine"]
AttributeError: 'NoneType' object has no attribute 'settings'

** Affects: openshot
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenShot
Developers, which is subscribed to OpenShot Video Editor.
https://bugs.launchpad.net/bugs/729359

Title:
  openshot-render crash with "AttributeError: 'NoneType' object has no
  attribute 'settings'"

Status in OpenShot Video Editor:
  New

Bug description:
  When trying to render a project with openshot-render it crashes with
  AttributeError. The project.form attribute, which seems to be a
  reference to a GTK form, is never set when running from openshot-
  render.

  I was extremely happy to find the render-tool, as I've spent days
  trying to figure out a way to do a big batch job. Not so happy when I
  realised it didn't work. ;)

  1) Ubuntu 10.10 (Also on 10.04)
  2) Installed from repositories
  3) Openshot-version 1.3.0

  
  OUTPUT:

  $openshot-render proj.osp

  rendering options:
  container type: avi
  video codec: mpeg4
  video bitrate: 5000000

  audio codec: libmp3lame
  audio sample rate: 44100
  channels: 2
  audio bitrate: 128000

  Traceback (most recent call last):
    File "/usr/bin/openshot-render", line 58, in <module>
      main()
    File "/usr/lib/pymodules/python2.6/openshot/openshot_render.py", line 37, in main
      bot.render()
    File "/usr/lib/pymodules/python2.6/openshot/classes/cli_render.py", line 239, in render
      self.current_project.GenerateXML(os.path.join(self.USER_DIR, "sequence.mlt"))
    File "/usr/lib/pymodules/python2.6/openshot/classes/project.py", line 258, in GenerateXML
      self.sequences[0].GenerateXML(dom, tractor1)
    File "/usr/lib/pymodules/python2.6/openshot/classes/sequences.py", line 226, in GenerateXML
      bg_track.GenerateXML(dom, multitrack, fps=fps)
    File "/usr/lib/pymodules/python2.6/openshot/classes/track.py", line 110, in GenerateXML
      current_frame = MyClip.GenerateXML(dom, playlist, current_frame, fps=fps)
    File "/usr/lib/pymodules/python2.6/openshot/classes/clip.py", line 466, in GenerateXML
      use_affine = self.parent.parent.project.form.settings.general["use_affine"]
  AttributeError: 'NoneType' object has no attribute 'settings'



Follow ups

References