[SOLVED] Python3 script error

Hello everyone

Not speaking English, I use an online translator. I hope it won’t be too weird.

Lately, I can’t configure Kdenlive.
I have a form showing
`Error while running python3 script :
/usr/share/kdenlive/scripts/checkpackages.py

Details
`

Note that a click on “> detail” or on the bonton OK blocks the machine
Screenshot_20230612_143520

The rest works.

Any idea?
Thank you

My PC: CM Asus B650, AMD Ryzen 7-7700, AMD Radeon 5500XT, 32GB RAM
Updated Manjaro KDE Linux Kernel 6.2.16-2

Can you run the script directly from the terminal?

Thank you, here is what it gives in console

/usr/share/kdenlive/scripts/checkpackages.py : commande introuvable

and when I run Kdenlive and try to configure it

 kdenlive                                                                                       1 ✘  3s  
Could not detect package type, probably default? App dir is "/usr/bin"
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltrubberband.so
  (librubberband.so.2: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltmovit.so
  (libmovit.so.8: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltsdl.so
  (libSDL-1.2.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltsox.so
  (libsox.so.3: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltrtaudio.so
  (librtaudio.so.6: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
profilePath from KdenliveSetting::mltPath:  "/usr/share/mlt-7/profiles"
meltPath from KdenliveSetting::rendererPath:  "/usr/bin/melt-7"
Empty metadata for  "audiochannels"
Empty metadata for  "audioconvert"
Empty metadata for  "imageconvert"
Empty metadata for  "telecide"
plugin not available: "avfilter.acompressor"
plugin not available: "avfilter.aecho"
plugin not available: "avfilter.agate"
plugin not available: "avfilter.atadenoise"
plugin not available: "avfilter.bwdif"
plugin not available: "avfilter.deblock"
plugin not available: "avfilter.dedot"
plugin not available: "avfilter.deflate"
plugin not available: "avfilter.derain"
plugin not available: "avfilter.doubleweave"
plugin not available: "avfilter.field"
plugin not available: "avfilter.framestep"
plugin not available: "avfilter.fspp"
plugin not available: "avfilter.graphmonitor"
plugin not available: "avfilter.hqdn3d"
plugin not available: "avfilter.inflate"
plugin not available: "avfilter.lagfun"
plugin not available: "avfilter.loudnorm"
plugin not available: "avfilter.mcdeint"
plugin not available: "avfilter.random"
plugin not available: "avfilter.removegrain"
plugin not available: "avfilter.separatefields"
plugin not available: "avfilter.shuffleplanes"
plugin not available: "avfilter.sofalizer"
plugin not available: "avfilter.sr"
plugin not available: "avfilter.tmix"
plugin not available: "avfilter.w3fdif"
plugin not available: "avfilter.weave"
plugin not available: "avfilter.yadif"
plugin not available: "frei0r.baltan"
plugin not available: "frei0r.bgsubtract0r"
plugin not available: "frei0r.delay0r"
plugin not available: "frei0r.delaygrab"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.tehRoxx0r"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "movit.blur"
plugin not available: "movit.sharpen"
plugin not available: "movit.diffusion"
plugin not available: "movit.flip"
plugin not available: "movit.glow"
plugin not available: "movit.lift_gamma_gain"
plugin not available: "movit.mirror"
plugin not available: "movit.opacity"
plugin not available: "movit.rect"
plugin not available: "movit.saturation"
plugin not available: "movit.unsharp_mask"
plugin not available: "movit.vignette"
plugin not available: "movit.white_balance"
plugin not available: "rbpitch"
plugin not available: "rbpitch"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "timewarp"
plugin not available: "region"
=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
:::: NOT FOUND DOCUMENT GUIDES !!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!
QQmlEngine::setContextForObject(): Object already has a QQmlContext
qrc:/qml/timeline.qml:497: ReferenceError: proxy is not defined
qrc:/qml/timeline.qml:478: ReferenceError: proxy is not defined
==== NO PREVIOUS TIMELINE
==== CONNECT NEW TIMELINE, MODEL: 0
::::::::::: connecting timeline:  QUuid("{1842ddcc-71e4-4a98-91d0-1a0cde8cbc09}") , DUR:  0
root context get sub model new function
HHHHHHHHHHHH
INVALID BIN PLAYLIST...
=== OPENING FILE WITH TRACKS:  7
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
=== GOT THUMB FOR:  -1 x -1
===== ACTIVATING DOCUMENT:  QUuid("{1842ddcc-71e4-4a98-91d0-1a0cde8cbc09}") 
::::::::::::::::::::::
detected format: Motion-JPEG: MJPG
Size: 1920x1080: 1/30, 
Size: 1280x720: 1/30, 
Size: 640x480: 1/30, 
Size: 640x360: 1/30, 
detected format: YUYV 4:2:2: YUYV
Size: 1280x720: 1/10, 
Size: 640x480: 1/30, 
Size: 640x360: 1/30, 
detected format: H.264: H264
Size: 1920x1080: 1/30, 
Size: 1280x720: 1/30, 
Size: 640x480: 1/30, 
Size: 640x360: 1/30, 
=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER
::::: WARNING ERRROR EXIT STATUS:  1
::::: WARNING ERRROR EXIT STATUS:  1

The script cannot be run by itself as it is a Python script and not a bash script :wink:

You need to pass it to the Python interpreter with python /usr/share/kdenlive/scripts/checkpackages.py or python3 /usr/share/kdenlive/scripts/checkpackages.py depending on your distro

Thanks

Here is the result:

python /usr/share/kdenlive/scripts/checkpackages.py                                                     ✔ 
Traceback (most recent call last):
  File "/usr/share/kdenlive/scripts/checkpackages.py", line 7, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

If I understand the message sent back, I’m missing a few things (I’m a user and don’t know much about programming).

I went through AUR for the installation and tried Appimage, same problem.

hi

pkg_resources is in python-setuptools (arch) package

Thank you very much, after installing python-setuptools everything works normally again.

1 Like