Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 14/04/2015, à 11:02

francoise_peace

Dire à OpenShot de se lancer avec le Python 2.6?

* Le titre a été changé. Le titre d'avant c'était: Et mettre python 2.6 dans le répertoire de python 2.7?

Bonjour, je ne fais pas d'informatique, je ne suis qu'un simple utilisateur Linux. J'ai Python 2.6 mais comme il n'est pas - et il ne doit pas être - dans le répertoire du 2.7, mon programme OpenShot freeze au démarrage ou s'ouvre sans récupérer mes montages.

OpenShot (éditeur de vidéos) me dit:

WARNING: /usr/lib/pymodules/python2.6 missing from Python Path

La conséquence est qu'il ouvre mon projet sans savoir d'où sont extraites mes séquences vidéos, car là j'ai regardé OpenShot date de Quantal, il marche très bien pour les petits projets d'une journée, mais pas pour faire une vidéo en quelques jours car il oublie d'où provient tout.

Or j'ai déjà installé python2.6:

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.6

Mais:

fran@earendil-light:/usr/lib/pymodules$ ls
python2.7
fran@earendil-light:/usr/lib/pymodules$ sudo apt-get install python2.6
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
python2.6 est déjà la plus récente version disponible.

Donc mon programme possède plein de petites erreurs de ce genre, et même en installant des anciennes versions de ce qu'il veut, les anciennes versions ne vont pas dans les bons dossiers ? Donc comment avoir Python 2.6 à côté de Python 2.7 ? Est-ce possible ? Ou est-ce que ça va me bousiller mes autres programmes ? Ou est-ce qu'il me faut tout recommencer mes montages et changer de programme de montage vidéo ?

===

Plus d'information sur mes erreurs 1:

fran@earendil-light:~/Vidéos/Siege beginning April 2015$ openshot SiegeApril15.osp

------------------------- ERROR 1 ------------------------------
Failed to import 'from openshot import main'
Error Message: cannot import name main
----------------------------------------------------------------
--------------------------------
   OpenShot (version 1.4.3)
--------------------------------
Process no longer exists: 4831.  Creating new pid lock file.
Adding files to the watch queue:
No LADSPA plugins were found!

Check your LADSPA_PATH environment variable.
on_mnuHistory_toggled called with self.GtkCheckMenuItem
on_nbFiles_switch_page
on_nbFiles_switch_page

Detecting formats, codecs, and filters...
etc...
etc...
/usr/lib/pymodules/python2.7/openshot/classes/sequences.py:781: GtkWarning: gdk_pixbuf_scale_simple: assertion 'dest_width > 0' failed
  new_pixbuf = pixbuf.scale_simple(remaining_pixels, height, gtk.gdk.INTERP_NEAREST)
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openshot/windows/MainGTK.py", line 2508, in on_hsZoom_value_changed
    self.project.Render()
  File "/usr/lib/pymodules/python2.7/openshot/classes/project.py", line 221, in Render
    self.sequences[0].Render()
  File "/usr/lib/pymodules/python2.7/openshot/classes/sequences.py", line 171, in Render
    MyTrack.Render()
  File "/usr/lib/pymodules/python2.7/openshot/classes/track.py", line 94, in Render
    MyClip.Render()				
  File "/usr/lib/pymodules/python2.7/openshot/classes/clip.py", line 287, in Render
    self.RenderClip()
  File "/usr/lib/pymodules/python2.7/openshot/classes/clip.py", line 1163, in RenderClip
    pixbuf_width = pixbuf.get_width()
AttributeError: 'NoneType' object has no attribute 'get_width'

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

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!

Plus d'information sur mes erreurs 2:

fran@earendil-light:~$ python
Python 2.7.8 (default, Oct 20 2014, 15:05:19) 
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mlt
>>> mlt.Factory().init()
No LADSPA plugins were found!

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

Plus d'information sur mes erreurs 3:

fran@earendil-light:~/Documents/Permanent$ sudo python debug.py

-----------------------------------------------------------
OpenShot Debug File 0.0.2 - 2015-04-14 11:39:02.444250
-----------------------------------------------------------
This file contains a list of installed packages related to OpenShot,
locations of files, and a list of shared libraries used by python-mlt.


-----------------------------------------------------------
Distribution Version Info
-----------------------------------------------------------
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.10
Release:	14.10
Codename:	utopic



