phyton cannot be find by the terminal

Asked by adriana

Openshot no longer opens, it used to but now not. I have searched in the forum for this problem. I followed some indications and probably "phyton " is missing,. How can I install it and helps this to open the video editor programe?

Thanks

Adriana

Question information

Language:
English Edit question
Status:
Answered
For:
OpenShot Video Editor Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Girard (eolinwen) said :
#1

Hi,
Don't touch at your actual version of Python which is by default in all Linux distributions. Your problem is elsewhere and I have already give you a answer in the other thread.

Revision history for this message
adriana (aesteves) said :
#2

Probably you are wright; since in the meantime I have installed other version of phyton and also openshot do not opens. The message from the terminal is the following:
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!

Thank you again

Revision history for this message
Olivier Girard (eolinwen) said :
#3

Don't worry adriana, you could use several version of Python in the same time. For sample, me I have the officiel (i.e 2.7.x branch) and the 3.2.x branch.
Openshot is currently done for working with 2.7.X branch so it is not a problem if you have the other installed.
But that's not why he doesn't work. For working with MLT (designed in C) This one have a python binding and this is at this level the issue.
The solution is to update MLT.

Revision history for this message
adriana (aesteves) said :
#4

I have followed the instruccions you gave me concerning MLT . Thatś what I did:

In a console, add the following line :
sudo add-apt-repository ppa:sunab/kdenlive-release
After update your packages list :
sudo apt-get update
and after you upgrade the MLT packages which are composed of the following packages : libmlt4, libmlt-data libmlt++3 python-mlt3 melt.
sudo apt-get upgrade libmlt4, libmlt-data libmlt++3 python-mlt3 melt

Then I typed openshot and this was the answer (the same as I previously obtained):
ailed 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!

Obviously something is still wrong.

I have to tell you that in the meantime I did a lot of modifiations: I unistalled openshot 1.3.1 and installed the new version 1.3.4
following the instructions of PPA instaltion. Finally, I have Ubuntu 10.4

Revision history for this message
adriana (aesteves) said :
#5

------------------------- ERROR 1 ------------------------------
Failed to import 'from openshot import main'
Error Message: cannot import name main
I tried an actualization through "Gestor de paquetes Synaptic" (sorry I don¿t rememeber how to translate it), and now the terminal shows the following errors:
----------------------------------------------------------------
--------------------------------
   OpenShot (version 1.4.3)
--------------------------------
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***

------------------------- ERROR 2 ------------------------------
Failed to import 'from openshot.openshot import main'
Error Message: /usr/lib/pymodules/python2.6/_mlt.so: undefined symbol: _ZN3Mlt16FilteredConsumerC1ERNS_7ProfileEPcS3_
----------------------------------------------------------------

OpenShot has failed to import some of the Python files or libraries
required for our application to run.

Revision history for this message
Olivier Girard (eolinwen) said :
#6

Do that :
https://answers.launchpad.net/openshot/+faq/2197
https://answers.launchpad.net/openshot/+faq/2101
And search all packages compositing MLT. You have a screenshot in this FAQ : https://answers.launchpad.net/openshot/+faq/1861
You don't care about numbers between your installation and the screenshot (it is an old) but I would like to have yours. :-)

Revision history for this message
adriana (aesteves) said :
#7

I am sorry, but I do not understand what you w
a) first address : How To Report A Bug- Do I have to prepare the report? I do not answer most of the questions!!
b) second address: How To Have the latest freiOr-plugins in the 1.4.3. I did not find how to do this.
c) third address: HOW TO : Have the last version of MLT (Sunab PPA) ? I have done this yesterday

Revision history for this message
Olivier Girard (eolinwen) said :
#8

Not to worry!
a) Mainly Yes, it is a general subject that I must refine. But I would like to have more informations about MLT.
b)they are in the sunab PPA too.
c)Like I have explained, it is mainly for the screenshot. The biggest part of people does'nt understand that MLT is a set of software i.e libmlt, python-mlt, libmlt-data, melt, libmlt++.
 I would like to know what is your version like in the following screenshot :
http://pix.toile-libre.org/upload/original/1359492510.png

for sample : libmlt-data 0.8.8

Thanks Sorry if I have done a mistake.

Revision history for this message
adriana (aesteves) said :
#9

The search at Synaptic package gestor I obtained these information

Phyton mlt3
phyton mlt5
phyton mlt4
phyton mlt2 installed version 05 4-1
mltonb
libmlt ++3 installed Ubuntu-su
libmltw
libmlt++-dev

Revision history for this message
Olivier Girard (eolinwen) said :
#10

Strange. I don't understand how you can have mlt 2mlt3 mlt4 and mlt5 in the same time.

Here my model file :
Bug Date : 30/01/2013
Reporter : Olivier Girard aka Cenwen
Plateform (64 bits or 32 bits) : 64 bits
Operating System : Ubuntu
Version OS : Precise
New installation or update :yes
Installation Method : Daily PPA
Version of Openshot installed : 1.4.3
Revision used (if any) : rev
Library used (Libopenshot or MLT) : MLT
Library version (libopenshot 1.x.x or libmlt 0.x.x) : libmlt-data-0.8.8-0ubuntu~sunab~precise libmlt5-0.8.8-0ubuntu~sunab~precise libmlt++3-0.8.8-0ubuntu~sunab~precise melt-0.8.8-0ubuntu~sunab~precise python-mlt5-0.8.8-0ubuntu~sunab~precise
FFmpeg version : 1.0.0
FFmpeg installation : Sven PPA

