If you experience this error when trying to open old project file in new OpenShot:
project_data:ERROR Failed to load project file old_project.osp: No module named 'classes.marker'
Then you need to fix code a little bit (fix based on Fixing issue with opening some legacy 1.4.x project files):
--- /usr/lib64/python3.4/site-packages/openshot_qt/classes/project_data.py.old  2016-07-17 18:49:37.449037554 +0200
+++ /usr/lib64/python3.4/site-packages/openshot_qt/classes/project_data.py  2016-07-17 18:51:40.099036226 +0200
@@ -379,6 +379,8 @@
 
         # Import legacy openshot classes (from version 1.X)
         from classes.legacy.openshot import classes as legacy_classes
+        from classes.legacy.openshot.classes import marker as legacy_marker
+        from classes.legacy.openshot.classes import project as legacy_project
         from classes.legacy.openshot.classes import sequences as legacy_sequences
         from classes.legacy.openshot.classes import track as legacy_track
         from classes.legacy.openshot.classes import clip as legacy_clip
@@ -386,6 +388,8 @@
         from classes.legacy.openshot.classes import files as legacy_files
         from classes.legacy.openshot.classes import transition as legacy_transition
         sys.modules['openshot.classes'] = legacy_classes
+        sys.modules['classes.marker'] = legacy_marker
+        sys.modules['classes.project'] = legacy_project
         sys.modules['classes.sequences'] = legacy_sequences
         sys.modules['classes.track'] = legacy_track
         sys.modules['classes.clip'] = legacy_clip
Be aware that actual path depends on how openshot is compiled. I am using openshot on Gentoo linux compiled against python 3.4.

And that's it. Also similar fix could be applied for other modules in directory

/usr/lib64/python3.4/site-packages/openshot_qt/classes/legacy/openshot/classes/
If you run openshot and notice that icons are missing here is my quick and dirty few liner fix/workaround which copies necessary icons to place where openshot could find them and does not mess your whole system:
#!/bin/bash

mkdir -p ~/.icons/hicolor/openshot
openshot-qt >& ikony
for i in $(awk '/WARNING Icon theme/{print $4}' ikony); do
  echo "#### $i"
  OLD_IFS=$IFS
  IFS=
  a=$(find /usr/share/icons -name "${i}*")
  for k in /elementary-xfce/ /oxygen/ /gnome/ /Adwaita/; do
    for j in 512 256 192 128 96 72 64 48 36 32 24 22 16; do
      echo $a | grep "/${i}\." | grep $j
      if [[ $? -eq 0 ]]; then
        break
      fi
    done | grep $k
    if [[ $? -eq 0 ]]; then
      break
    fi
  done | head -1
  IFS=$OLD_IFS
done | sed -e 's#^/#cp -v /#' -e 's#\(\....\)$#\1 ~/.icons/hicolor/openshot#'
Explanation: Take commands above and put them in the file, make file executable and run it. Script runs openshot-qt and after you quit it it parses its output for icons missing. Then it tries to find the icons and spits out commands for copying those icons into place where openshot-qt will be able to find them and use them. Copy & paste those commands in terminal window and icons should be copied.

Be aware that this script check for icons from packages (in that order):

kde-frameworks/oxygen-icons
x11-themes/elementary-xfce-icon-theme
x11-themes/gnome-icon-theme

Install those packages or change keywords appropriately.

If you have any questions regarding this, feel free to contact me at my e-mail address.

P. S. I had to switch from version 2.0.7 to 1.4.3 because openshot has very big problems working with more tracks on my setup. Older version works just fine.


Google ads





Last modified:

Valid HTML 4.01!
Copyright (c) 2016 PAVUK