
Recherche avancée
Autres articles (78)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)
Sur d’autres sites (3821)
-
subprocess.call can't find file/shutil.which failed in pycharm
4 décembre 2022, par Percy YangI am trying to transform a mp3 to a wav file in pycharm using subprocess


import subprocess
subprocess.call(['ffmpeg', '-i','test.mp3','test.wav'])



It returns error of not finding file, so I change the
'ffmpeg'
to its path on my pc and it work.

The problem is that I am making an app and others might install ffpmeg on other's location (since it is download with zip and can be unzip at any place), but I don't know how to get its full path.


I tried using
os
module

import os
print(os.path('ffmpeg.exe'))



but it seems like it is not able to get the path of exe


Traceback (most recent call last):
 File "C:\Users\Percy\PycharmProjects\APP\test3.py", line 8, in <module>
 print(os.path('ffmpeg.exe'))
TypeError: 'module' object is not callable
</module>


I also tried
shutil
module

import shutil
print(shutil.which('ffmpeg'))
print(shutil.which('ffmpeg.exe'))



but it returns 2 None (prob wrong cause I am 100% sure I have installed ffmpeg)


None
None



I want to ask if there is any way to get the full path of ffmpeg in pycharm or any method that I can make ffmpeg install in designated path with the app when it is downloaded by users


-
Redefinition of 'Picture'. isysroot is including Quickdraw.h into the build. Previous definition
1er février 2019, par bruceTrying to build ffmpeg in Xcode 10.1. Getting
Redefinition of ’Picture’
Picture is defined in
mpegpicture.h
and in/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/Headers/Quickdraw.h
.I think the problem is
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
.How can I tell Xcode not to use the SDK frameworks ?
-
avcodec/vvc_mvs : remove an unnecessary AV_ZERO64() call
24 janvier 2024, par James Almer