Recherche avancée

Médias (1)

Mot : - Tags -/stallman

Autres articles (63)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (9009)

  • How do i get access to subproccess.py ?

    6 décembre 2023, par Kronik71

    So, my bot for some reason wants to access a folder in \WindowsApps\PythonSoftwareFoundation.Python.bunch_of_numbers\Lib called subproccess.py but it always gives the error : PermissionError: [WinError 5] Access is denied. I think it has to do with ffmpeg.

    


    Here's the full traceback (kinda long) :

    


    Traceback (most recent call last):
  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\interactions\client\client.py", line 1900, in __dispatch_interaction
    response = await callback
  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\interactions\client\client.py", line 1771, in _run_slash_command
    return await command(ctx, **ctx.kwargs)
  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\interactions\models\internal\command.py", line 132, in __call__
    await self.call_callback(self.callback, context)
  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\interactions\models\internal\application_commands.py", line 802, in call_callback
    return await self.call_with_binding(callback, ctx)
  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\interactions\models\internal\callback.py", line 43, in call_with_binding
    return await callback(*args, **kwargs)
  File "C:\Users\myuser\OneDrive\Desktop\button.py", line 38, in press
    voice_client.play(discord.FFmpegPCMAudio(executable=r"C:\Users\myuser\OneDrive\Desktop\ffmpeg-6.1-essentials_build\bin", source=audiosource))
  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.Bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\discord\player.py", line 290, in __init__
    super().__init__(source, executable=executable, args=args, **subprocess_kwargs)
  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\discord\player.py", line 166, in __init__
    self._process = self._spawn_process(args, **kwargs)
  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\discord\player.py", line 180, in _spawn_process
    process = subprocess.Popen(args, creationflags=CREATE_NO_WINDOW, **subprocess_kwargs)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.bunch_of_numbers\lib\subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.bunch_of_numbers\lib\subprocess.py", line 1456, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] Access is denied


    


    heres my code :

    


    import interactions
import discord
from discord import FFmpegPCMAudio
import tracemalloc

ffmpegexec = r"C:\Users\myuser\OneDrive\Desktop\ffmpeg-6.1-essentials_build\bin\ffmpeg.exe"

audiosource = r"C:\Users\myuser\Downloads\seatbelt-online-audio-converter.mp3"

source = discord.FFmpegPCMAudio(audiosource)

token = "my_token"

bot = interactions.Client(token=token)

tracemalloc.start()

@interactions.slash_command(
    name="joinvc",
    description="starts the game"
)

async def joinvc(ctx: interactions.ComponentContext):
    await ctx.send("Joining vc. Please make sure you are currently in a vc!")
    vc = ctx.author.voice.channel
    await vc.connect()

@interactions.slash_command(
    name="press",
    description="Press the button"
)

async def press(ctx: interactions.ComponentContext):
    await ctx.send(f"{ctx.author.mention} has pressed the button")
    vc = ctx.author.voice.channel
    voice_client = await vc.connect()  # Connect to the voice channel

voice_client.play(discord.FFmpegPCMAudio(executable=r"C:\Users\myuser\OneDrive\Desktop\ffmpeg-6.1-essentials_build\bin", source=audiosource))


