OpenShot / openshot-qt

OpenShot Video Editor is an award-winning free and open-source video editor for Linux, Mac, and Windows, and is dedicated to delivering high quality video editing and animation solutions to the world.
http://www.openshot.org
Other
4.33k stars 540 forks source link

'NoneType' object has no attribute 'set_cursor' #1313

Closed rodinux closed 6 years ago

rodinux commented 6 years ago

System Details:

Detecting formats, codecs, and filters...

video_codecs:

------------------------- ERROR 2 ------------------------------ Failed to import 'from openshot.openshot import main' Error Message: 'NoneType' object has no attribute 'set_cursor'

OpenShot has failed to import some of the Python files or libraries required for our application to run. Here are some trouble shooting tips:

Tip 1) Check if MLT can be successfully imported in Python. Run the following commands, and see if any errors are displayed. If you get an error, you need to investigate the correct way to install MLT. NOTE: Do not type the $ or >> characters in the examples below.

   $ python
   >> import mlt
   >> mlt.Factory().init()

Tip 2) If MLT is working from the first example, then the next tip is to look at the above error messages very closely, and google for more help. It's likely the problem is already reported, and maybe there is a simple work-around. Also, you can search for bugs or report a new bug at https://bugs.launchpad.net/openshot. Good luck!

**Issue Description and steps to reproduce:**

I don't know what's happens ?? I had try this:

~$ python Python 2.7.13 (default, Nov 24 2017, 17:33:09) [GCC 6.3.0 20170516] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import mlt File "", line 1 import mlt ^ IndentationError: unexpected indent mlt.Factory().init() Traceback (most recent call last): File "", line 1, in NameError: name 'mlt' is not defined

peanutbutterandcrackers commented 6 years ago

Good sir, you are using OpenShot 1.x series. Please switch to OpenShot 2.x as that is what this github page is all about. You might want to try out with the PPA. Hope that helps!

rodinux commented 6 years ago

Thanks, but I use Debian and I can not use ppa (Ubuntu required), but I can perhaps try to use the unstable repository for openshot.

peanutbutterandcrackers commented 6 years ago

Whoa. A Debian user! Please do provide us with some insights if you do find any bugs. And please also report it to both - the debian bug tracker and us so that both parties can see each other's progress in fixing the bug.

Yes, there is a repo for OpenShot for Debian too. The Debian Multimedia maintainers are taking care of that. I hope you like OpenShot!

peanutbutterandcrackers commented 6 years ago

Also, you might want to take a look at the App Images...

rodinux commented 6 years ago

I have try with the deb http://www.deb-multimedia.org stable main non-free repository to upgrade, but there was a conflict libavcodec-extra57 : Is in conflit with: libavcodec57 but 10:3.3.6-dmo1+deb9u1 will be installed

rodinux commented 6 years ago

It is strange, because before this issue, I was abble to use openshot, I think it could be a mistake I have done...

peanutbutterandcrackers commented 6 years ago

Whoa: https://tracker.debian.org/pkg/openshot-qt It says openshot-qt is marked for autoremoval on 12 March because of this bug.

@DylanC, @N3WWN @ferdnyc @jonoomph - I think this deserves some GRAVE attention!!!

DylanC commented 6 years ago

@peanutbutterandcrackers - Oh dear. Thats not good. @jonoomph - Can anything be done to help this bug?

ferdnyc commented 6 years ago

Sorry, I'm a Fedora user, and I can't reproduce that in either Gnome Shell or LXDE (I don't have an XFCE installation) so it may be a debian build issue. (Though, testing this did lead me to unearth an issue with the rpmfusion packaging for openshot in Fedora, which I was able to report.)

Also, I'm not familiar with debian packaging policy, but wouldn't "autoremove" simply remove that build of openshot, and theoretically revert to the previous 2.4.1-1 build? The expanded information there reads (emphasis mine):

Version of openshot-qt is marked for autoremoval from testing on Mon 12 Mar 2018. It is affected by 890102. You should try to prevent the removal by fixing these RC bugs.

If so, and if that build didn't exhibit the same problematic behavior that 2.4.1-2 does, then that sounds like the correct action until the issue can be addressed. I mean, it is called "testing" for a reason.

rodinux commented 6 years ago

I found how to resolve my issue. It was really more stupid to do. $ sudo apt-get remove openshot python-mlt --purge $ sudo apt-get install python-mlt $ sudo apt-get install openshot $ mv ~/.openshot/ ~/.openshot-old/ to let's openshot create a new folder ~/.openshot Bug avec Openshot OpenShot Won't Start - Python MLT Error

ferdnyc commented 6 years ago

Glad you sorted that out! Yeah, if you were previously running OpenShot 1.x, the old configs probably confused it. The 2.x series made a lot of changes. (I know the project file format has changed; any old OpenShot-1.x .osp files you may have around unfortunately won't load in 2.x.)

My "can't reproduce" was referring to the external debian bug that @peanutbutterandcrackers pointed to,
not this bug report, sorry for crossing the streams there. (I still think that "autoremove" status is no cause for alarm, though, as long as it's referring to that particular build instance and not the entire OpenShot package itself. It sounds like they're handing the issue, which sounds like a local build or dependency problem since nobody else has reported it here, on their end.)

peanutbutterandcrackers commented 6 years ago

@rodinux - I'm glad that you sorted it out. I hope you make great videos with OpenShot!

@ferdnyc - I hope you're right. But still, if we could figure out a solution, that'd be great. It'd be nice to have OpenShot in the debian repositories... Plus, the debian guys are really known for their rock-solid stability. I really hope they can help us out with the stability issues.

peanutbutterandcrackers commented 6 years ago

@rodinux - Good sir, if OpenShot works for you on your debian machine, could you also please help sort out this bug?