
Recherche avancée
Autres articles (52)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (8980)
-
Anomalie #4295 (Nouveau) : Bug sur Boucle DATA et fusion sur un #ARRAY
21 février 2019Bonjour,
J’ai fait une boucle complexe pour lister par année, et mois les articles et les brèves d’un site : https://zone.spip.org/trac/spip-zone/changeset/113991
Dans mon jeu de test, elle génère ce tableau :
- <span class="CodeRay"><span class="predefined">Array</span>
- (
- [<span class="integer">0</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">12</span>
- [lemois] => décembre
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">12</span>-<span class="integer">18</span> <span class="integer">23</span>:<span class="integer">05</span>:<span class="integer">51</span>
- [url] => <span class="constant">Test</span>-modele-exergue.html
- [descriptif] =>
- [titre] => <span class="constant">Test</span> modèle exergue
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">1</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">10</span>-<span class="integer">27</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">00</span>
- [url] => <span class="constant">Derniers</span>-articles.html
- [descriptif] =>
- [titre] => <span class="constant">Derniers</span> articles
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">2</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">09</span>
- [lemois] => septembre
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">09</span>-<span class="integer">06</span> <span class="integer">20</span>:<span class="integer">20</span>:<span class="integer">42</span>
- [url] => <span class="constant">Test</span>-<span class="constant">Form</span>-<span class="constant">IP</span>.html
- [descriptif] =>
- <span class="constant">Tentez</span> de gagner par tirage au <span class="predefined">sort</span> le remboursement de votre achat [<span class="integer">1</span>]
- [titre] => <span class="constant">Test</span> <span class="constant">Form</span> <span class="constant">IP</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">3</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">07</span>
- [lemois] => juillet
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">07</span>-<span class="integer">29</span> <span class="integer">14</span>:<span class="integer">45</span>:<span class="integer">00</span>
- [url] => <span class="constant">Article</span>-avec-logo.html
- [descriptif] =>
- [titre] => <span class="constant">Article</span> avec logo
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">4</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">05</span>
- [lemois] => mai
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">05</span>-<span class="integer">22</span> <span class="integer">17</span>:<span class="integer">29</span>:<span class="integer">43</span>
- [url] => <span class="constant">Long</span>.html
- [descriptif] =>
- [titre] => <span class="constant">Long</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">5</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">05</span>
- [lemois] => mai
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">05</span>-<span class="integer">22</span> <span class="integer">17</span>:<span class="integer">03</span>:<span class="integer">50</span>
- [url] => <span class="constant">Repetition</span>-avec-debut-dans-le-passe.html
- [descriptif] =>
- [titre] => <span class="constant">Répétition</span> avec début dans le passé
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">6</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">05</span>
- [lemois] => mai
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">05</span>-<span class="integer">02</span> <span class="integer">07</span>:<span class="integer">42</span>:<span class="integer">45</span>
- [url] => <span class="constant">Test</span>-previsualisation-etendue.html
- [descriptif] =>
- <span class="constant">Je</span> suis un testeur
- [titre] => <span class="constant">Test</span> prévisualisation étendue
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">7</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">04</span>
- [lemois] => avril
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">04</span>-<span class="integer">01</span> <span class="integer">04</span>:<span class="integer">10</span>:<span class="integer">12</span>
- [url] => <span class="constant">Test</span>-forme-colorees.html
- [descriptif] =>
- <span class="constant">Test</span> qui va bien
- [titre] => <span class="constant">Test</span> forme colorées
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">8</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">12</span>
- [lemois] => décembre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">12</span>-<span class="integer">06</span> <span class="integer">15</span>:<span class="integer">00</span>:<span class="integer">00</span>
- [url] => <span class="constant">Test</span>-article-sur-embargo.html
- [descriptif] =>
- [titre] => <span class="constant">Test</span> article sur embargo
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">9</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">11</span>
- [lemois] => novembre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">11</span>-<span class="integer">24</span> <span class="integer">09</span>:<span class="integer">48</span>:<span class="integer">01</span>
- [url] => <span class="constant">Intentions</span>-de-prieres.html
- [descriptif] =>
- <span class="constant">Test</span> des <span class="constant">IP</span>
- [titre] => <span class="constant">Intentions</span> de prières
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">10</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">26</span> <span class="integer">23</span>:<span class="integer">06</span>:<span class="integer">31</span>
- [url] => <span class="constant">Test</span>-<span class="constant">Newsletter</span>.html
- [descriptif] =>
- <span class="constant">Un</span> autre descriptif
- [titre] => <span class="constant">Test</span> <span class="constant">Newsletter</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">11</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Historique</span>-des-versions-de-<span class="constant">SPIP</span>.html
- [descriptif] =>
- [titre] => <span class="constant">Historique</span> des versions de <span class="constant">SPIP</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">12</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Evenement</span>-exceptionnel.html
- [descriptif] =>
- [titre] => Événement exceptionnel
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">13</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Installation</span>-du-site.html
- [descriptif] =>
- [titre] => <span class="constant">Installation</span> du site
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">14</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Demonstration</span>-<span class="constant">Agenda</span>.html
- [descriptif] =>
- [titre] => <span class="constant">Démonstration</span> <span class="constant">Agenda</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">15</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Titre</span>-de-la-rubrique.html
- [descriptif] =>
- [titre] => <span class="constant">Titre</span> de la rubrique
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">16</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Logo</span>-de-survol.html
- [descriptif] =>
- [titre] => <span class="constant">Logo</span> de survol
- <span class="constant">Nouveauté</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">17</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Altera</span>-sententia-est.html
- [descriptif] =>
- [titre] => <span class="constant">Altera</span> sententia est
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">18</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Quis</span>-enim.html
- [descriptif] =>
- [titre] => <span class="constant">Quis</span> enim
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">19</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Oportunum</span>-est.html
- [descriptif] =>
- [titre] => <span class="constant">Oportunum</span> est
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">20</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Rogatus</span>-ad-ultimum.html
- [descriptif] =>
- [titre] => <span class="constant">Rogatus</span> ad ultimum
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">21</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Urbibus</span>-decorata.html
- [descriptif] =>
- [titre] => <span class="constant">Urbibus</span> decorata
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">22</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Les</span>-derniers-articles-modifies.html
- [descriptif] =>
- [titre] => <span class="constant">Les</span> derniers articles modifiés
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">23</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Image</span>-logo.html
- [descriptif] =>
- [titre] => <span class="constant">Image</span> = logo
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">24</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Articles</span>-avec-le-<span class="constant">Mot</span>-clef-<span class="constant">ALaUne</span>.html
- [descriptif] =>
- <span class="constant">Ceci</span> est une bulle d’aide !
- [titre] => <span class="constant">Articles</span> avec le <span class="constant">Mot</span> clef : « <span class="constant">ALaUne</span> »
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">25</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Un</span>-sourire-peut-changer-une-vie.html
- [descriptif] =>
- [titre] => <span class="constant">Un</span> sourire peut changer une vie
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">26</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Le</span>-nombre-d-article-affiche-est-administrable.html
- [descriptif] =>
- [titre] => <span class="constant">Le</span> nombre d’article affiché est administrable
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">27</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Iamque</span>-non-umbratis.html
- [descriptif] =>
- [titre] => <span class="constant">Iamque</span> non umbratis (pdq2n)
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">28</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">01</span>
- [url] => <span class="constant">Mensarum</span>-enim.html
- [descriptif] =>
- [titre] => <span class="constant">Mensarum</span> enim
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">29</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">01</span>
- [url] => <span class="constant">Ideo</span>-urbs-venerabilis.html
- [descriptif] =>
- [titre] => <span class="constant">Ideo</span> urbs venerabilis
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">30</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">01</span>
- [url] => <span class="constant">Et</span>-prima-post-<span class="constant">Osdroenam</span>-quam.html
- [descriptif] =>
- [titre] => <span class="constant">Et</span> prima post <span class="constant">Osdroenam</span> quam
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">31</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2019</span>
- [month] => <span class="integer">02</span>
- [lemois] => février
- [<span class="predefined">date</span>] => <span class="integer">2019</span>-<span class="integer">02</span>-<span class="integer">21</span> <span class="integer">12</span>:<span class="integer">46</span>:<span class="integer">24</span>
- [url] => +<span class="constant">Test</span>-d-une-breve+.html
- [descriptif] =>
- [titre] => <span class="constant">Test</span> d’une brève
- [<span class="keyword">class</span>] => iconbreves
- )
- )
- </span>
Mais le résultat n’affiche rien à partir de l’année 2015.
Si je modifie les boucles pour ne générer dans l’array que l’année 2015, celle-ci est affichée correctement.
Si j’enlève des critères fusion lemois, l’année 2015 est parcourue.Testé en SPIP 3.2.3 SVN [24229]
-
Trolls in trouble
6 juin 2013, par Mans — Law and libertyLife as a patent troll is hopefully set to get more difficult. In a memo describing patent trolls as a “drain on the American economy,” the White House this week outlined a number of steps it is taking to stem this evil tide. Chiming in, the Chief Judge of the Court of Appeals for the Federal Circuit (where patent cases are heard) in a New York Times op-ed laments the toll patent trolling is taking on the industry, and urges judges to use powers already at their disposal to make the practice less attractive. However, while certainly a step in the right direction, these measures all fail to address the more fundamental properties of the patent system allowing trolls to exist in the first place.
System and method for patent trolling
Most patent trolling operations comprise the same basic elements :
- One or more patents with broad claims.
- The patents of (1) acquired by an otherwise non-practising entity (troll).
- The entity of (2) filing numerous lawsuits alleging infringement of the patents of (1).
- The lawsuits of (3) targeting end users or retailers.
- The lawsuits of (3) listing as plaintiffs difficult to trace shell companies.
The recent legislative actions all take aim at the latter entries in this list. In so doing, they will no doubt cripple the trolls, but the trolls will remain alive, ready to resume their wicked ways once a new loophole is found in the system.
To kill a patent troll
As Judge Rader and his co-authors point out in the New York Times, “the problem stems largely from the fact that, [...] trolls have an important strategic advantage over their adversaries : they don’t make anything.” This is the heart of the troll, and this is where the blow should be struck. Our weapon shall be the mightiest judicial sword of all, the Constitution.
The United States Constitution contains (in Article I, Section 8) the foundation for the patent system (emphasis mine) :
The Congress shall have Power [...] To promote the Progress of Science and useful Arts, by securing for limited Times to Authors and Inventors the exclusive Right to their respective Writings and Discoveries.
Patent trolls are typically not inventors. They are merely hoarders of other people’s discarded inventions, and that allowing others to reap the benefits of an inventor’s work would somehow promote progress should be a tough argument. Indeed, it is the dissociation between investment and reward which has allowed the patent trolls to rise and prosper.
In light of the above, the solution to the troll menace is actually strikingly simple : make patents non-transferable.
Having the inventor retain the rights to his or her inventions (works for hire still being recognised), would render the establishment of non-practising entities, which most trolls are, virtually impossible. The original purpose of patents, to protect the investment of inventors, would remain unaffected, if not strengthened, by such a change.
Links
-
Python - why do I get this ffprobe error ?
4 juillet 2022, par gasper101I am on mac and am working on a project in which my program shoud convert a .mp3 file into a .wav file and than get text from that file (basic speech recognition). For converting a .mp3 file into a .wav file I am using ffmpeg library. I have installed both ffmpeg and ffprobe libraryies using pip and than using homebrew so I have them installed in a folder.


This is my code :


import speech_recognition
from pydub import AudioSegment
from os import path


#get text from original voice file------------------------------------------------- 

sound = AudioSegment.from_mp3("/path/to/file.mp3")
sound.export("/output/path/file.wav", format="wav")

file_audio = speech_recognition.AudioFile('/output/path/file.wav')

r = speech_recognition.Recognizer()
with file_audio as source:
 audio_text = r.record(source)

word = r.recognize_google(audio_text)



And this is the error i get :
FileNotFoundError : [Errno 2] No such file or directory : 'ffprobe'


Full error :
Warning (from warnings module) :
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/utils.py", line 170
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
RuntimeWarning : Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work


Warning (from warnings module) :
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/utils.py", line 198
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)


RuntimeWarning : Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
Traceback (most recent call last) :
File "/Users/marcus/Downloads/pronaunciation_checker/pronaunciation_check.py", line 12, in 
sound = AudioSegment.from_mp3("/Users/marcus/Desktop/think.mp3")
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/audio_segment.py", line 796, in from_mp3
return cls.from_file(file, 'mp3', parameters=parameters)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/audio_segment.py", line 728, in from_file
info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/utils.py", line 274, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError : [Errno 2] No such file or directory : 'ffprobe'