Summary/Description:

Steps to reproduce:

Additional information :

Link to a bug report (if any):

Tells me exactly if you have all this versions installed (i want the detail of the line Library version). It is impossible to have for sample libmlt4 and libmtl 5 installed in the same time. Your packet manager don't permit this operation.

Revision history for this message
adriana (aesteves) said :
#11

Here my model file :
Bug Date : 30/01/2013
Reporter : Esteves Adriana
Plateform (64 bits or 32 bits) : ?
Operating System : Ubuntu 10.4
Version OS : ?
New installation or update :no
Installation Method : ?
Version of Openshot installed : 1.4.3
Revision used (if any) :?
Library used (Libopenshot or MLT) : MLT (I think)
Library version (libopenshot 1.x.x or libmlt 0.x.x) :liblmt++3 version 0.8.2-Oubuntu0-sunab-lucid1 libmlt-data 0.8.2-Oubuntu0~sunab~lucid1 libmlt5 0.8.2-Oubuntu0~sunab~lucid1 melt ~ 0.8.2-Oubuntu0~sunab~lucid1
FFmpeg version : 4:0.5.9-0Ubuntu010.04.3
FFmpeg installation : ?

I apologize if this is not the way to present it.
About phyton the synaptic package gestor do no show anything.

Revision history for this message
Olivier Girard (eolinwen) said :
#12

Normal, you don't write correctly python (i.e python instead of phyton) :-)
Try again even I should be very surprise if Python wasn't present on a Gnome Desktop like this one is designed by C et Python with GTK.

Revision history for this message
adriana (aesteves) said :
#13

You are right, obviously I was wrinting uncorrectly the famous Python !!!!!( python 2.6.5-Oubuntu1) It is installed and to continue with the bug report I have to add

python mlt2 0.5 4-1

Now, when I type python in the terminal it works, but then when type import mlt, the following error appears:
ImportError: /usr/lib/pymodules/python2.6/_mlt.so: undefined symbol: _ZN3Mlt16FilteredConsumerC1ERNS_7ProfileEPcS3_

Regards

Revision history for this message
Olivier Girard (eolinwen) said :
#14

You seem to have an issue with your version of python-mlt which is currently, in the number 05.4.-1 instead of to be in the same number that the others i.e. python-mlt5 0.8.2. So,I don't see another solution like to remove those. Use Synaptic for this task with the action Total suppression. It will remove them and Openshot too. And reinstall it again.

Revision history for this message
adriana (aesteves) said :
#15

Ok. Thank you for your interest in this problem. I don't want to do things wrong, so I ask you if I have to remove the following¡
- phyton mlt2 0.5.4.1
- openshot

Is it correct?

Thank you again

Revision history for this message
Olivier Girard (eolinwen) said :
#16

No. You must remove (Complete remove!) all MLT packages i.e. libmlt-data-0.x.x libmltx libmlt++3 melt python-mltx
THis action will remove too Openshot. And check after if you still any dependencies form MLT.

Revision history for this message
adriana (aesteves) said :
#17

Ok. I have removed using Synaptic tool, all files containing mlt in their name; then I have reinstall openshot and the system "told me" it will necessary to install too :
libmlt++3
libmlt data
libmlt5
phyton mlt5

I said OK, but I have to tell you that the problem still exists- I think that the best procedeure will be to install a new version of Ubuntu and then see what happens; if not I will have return to windows Vegas Pro software!!!!

Revision history for this message
adriana (aesteves) said :
#18

Sorry I have forgotten to mention that from the terminal now the answer after following the suggestion of typing phyton, mlt import and mlt.Factory().init(). it says something different than previously:

No LADSPA plugins were found!

Check your LADSPA_PATH environment variable.
<mlt.Repository; proxy of <Swig Object of type 'Mlt::Repository *' at 0xb7764530> >
>>>

Revision history for this message
Olivier Girard (eolinwen) said :
#19

The fact that the terminal said you that it miss you Ladpsa plugins doesn't matter because Openshot doesn't use them now. In a future, I don't said but it won't be with MLT like video framework.

>>I said OK, but I have to tell you that the problem still exists- I think that the best procedeure will be to install a new version of Ubuntu and then see what happens; if not I will have return to windows Vegas Pro software!!!!

Sounds good. Anyway, your 10.04 will be out-date when 13.04 will be out in ...........April.
If I was you, I download 12.04 (like you seem to use a LTS and stable system for your work, anyway it is better) and re-install it. Think to save all your datas, even you can only re-install the / and not your /home. But since the time that you are using 10.04, it will be better.
Try the 12.04 in LiveCD before, we'll know never.

Can you help with this problem?

Provide an answer of your own, or ask adriana for more information if necessary.

To post a message you must log in.