bot.start(token)


    


  • avcodec/sanm : codec37 : reimplement comp4

    11 mars, par Manuel Lauss
    avcodec/sanm : codec37 : reimplement comp4
    

    Compression 4 code 0 means copy from delta buffer without mv,
    AND start of a skip run. This gets rid of the extra case and column
    index manipulation and implements this as it is implemented in the
    original game exe, i.e. as a special case for after mv copy.

    Signed-off-by : Manuel Lauss <manuel.lauss@gmail.com>

    • [DH] libavcodec/sanm.c
  • How do i gain access to subproccess.py ?

    15 décembre 2023, par Kronik71

    So, my bot for some reason wants to access a folder in \WindowsApps\PythonSoftwareFoundation.Python.bunch_of_numbers\Lib called subproccess.py but it always gives the error : PermissionError: [WinError 5] Access is denied. I think it has to do with ffmpeg.

    &#xA;

    Here's the full traceback (kinda long) :

    &#xA;

    Traceback (most recent call last):&#xA;  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\interactions\client\client.py", line 1900, in __dispatch_interaction&#xA;    response = await callback&#xA;  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\interactions\client\client.py", line 1771, in _run_slash_command&#xA;    return await command(ctx, **ctx.kwargs)&#xA;  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\interactions\models\internal\command.py", line 132, in __call__&#xA;    await self.call_callback(self.callback, context)&#xA;  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\interactions\models\internal\application_commands.py", line 802, in call_callback&#xA;    return await self.call_with_binding(callback, ctx)&#xA;  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\interactions\models\internal\callback.py", line 43, in call_with_binding&#xA;    return await callback(*args, **kwargs)&#xA;  File "C:\Users\myuser\OneDrive\Desktop\button.py", line 38, in press&#xA;    voice_client.play(discord.FFmpegPCMAudio(executable=r"C:\Users\myuser\OneDrive\Desktop\ffmpeg-6.1-essentials_build\bin", source=audiosource))&#xA;  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.Bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\discord\player.py", line 290, in __init__&#xA;    super().__init__(source, executable=executable, args=args, **subprocess_kwargs)&#xA;  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\discord\player.py", line 166, in __init__&#xA;    self._process = self._spawn_process(args, **kwargs)&#xA;  File "C:\Users\myuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.bunch_of_numbers\LocalCache\local-packages\Python310\site-packages\discord\player.py", line 180, in _spawn_process&#xA;    process = subprocess.Popen(args, creationflags=CREATE_NO_WINDOW, **subprocess_kwargs)&#xA;  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.bunch_of_numbers\lib\subprocess.py", line 971, in __init__&#xA;    self._execute_child(args, executable, preexec_fn, close_fds,&#xA;  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.bunch_of_numbers\lib\subprocess.py", line 1456, in _execute_child&#xA;    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,&#xA;PermissionError: [WinError 5] Access is denied&#xA;

    &#xA;

    heres my code :

    &#xA;

    import interactions&#xA;import discord&#xA;from discord import FFmpegPCMAudio&#xA;import tracemalloc&#xA;&#xA;ffmpegexec = r"C:\Users\myuser\OneDrive\Desktop\ffmpeg-6.1-essentials_build\bin\ffmpeg.exe"&#xA;&#xA;audiosource = r"C:\Users\myuser\Downloads\seatbelt-online-audio-converter.mp3"&#xA;&#xA;source = discord.FFmpegPCMAudio(audiosource)&#xA;&#xA;token = "my_token"&#xA;&#xA;bot = interactions.Client(token=token)&#xA;&#xA;tracemalloc.start()&#xA;&#xA;@interactions.slash_command(&#xA;    name="joinvc",&#xA;    description="starts the game"&#xA;)&#xA;&#xA;async def joinvc(ctx: interactions.ComponentContext):&#xA;    await ctx.send("Joining vc. Please make sure you are currently in a vc!")&#xA;    vc = ctx.author.voice.channel&#xA;    await vc.connect()&#xA;&#xA;@interactions.slash_command(&#xA;    name="press",&#xA;    description="Press the button"&#xA;)&#xA;&#xA;async def press(ctx: interactions.ComponentContext):&#xA;    await ctx.send(f"{ctx.author.mention} has pressed the button")&#xA;    vc = ctx.author.voice.channel&#xA;    voice_client = await vc.connect()  # Connect to the voice channel&#xA;&#xA;voice_client.play(discord.FFmpegPCMAudio(executable=r"C:\Users\myuser\OneDrive\Desktop\ffmpeg-6.1-essentials_build\bin", source=audiosource))&#xA;&#xA;&#xA;bot.start(token)&#xA;

    &#xA;

    All of my code is above. I'm not exactly good at writing python, might just be something I'm misunderstanding. I just want it to play a noise in a discord voice chat when the /press command is used.

    &#xA;