LinuxForum.Fans
Тема

OpenShot mlt ошибка

Автор: Vadim_Volos 3 сообщений 2012 просмотров
#298091

Вообщем нагуглил кучу форумов, но толком ничего не понял

Показать

Кто устанавливал OpenShot, в двух словах расскажите что сделать?

Тут в принципе рассказывается подробно, только директории куда их положить не нашел

Показать

When I tried to start OpenShot I received the following error message :

dlphilp@The3800:~$ openshot
Added /usr/share/openshot to system path
--------------------------------
OpenShot (version 0.9.52)
--------------------------------
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_innerself.run()
File "/usr/share/openshot/classes/thumbnail.py", line 174, in run mlt.Factory().init()
NameError: global name 'mlt' is not defined

-------------------------------------------------------
Error: OpenShot has not been installed in the Python path.
(Both the site-packages and /usr/share/openshot folders were checked)

Use the following command to install OpenShot:
$ sudo python setup.py install
After some research I found that the straightforward sudo make install was not enough to correctly install the MLT software. I discovered that MLT's Makefile for the language bindings includes a directive for installation, but there are no installation targets. Thus, the modules get built but are not installed.

Following advice from OpenShot developer Jonathan Thomas I manually copied three files from ~/src/mlt/src/swig/python to the /usr/lib/python2.6/site-packages directory. The needed files are the _mlt.so shared library, the mlt.py Python module, and the mlt_wrap.o object file. I ran the openshot command again, and again the program produced the same error message and failed to open.

At this point I suspected the Python PATH so I ran this command :

echo $PYTHONPATH
The result was an empty string, proving that the PYTHONPATH had not been defined in my Ubuntu Jaunty Python environment. Python itself is definitely correctly installed, but without a defined PYTHONPATH its modules would be unavailable to OpenShot. I defined that path with this command :

export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.6/site-packages/
Once again I tried to start OpenShot, and this time the program opened in all its glory (Figure 1). At last I could meet and greet OpenShot.
#298104

Заработало!!!

В Ясте вписал Python-MLT

python-mlt уже был установлен, поставил галочку python-mlt-debuginfo

установил его, потом запустил установку OpenShot, установился

Запустил, и О Чудо! Он Запустился)

#298107

Самое интересное, запускаю установку свежей версии 1.4.3
которой нет в Ясте
http://software.opensuse.org/package/openshot?search_term=OpenShot

а она говорит "ничто не предоставляет mlt, необходимый для openshot-1.4.3-11.1.x86_64"
раньше и та, которая установилась, тоже такое говорила.

Войдите или зарегистрируйтесь, чтобы ответить.