-----------------------------------------------------------
List of Installed Packages
-----------------------------------------------------------
dpkg-query: aucun paquet ne correspond à openshot-mlt
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom            Version       Architecture Description
+++-==============-=============-============-======================================
un  libmlt1        <aucune>      <aucune>     (aucune description n'est disponible)
un  libmlt2        <aucune>      <aucune>     (aucune description n'est disponible)
ii  openshot       1.4.3-1.1     all          Create and edit videos and movies
ii  python-mlt     0.9.2-1build1 amd64        multimedia framework (python bindings)
un  python-mlt2    <aucune>      <aucune>     (aucune description n'est disponible)



-----------------------------------------------------------
Python Path (i.e. sys.path)
-----------------------------------------------------------
/home/fran/Documents/Permanent
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PILcompat
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.7
/usr/lib/python2.7/dist-packages/ubuntu-sso-client
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode


-----------------------------------------------------------
WARNING: /usr/lib/pymodules/python2.6 missing from Python Path
-----------------------------------------------------------
This folder is where the python-mlt bindings are stored.  If this folder
is not in the Python Path, it will not find the 'mlt' module.


-----------------------------------------------------------
Files in /usr/lib/pymodules/python2.6/mlt (used by python-mlt)
-----------------------------------------------------------
find: "/usr/lib/pymodules/python2.6/mlt": Aucun fichier ou dossier de ce type



-----------------------------------------------------------
Attempt to import mlt (using Python)
-----------------------------------------------------------
Successfully imported mlt library!


-----------------------------------------------------------
Find 'openshot' files & folders
-----------------------------------------------------------
/usr/lib/pymodules/python2.7/openshot
/usr/lib/mime/packages/openshot
/usr/share/omf/openshot
/usr/share/pyshared/openshot
/usr/share/doc/openshot
/usr/share/gnome/help/openshot
/usr/bin/openshot



-----------------------------------------------------------
Find 'mlt' files & folders
-----------------------------------------------------------
/usr/lib/x86_64-linux-gnu/mlt
/usr/share/mlt



-----------------------------------------------------------
Find libmlt*.so*
-----------------------------------------------------------
/usr/lib/x86_64-linux-gnu/libmlt.so.0.9.2
/usr/lib/x86_64-linux-gnu/libmlt.so.6
/usr/lib/x86_64-linux-gnu/libmlt++.so.0.9.2
/usr/lib/x86_64-linux-gnu/mlt/libmltsox.so
/usr/lib/x86_64-linux-gnu/mlt/libmltlinsys.so
/usr/lib/x86_64-linux-gnu/mlt/libmltxine.so
/usr/lib/x86_64-linux-gnu/mlt/libmltgtk2.so
/usr/lib/x86_64-linux-gnu/mlt/libmltavformat.so
/usr/lib/x86_64-linux-gnu/mlt/libmltplusgpl.so
/usr/lib/x86_64-linux-gnu/mlt/libmltjackrack.so
/usr/lib/x86_64-linux-gnu/mlt/libmltfrei0r.so
/usr/lib/x86_64-linux-gnu/mlt/libmltvideostab.so
/usr/lib/x86_64-linux-gnu/mlt/libmltsdl.so
/usr/lib/x86_64-linux-gnu/mlt/libmltkdenlive.so
/usr/lib/x86_64-linux-gnu/mlt/libmltresample.so
/usr/lib/x86_64-linux-gnu/mlt/libmltmotion_est.so
/usr/lib/x86_64-linux-gnu/mlt/libmltnormalize.so
/usr/lib/x86_64-linux-gnu/mlt/libmltoldfilm.so
/usr/lib/x86_64-linux-gnu/mlt/libmltxml.so
/usr/lib/x86_64-linux-gnu/mlt/libmltdecklink.so
/usr/lib/x86_64-linux-gnu/mlt/libmltqt.so
/usr/lib/x86_64-linux-gnu/mlt/libmltvmfx.so
/usr/lib/x86_64-linux-gnu/mlt/libmltcore.so
/usr/lib/x86_64-linux-gnu/mlt/libmltplus.so
/usr/lib/x86_64-linux-gnu/libmlt++.so.3



-----------------------------------------------------------
Locate '_mlt.so', used by python-mlt
-----------------------------------------------------------
/usr/lib/python2.7/dist-packages/_mlt.so



-----------------------------------------------------------
Shared Libraries for /usr/lib/python2.7/dist-packages/_mlt.so
-----------------------------------------------------------
	linux-vdso.so.1 =>  (0x00007ffd3abdf000)
	libmlt++.so.3 => /usr/lib/x86_64-linux-gnu/libmlt++.so.3 (0x00007fe54c609000)
	libmlt.so.6 => /usr/lib/x86_64-linux-gnu/libmlt.so.6 (0x00007fe54c3dc000)
	libpython2.7.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 (0x00007fe54be56000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe54bb47000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe54b841000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe54b629000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe54b265000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe54b061000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe54ae42000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fe54ac29000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fe54aa26000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fe54cab7000)



-----------------------------------------------------------
Debug File 'openshot.debug'
-----------------------------------------------------------
This script has created a file called 'openshot.debug' which
contains all of this output.  If you are having trouble installing
OpenShot, you can attach this file to your bug report.

Dernière modification par francoise_peace (Le 14/04/2015, à 12:46)

Hors ligne

#2 Le 14/04/2015, à 11:43

Braun

Re : Dire à OpenShot de se lancer avec le Python 2.6?

Bonjour,
Si je comprends bien il devrait suffire de rajouter la place actuelle de Python 2.6 dans le path, ce qui me paraît infiniment moins dangereux que de déplacer des objets.
Ceci dit, je ne connais pas les susceptibilités de Python pour estimer les problèmes de compatibilité.

Hors ligne

#3 Le 14/04/2015, à 12:13

francoise_peace

Re : Dire à OpenShot de se lancer avec le Python 2.6?

J'ai trouver des informations sur VirtualEnv et VirtualEnvWrapper mais ce qu'il me faut c'est seulement lancer Openshot avec Python 2.6 sans toucher à Python 2.7 ni au système. C'est pas lancer un script de Python 2.6, c'est lancer un programme de Ubuntu qui s'installe dans le système et pas dans un sous-dossier et qui pointe partout dans le système sans changer le système.
C'est dommage que la rétro-compatibilité n'existe pas sur Ubuntu, OpenShot fonctionne, mais pas sur plus de 2 jours, et je n'ai pas changé mes vidéos de place ni celles d'où sont issues les pistes.
Je n'essaierai pas d'installer une machine virtuelle avec une version antérieure de Ubuntu car le montage vidéo consomme beaucoup de RAM: swapiness à 6 pour que ça ne plante pas. Donc si je lui donne un nouvel environnement avec moins de RAM, je ne pourrais pas utiliser OpenShot.

Dernière modification par francoise_peace (Le 14/04/2015, à 12:37)

Hors ligne