Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (62)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (7556)

  • While working with ffmpeg : Created function in C file and after compilation with NDK accessing from android activity, getting signal 11 error

    30 mai 2016, par Dayanand Lande

    After successfully fire command ndk-build I got .so file in my libs folder, then after some changes in gradle file I got native_libs.xml .idea/libraries folder.

    Now I am accessing c function from my java code/ android activity. I am getting signal 11 error

    My code is

    C file

    #include
    #include <android></android>log.h>
    #include

    #include "libavcodec/avcodec.h"
    #include "libavformat/avformat.h"

    #define LOG_TAG "mylib"
    #define LOGI(...)  __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
    #define LOGE(...)  __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)


    //JNIEXPORT jint JNICALL Java_com_xxx_xxx_activities_SplashActivity_logFileInfo(JNIEnv * env, jobject this, jstring filename);

    jint Java_com_xxx_xxx_activities_TutorialsActivity_logFileInfo(JNIEnv * env, jobject this, jstring filename)
    {
       av_register_all();

       AVFormatContext *pFormatCtx;
       const jbyte *str;
       str = (*env)->GetStringUTFChars(env, filename, NULL);

       if(avformat_open_input(&amp;pFormatCtx, str, NULL, NULL)!=0)
       {
           LOGE("Can't open file '%s'\n", str);
           return 1;
       }
       else
       {
           LOGI("File was opened\n");
           LOGI("File '%s', Codec %s",
               pFormatCtx->filename,
               pFormatCtx->iformat->name
           );
       }
       return 0;
    }

    Loading and try to access method in java code is

    private static native int logFileInfo(String filename);


       static {
           System.loadLibrary("framegrabber");
       }

    In OnCreate of activity

    logFileInfo(file.getAbsolutePath());

    Finally error at point logFileInfo(file.getAbsolutePath()); is

    A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x106e in tid 8905 (Thread-20972)

    Please replay if you have any solution, Thanking in advance.

  • AttributeError : 'FFmpegPCMAudio' object has no attribute '_process' but ffmpeg.exe is installed in the working directory

    2 janvier 2024, par Iaon
    @bot.slash_command(name="say", description="Convert text to speech", default_permissions=False)&#xA;@commands.check(check_role)&#xA;async def say(ctx, lang: Option(str, "Choose a language", autocomplete=showlangs), text: Option(str, "Enter text to convert to speech")):&#xA;    global temp&#xA;    await ctx.defer()&#xA;    config = configparser.ConfigParser()&#xA;    author = ctx.author.id&#xA;    authorname = ctx.author.name&#xA;    authornick = ctx.author.display_name&#xA;    lang = lang.lower()&#xA;    texta = text.lower()&#xA;    if not lang in lang_list:&#xA;        config.read(os.path.join(configs, str(ctx.guild.id)), encoding=&#x27;utf-8&#x27;)&#xA;        lang = config[&#x27;DEFAULT&#x27;][&#x27;defvoice&#x27;]&#xA;    if "gg" in texta and "it" in lang:&#xA;        texta = re.sub(r"\bgg\b", "g g", texta)&#xA;    texta = "".join(texta)&#xA;    user = re.findall(r"&lt;@!?(\d&#x2B;)>", texta)&#xA;    if user:&#xA;        for x in user:&#xA;            try:&#xA;                u = await bot.fetch_user(int(x))&#xA;            except:&#xA;                texta = re.sub(r"&lt;@!?({})>".format(x), "Invalid User", texta)&#xA;                continue&#xA;            texta = re.sub(r"&lt;@!?({})>".format(x), u.name, texta)&#xA;                &#xA;    chann = re.findall(r"&lt;#(\d&#x2B;)>", texta)&#xA;    if chann:&#xA;        for x in chann:&#xA;            try:&#xA;                c = await bot.fetch_channel(int(x))&#xA;            except:&#xA;                texta = re.sub(r"&lt;#({})>".format(x), "Invalid Channel", texta)&#xA;                continue&#xA;            texta = re.sub(r"&lt;#({})>".format(x), c.name, texta)&#xA;    role = re.findall(r"&lt;@&amp;(\d&#x2B;)>", texta)&#xA;    if role:&#xA;        for x in role:&#xA;            try:&#xA;                r = ctx.guild.get_role(int(x))&#xA;            except:&#xA;                texta = re.sub(r"&lt;@&amp;({})>".format(x), "Invalid Role", texta)&#xA;                continue&#xA;            texta = re.sub(r"&lt;@&amp;({})>".format(x), r.name, texta)&#xA;    texta = re.sub(r"&lt;\/(\w&#x2B;):(\d&#x2B;)>", r"\1", texta)&#xA;    texta = re.sub(r"", r"\1", texta)&#xA;    texta = re.sub(r"&lt;:(\w&#x2B;):(\d&#x2B;)>", r"\1", texta)&#xA;    time1 = re.findall(r"", texta)&#xA;    if time1:&#xA;        for x in time1:&#xA;            t = datetime.datetime.fromtimestamp(int(x))&#xA;            texta = re.sub(r"".format(x), t.strftime("%A %d %B %Y, %H:%M:%S"), texta)&#xA;    time2 = re.findall(r"", texta)&#xA;    if time2:&#xA;        for x in time2:&#xA;            t = datetime.datetime.fromtimestamp(int(x[0]))&#xA;            texta = re.sub(r"".format(x[0], x[1]), t.strftime("%A %d %B %Y, %H:%M:%S"), texta)&#xA;    users = []&#xA;    if os.path.isfile(os.path.join(temp, str(ctx.guild.id), ".users")):&#xA;        with open(os.path.join(temp, str(ctx.guild.id), ".users"), "rb") as f:&#xA;            users = pickle.load(f)&#xA;        if not author in users:&#xA;            users.append(author)&#xA;            with open(os.path.join(temp, str(ctx.guild.id), ".users"), "wb") as f:&#xA;                pickle.dump(users, f)&#xA;        if len(users) > 1:&#xA;            config.read(os.path.join(configs, str(ctx.guild.id)), encoding=&#x27;utf-8&#x27;)&#xA;            if config[&#x27;DEFAULT&#x27;][&#x27;multiuser&#x27;] == "True":&#xA;                if config[&#x27;DEFAULT&#x27;][&#x27;usenicknames&#x27;] == "True":&#xA;                    texta = f"{authornick}: {texta}"&#xA;                else:&#xA;                    texta = f"{authorname}: {texta}"&#xA;    else:&#xA;        users.append(author)&#xA;        with open(os.path.join(temp, str(ctx.guild.id), ".users"), "wb") as f:&#xA;            pickle.dump(users, f)&#xA;    tts = gTTS(texta, lang=lang)&#xA;    if os.name == &#x27;nt&#x27;:&#xA;        source = f"{temp}\{ctx.guild.id}\{ran()}.mp3"&#xA;    else:&#xA;        source = f"{temp}/{ctx.guild.id}/{ran()}.mp3"&#xA;    try:&#xA;        tts.save(source)&#xA;    except gTTSError:&#xA;        code = generate_random_code()&#xA;        e = traceback.format_exc()&#xA;        print(e &#x2B; "Error Code: " &#x2B; code)&#xA;        embed = discord.Embed(title=eval("f" &#x2B; get_guild_language(ctx, &#x27;errtitle&#x27;)), description=eval("f" &#x2B; get_guild_language(ctx, &#x27;unexpectederror&#x27;)), color=0xFF0000)&#xA;        await ctx.respond(embed=embed, delete_after=5)&#xA;        return&#xA;    if await preplay(ctx, source):&#xA;        embed=discord.Embed(title=eval("f" &#x2B; get_guild_language(ctx, &#x27;done&#x27;)), description=eval("f" &#x2B; get_guild_language(ctx, &#x27;saylangmess&#x27;)), color=0x1eff00)&#xA;        await ctx.respond(embed=embed, allowed_mentions=discord.AllowedMentions(replied_user=False))&#xA;&#xA;async def hidsay(ctx, lang, text):&#xA;    global temp&#xA;    await ctx.defer()&#xA;    config = configparser.ConfigParser()&#xA;    author = ctx.author.id&#xA;    authorname = ctx.author.name&#xA;    authornick = ctx.author.display_name&#xA;    lang = lang.lower()&#xA;    texta = text.lower()&#xA;    if not lang in lang_list:&#xA;        config.read(os.path.join(configs, str(ctx.guild.id)), encoding=&#x27;utf-8&#x27;)&#xA;        lang = config[&#x27;DEFAULT&#x27;][&#x27;defvoice&#x27;]&#xA;    if "gg" in texta and "it" in lang:&#xA;        texta = re.sub(r"\bgg\b", "g g", texta)&#xA;    texta = "".join(texta)&#xA;    if texta == "" or texta.isspace():&#xA;        embed = discord.Embed(title=eval("f" &#x2B; get_guild_language(ctx, &#x27;errtitle&#x27;)), description=eval("f" &#x2B; get_guild_language(ctx, &#x27;errnoarg&#x27;)), color=0xFF0000)&#xA;        await ctx.respond(embed=embed, delete_after=5)&#xA;        return&#xA;    user = re.findall(r"&lt;@!?(\d&#x2B;)>", texta)&#xA;    if user:&#xA;        for x in user:&#xA;            try:&#xA;                u = await bot.fetch_user(int(x))&#xA;            except:&#xA;                texta = re.sub(r"&lt;@!?({})>".format(x), "Invalid User", texta)&#xA;                continue&#xA;            texta = re.sub(r"&lt;@!?({})>".format(x), u.name, texta)&#xA;                &#xA;    chann = re.findall(r"&lt;#(\d&#x2B;)>", texta)&#xA;    if chann:&#xA;        for x in chann:&#xA;            try:&#xA;                c = await bot.fetch_channel(int(x))&#xA;            except:&#xA;                texta = re.sub(r"&lt;#({})>".format(x), "Invalid Channel", texta)&#xA;                continue&#xA;            texta = re.sub(r"&lt;#({})>".format(x), c.name, texta)&#xA;    role = re.findall(r"&lt;@&amp;(\d&#x2B;)>", texta)&#xA;    if role:&#xA;        for x in role:&#xA;            try:&#xA;             r = ctx.guild.get_role(int(x))&#xA;            except:&#xA;                texta = re.sub(r"&lt;@&amp;({})>".format(x), "Invalid Role", texta)&#xA;                continue&#xA;            texta = re.sub(r"&lt;@&amp;({})>".format(x), r.name, texta)&#xA;    texta = re.sub(r"&lt;\/(\w&#x2B;):(\d&#x2B;)>", r"\1", texta)&#xA;    texta = re.sub(r"", r"\1", texta)&#xA;    texta = re.sub(r"&lt;:(\w&#x2B;):(\d&#x2B;)>", r"\1", texta)&#xA;    time1 = re.findall(r"", texta)&#xA;    if time1:&#xA;        for x in time1:&#xA;            t = datetime.datetime.fromtimestamp(int(x))&#xA;            texta = re.sub(r"".format(x), t.strftime("%A %d %B %Y, %H:%M:%S"), texta)&#xA;    time2 = re.findall(r"", texta)&#xA;    if time2:&#xA;        for x in time2:&#xA;            t = datetime.datetime.fromtimestamp(int(x[0]))&#xA;            texta = re.sub(r"".format(x[0], x[1]), t.strftime("%A %d %B %Y, %H:%M:%S"), texta)&#xA;    users = []&#xA;    if os.path.isfile(os.path.join(temp, str(ctx.guild.id), ".users")):&#xA;        with open(os.path.join(temp, str(ctx.guild.id), ".users"), "rb") as f:&#xA;            users = pickle.load(f)&#xA;        if not author in users:&#xA;            users.append(author)&#xA;            with open(os.path.join(temp, str(ctx.guild.id), ".users"), "wb") as f:&#xA;                pickle.dump(users, f)&#xA;        if len(users) > 1:&#xA;            config.read(os.path.join(configs, str(ctx.guild.id)), encoding=&#x27;utf-8&#x27;)&#xA;            if config[&#x27;DEFAULT&#x27;][&#x27;multiuser&#x27;] == "True":&#xA;                if config[&#x27;DEFAULT&#x27;][&#x27;usenicknames&#x27;] == "True":&#xA;                    texta = f"{authornick}: {texta}"&#xA;                else:&#xA;                    texta = f"{authorname}: {texta}"&#xA;    else:&#xA;        users.append(author)&#xA;        with open(os.path.join(temp, str(ctx.guild.id), ".users"), "wb") as f:&#xA;            pickle.dump(users, f)&#xA;    tts = gTTS(texta, lang=lang)&#xA;    if os.name == &#x27;nt&#x27;:&#xA;        source = f"{temp}\{ctx.guild.id}\{ran()}.mp3"&#xA;    else:&#xA;        source = f"{temp}/{ctx.guild.id}/{ran()}.mp3"&#xA;    try:&#xA;        tts.save(source)&#xA;    except gTTSError:&#xA;        code = generate_random_code()&#xA;        e = traceback.format_exc()&#xA;        print(e &#x2B; "Error Code: " &#x2B; code)&#xA;        embed = discord.Embed(title=eval("f" &#x2B; get_guild_language(ctx, &#x27;errtitle&#x27;)), description=eval("f" &#x2B; get_guild_language(ctx, &#x27;unexpectederror&#x27;)), color=0xFF0000)&#xA;        await ctx.respond(embed=embed, delete_after=5)&#xA;        return&#xA;    if await preplay(ctx, source):&#xA;        embed=discord.Embed(title=eval("f" &#x2B; get_guild_language(ctx, &#x27;done&#x27;)), description=eval("f" &#x2B; get_guild_language(ctx, &#x27;saylangmess&#x27;)), color=0x1eff00)&#xA;        await ctx.respond(embed=embed, allowed_mentions=discord.AllowedMentions(replied_user=False), delete_after=1, silent=True)&#xA;

    &#xA;

    bot doesn't play when the say command is used. ffmpeg says not found, but ffmpeg.exe is installed in the working directory. I installed the working excecutable file from ffmpeg build website for Windows 10, yet it still doesn't work. I can't figure out what's happening. I'm using Pycord.

    &#xA;

    The terminal also mentions this

    &#xA;

      proc = self._process&#xA;           ^^^^^^^^^^^^^&#xA;AttributeError: &#x27;FFmpegPCMAudio&#x27; object has no attribute &#x27;_process&#x27;&#xA;

    &#xA;

  • Stage-Whisper is not working because of missing files

    24 novembre 2023, par Tingtong

    I tried to install this here : https://github.com/Stage-Whisper/Stage-Whisper

    &#xA;

    Once i put the audio file in it, it is still loading and loading but not transcribing it.

    &#xA;

    So after that i checked the requirements and packages, if there is something missing and there is. I installed those here :

    &#xA;

    Node (required for Electron)&#xA;Yarn (required for Electron)&#xA;Python 3.x (required for backend)&#xA;Rust (required for backend)&#xA;ffmpeg (required for backend)&#xA;Poetry (required for backend)&#xA;

    &#xA;

    I installed them with homebrew. There are some errors showing up, once i launch the electron programm with "yarn dev" : ERROR : "could not locate binding files"

    &#xA;

    I also tried "poetry run python stagewhisper —input /path/to/audio/file.mp3", but got following message. Poetry could not find a pyproject.toml file in /Users/Administrator/Desktop/Stage-Whisper or its parents.

    &#xA;

    Where do i have to put the file pyproject.toml and what do i have to write in it ?

    &#xA;

    So i checked with brew info all tools which i need for Stage-Whisper. Screenshots :enter image description here&#xA;[enter image description here](https://i.stack.imgur.com/sirb3.png)

    &#xA;

    What i tried was to update those packages/requirements which where missing, with "sudo port install requirementPackageName ". But after checking with brew info again, those parts are still missing. So does that actually work or do i have to install those missing stuff with homebrew ? I have Mac Mojave 10.14.6 and Homebrew 4.1.18 Version.

    &#xA;

    I also got an error, while i installed those tools with homebrew :

    &#xA;

    ERROR : You are using macOS 10.14.&#xA;We (and Apple) do not provide support for this old version. It is expected behaviour that some formulae will fail to build in this old version... etc

    &#xA;

    Thank you for your help guys.

    &#xA;

    Edit :

    &#xA;

    &#xA;

    yarn install v1.22.19 warning ../../../package.json : No license field&#xA;[1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4]&#xA;🔗 Linking dependencies... warning "@emotion/react >&#xA;@emotion/babel-plugin@11.10.2" has unmet peer dependency&#xA;"@babel/core@^7.0.0". warning "@emotion/react > @emotion/babel-plugin

    &#xA;

    &#xA;

    @babel/plugin-syntax-jsx@7.18.6" has unmet peer dependency "@babel/core@^7.0.0-0". warning " > autoprefixer@10.4.4" has unmet&#xA;peer dependency "postcss@^8.1.0". warning " >&#xA;eslint-config-airbnb@19.0.4" has unmet peer dependency&#xA;"eslint-plugin-react-hooks@^4.3.0".&#xA;[----------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0/890^[4/4] 🔨 Building fresh packages... [1/7] ⠁ better-sqlite3&#xA;[-/7] ⠁ waiting... [3/7] ⠁ sqlite3 [4/7] ⠁ esbuild error&#xA;/Users/administrator/Desktop/Stage-Whisper/electron/node_modules/better-sqlite3 :&#xA;Command failed. Exit code : 1 Command : prebuild-install || npm run&#xA;build-release Arguments : Directory :&#xA;/Users/administrator/Desktop/Stage-Whisper/electron/node_modules/better-sqlite3&#xA;Output : prebuild-install warn install No prebuilt binaries found&#xA;(target=20.9.0 runtime=node arch=x64 libc= platform=darwin)

    &#xA;

    &#xA;

    &#xA;

    better-sqlite3@7.6.2 build-release&#xA;node-gyp rebuild —release

    &#xA;

    &#xA;

    gyp info it worked if it ends with ok gyp info using node-gyp@9.3.0&#xA;gyp info using node@20.9.0 | darwin | x64 gyp info find Python using&#xA;Python version 3.9.14 found at "/usr/local/bin/python3" gyp info spawn&#xA;/usr/local/bin/python3 gyp info spawn args [ gyp info spawn args
    &#xA;'/Users/administrator/Desktop/Stage-Whisper/electron/node_modules/electron-rebuild/node_modules/node-gyp/gyp/gyp_main.py',&#xA;gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp&#xA;info spawn args 'make', gyp info spawn args '-I', gyp info spawn&#xA;args
    &#xA;'/Users/administrator/Desktop/Stage-Whisper/electron/node_modules/better-sqlite3/build/config.gypi',&#xA;gyp info spawn args '-I', gyp info spawn args
    &#xA;'/Users/administrator/Desktop/Stage-Whisper/electron/node_modules/electron-rebuild/node_modules/node-gyp/addon.gypi',&#xA;gyp info spawn args '-I', gyp info spawn args
    &#xA;'/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/common.gypi',&#xA;gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args&#xA;'-Dvisibility=default', gyp info spawn args
    &#xA;'-Dnode_root_dir=/Users/administrator/Library/Caches/node-gyp/20.9.0',&#xA;gyp info spawn args
    &#xA;'-Dnode_gyp_dir=/Users/administrator/Desktop/Stage-Whisper/electron/node_modules/electron-rebuild/node_modules/node-gyp',&#xA;gyp info spawn args
    &#xA;'-Dnode_lib_file=/Users/administrator/Library/Caches/node-gyp/20.9.0/<(target_arch)/node.lib',&#xA;gyp info spawn args
    &#xA;'-Dmodule_root_dir=/Users/administrator/Desktop/Stage-Whisper/electron/node_modules/better-sqlite3',&#xA;gyp info spawn args '-Dnode_engine=v8', gyp info spawn args
    &#xA;'—depth=.', gyp info spawn args '—no-parallel', gyp info spawn&#xA;args '—generator-output', gyp info spawn args 'build', gyp info&#xA;spawn args '-Goutput_dir=.' gyp info spawn args ] gyp info spawn&#xA;make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
    &#xA;TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate ACTION&#xA;deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3&#xA;ba23eeee118cd63e16015df367567cb043fed872.intermediate TOUCH&#xA;Release/obj.target/deps/locate_sqlite3.stamp CC(target)&#xA;Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o LIBTOOL-STATIC&#xA;Release/sqlite3.a CXX(target)&#xA;Release/obj.target/better_sqlite3/src/better_sqlite3.o In file&#xA;included from ../src/better_sqlite3.cpp:4 : In file included from&#xA;./src/better_sqlite3.lzz:11 : In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/node.h:73 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8.h:24 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-array-buffer.h:12 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-local-handle.h:12 :&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:465:30 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;SHARED_EXTERNAL_POINTER_TAGS(CHECK_SHARED_EXTERNAL_POINTER_TAGS)&#xA;^ /Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:465:30 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:465:30 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:465:30 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:465:30 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;PER_ISOLATE_EXTERNAL_POINTER_TAGS(CHECK_NON_SHARED_EXTERNAL_POINTER_TAGS)&#xA;^ /Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:693:61 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;static_assert(kJSObjectType + 1 == kFirstJSApiObjectType) ;&#xA;^&#xA;, "" /Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:694:55 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;static_assert(kJSObjectType < kLastJSApiObjectType) ;&#xA;^&#xA;, "" /Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:695:63 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;static_assert(kFirstJSApiObjectType < kLastJSApiObjectType) ;&#xA;^&#xA;, "" In file included from ../src/better_sqlite3.cpp:4 : In file included from&#xA;./src/better_sqlite3.lzz:11 : In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/node.h:73 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8.h:24 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-array-buffer.h:13 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-object.h:9 :&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-maybe.h:106:45 :&#xA;error : no template named 'is_lvalue_reference_v' in namespace 'std' ;&#xA;did you mean 'is_lvalue_reference' ? template >&#xA; ^ &#xA;is_lvalue_reference /Library/Developer/CommandLineTools/usr/include/c++/v1/type_traits:780:50 :&#xA;note : 'is_lvalue_reference' declared here template struct&#xA;_LIBCPP_TEMPLATE_VIS is_lvalue_reference : public false_type {} ;&#xA;^ In file included from ../src/better_sqlite3.cpp:4 : In file included from&#xA;./src/better_sqlite3.lzz:11 : In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/node.h:73 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8.h:24 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-array-buffer.h:13 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-object.h:9 :&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-maybe.h:106:69 :&#xA;error : expected '(' for function-style cast or type construction
    &#xA;template
    >&#xA; ^ /Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-maybe.h:123:43 :&#xA;error : no template named 'is_lvalue_reference_v' in namespace 'std' ;&#xA;did you mean 'is_lvalue_reference' ? template * = nullptr>&#xA; ^ &#xA;is_lvalue_reference /Library/Developer/CommandLineTools/usr/include/c++/v1/type_traits:780:50 :&#xA;note : 'is_lvalue_reference' declared here template struct&#xA;_LIBCPP_TEMPLATE_VIS is_lvalue_reference : public false_type {} ;&#xA;^ In file included from ../src/better_sqlite3.cpp:4 : In file included from&#xA;./src/better_sqlite3.lzz:11 : In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/node.h:73 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8.h:24 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-array-buffer.h:13 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-object.h:9 :&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-maybe.h:123:67 :&#xA;error : expected '(' for function-style cast or type construction&#xA;template * =&#xA;nullptr>&#xA; ^ In file included from ../src/better_sqlite3.cpp:4 : In file included from&#xA;./src/better_sqlite3.lzz:11 : In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/node.h:73 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8.h:33 :&#xA;In file included from&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-function.h:11 :&#xA;/Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-function-callback.h:151:66 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;kReturnValueDefaultValueIndex - kReturnValueIndex) ;&#xA;^&#xA;, "" /Users/administrator/Library/Caches/node-gyp/20.9.0/include/node/v8-function-callback.h:153:50 :&#xA;warning : static_assert with no message is a C++17 extension&#xA;[-Wc++17-extensions]&#xA;kIsolateIndex - kReturnValueIndex) ;&#xA;^&#xA;, "" ./src/util/macros.lzz:157:21 : error : no member named&#xA;'AccessorSignature' in namespace 'v8'&#xA;v8::AccessorSignature::New(isolate, recv)&#xA; ^ ./src/util/binder.lzz:37:51 : error : no member named 'CreationContext' in 'v8::Object'&#xA;v8::Local ctx = obj->CreationContext() ;&#xA; ^ 22 warnings and 6 errors generated. make : ***&#xA;[Release/obj.target/better_sqlite3/src/better_sqlite3.o] Error 1 rm&#xA;ba23eeee118cd63e16015df367567cb043fed872.intermediate gyp ERR ! build&#xA;error gyp ERR ! stack Error : make failed with exit code : 2 gyp ERR !&#xA;stack at ChildProcess.onExit&#xA;(/Users/administrator/Desktop/Stage-Whisper/electron/node_modules/electron-rebuild/node_modules/node-gyp/lib/build.js:203:23)&#xA;gyp ERR ! stack at ChildProcess.emit (node:events:514:28) gyp ERR !&#xA;stack at ChildProcess._handle.onexit&#xA;(node:internal/child_process:294:12) gyp ERR ! System Darwin 18.7.0 gyp&#xA;ERR ! command "/usr/local/bin/node"&#xA;"/Users/administrator/Desktop/Stage-Whisper/electron/node_modules/.bin/node-gyp"&#xA;"rebuild" "—release" gyp ERR ! cwd&#xA;/Users/administrator/Desktop/Stage-Whisper/electron/node_modules/better-sqlite3

    &#xA;

    &#xA;

    Same goes for the the "poetry install" command in the backend folder :

    &#xA;

    8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/build/onig_sys-3a9a2f947b5ad744/outwarning: variable does not need to be mutable --> tokenizers-lib/src/models/unigram/model.rs:265:21 | 265 |                 let mut target_node = &amp;mut best_path_ends_at[key_pos]; |                     ----^^^^^^^^^^^ |                     | |                     help: remove thismut| = note:#[warn(unused_mut)]` on by default

    &#xA;

    warning : variable does not need to be mutable&#xA;—> tokenizers-lib/src/models/unigram/model.rs:282:21&#xA;|&#xA;282 | let mut target_node = &mut best_path_ends_at[starts_at + mblen] ;&#xA;| ----^^^^^^^^^^^&#xA;| |&#xA;| help : remove this mut

    &#xA;

    warning : variable does not need to be mutable&#xA;—> tokenizers-lib/src/pre_tokenizers/byte_level.rs:200:59&#xA;|&#xA;200 | encoding.process_tokens_with_offsets_mut(|(i, (token, mut offsets))| &#xA;| ----^^^^^^^&#xA;| |&#xA;| help : remove this mut

    &#xA;

    error : casting &amp;T to &amp;mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell&#xA;—> tokenizers-lib/src/models/bpe/trainer.rs:526:47&#xA;|&#xA;522 | let w = &words[*i] as *const _ as *mut _ ;&#xA;| -------------------------------- casting happend here&#xA;...&#xA;526 | let word : &mut Word = &mut (*w) ;&#xA;| ^^^^^^^^^&#xA;|&#xA;= note : #[deny(invalid_reference_casting)] on by default

    &#xA;

    warning : tokenizers (lib) generated 3 warnings&#xA;error : could not compile tokenizers (lib) due to previous error ; 3 warnings emitted

    &#xA;

    Caused by :&#xA;process didn't exit successfully : /Users/administrator/.rustup/toolchains/stable-x86_64-apple-darwin/bin/rustc --crate-name tokenizers --edition=2018 tokenizers-lib/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg &#x27;feature="cached-path"&#x27; --cfg &#x27;feature="clap"&#x27; --cfg &#x27;feature="cli"&#x27; --cfg &#x27;feature="default"&#x27; --cfg &#x27;feature="http"&#x27; --cfg &#x27;feature="indicatif"&#x27; --cfg &#x27;feature="progressbar"&#x27; --cfg &#x27;feature="reqwest"&#x27; -C metadata=cb36f9861d265e60 -C extra-filename=-cb36f9861d265e60 --out-dir /private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps -L dependency=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps --extern aho_corasick=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libaho_corasick-021885281f13d108.rmeta --extern cached_path=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libcached_path-767095c4d4a77107.rmeta --extern clap=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libclap-c92d2593d8a75e62.rmeta --extern derive_builder=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libderive_builder-833217c2af636976.dylib --extern dirs=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libdirs-f12e99ecd3a76eae.rmeta --extern esaxx_rs=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libesaxx_rs-b694f04df571686b.rmeta --extern indicatif=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libindicatif-39491a3282a24810.rmeta --extern itertools=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libitertools-b322e49e83853c17.rmeta --extern lazy_static=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/liblazy_static-28a96417d88df3c9.rmeta --extern log=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/liblog-937f94f366843d8a.rmeta --extern macro_rules_attribute=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libmacro_rules_attribute-d4d77bee9330e675.rmeta --extern onig=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libonig-7f9dab4334743bdf.rmeta --extern paste=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libpaste-a36a4a0dbc2ac63f.dylib --extern rand=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/librand-4b1adc86e35ea892.rmeta --extern rayon=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/librayon-d134e48f83d52e6e.rmeta --extern rayon_cond=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/librayon_cond-5715a923c66c54a9.rmeta --extern regex=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libregex-a5c54f2d0034ab98.rmeta --extern regex_syntax=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libregex_syntax-58c405f62323b6ed.rmeta --extern reqwest=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libreqwest-1551c89d20e17f58.rmeta --extern serde=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libserde-f4748cc953dd1338.rmeta --extern serde_json=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libserde_json-5fba404e8440399e.rmeta --extern spm_precompiled=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libspm_precompiled-6bd24072bd3c9d31.rmeta --extern thiserror=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libthiserror-bcbb2769006ee534.rmeta --extern unicode_normalization_alignments=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libunicode_normalization_alignments-658520cf6a5461dc.rmeta --extern unicode_segmentation=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libunicode_segmentation-fffd829ab6256bb0.rmeta --extern unicode_categories=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/deps/libunicode_categories-e3815c3d18c1086b.rmeta -L native=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/build/bzip2-sys-d2cb72d65b178690/out/lib -L native=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/build/zstd-sys-ddff0154a55a136c/out -L native=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/build/esaxx-rs-69d9e34a40d41449/out -L native=/private/var/folders/zc/c2qvlcjd5cgcg5l84484t8vh0000gt/T/tmp2yohvwu_/tokenizers-0.12.1/target/release/build/onig_sys-3a9a2f947b5ad744/out (exit status : 1)&#xA;error : cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features pyo3/extension-module --crate-type cdylib -- -C &#x27;link-args=-undefined dynamic_lookup -Wl,-install_name,@rpath/tokenizers.cpython-311-darwin.so&#x27; failed with code 101

    &#xA;

    at /usr/local/lib/python3.11/site-packages/poetry/installation/chef.py:166 in _prepare&#xA;162│&#xA;163│ error = ChefBuildError("\n\n".join(message_parts))&#xA;164│&#xA;165│ if error is not None :&#xA;→ 166│ raise error from None&#xA;167│&#xA;168│ return path&#xA;169│&#xA;170│ def _prepare_sdist(self, archive : Path, destination : Path | None = None) -> Path :

    &#xA;

    Note : This error originates from the build backend, and is likely not a problem with poetry but with tokenizers (0.12.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel —no-cache-dir —use-pep517 "tokenizers (==0.12.1)"'.

    &#xA;

    UPDATE (SOLVED) :

    &#xA;

      &#xA;
    • i found a solution and this worked for me :
    • &#xA;

    &#xA;

    "I had the same problem and nothing mentioned here worked for me. Here is what worked for me :

    &#xA;

    **("Didnt do this Part")"Require all dependencies you need in the main.js file that is run by electron."**    &#xA;

    &#xA;

    What i did was :&#xA;Run npm i -D electron-rebuild to add the electron-rebuild package&#xA;Remove the node-modules folder, as well as the packages-lock.json file.&#xA;Run npm i to install all modules.&#xA;Run ./node_modules/.bin/electron-rebuild (.\node_modules.bin\electron-rebuild.cmd for Windows) to rebuild everything

    &#xA;

    It is very important to run ./node_modules/.bin/electron-rebuild directly after npm i otherwise it did not work on my mac."

    &#xA;

    But now i get following Error, when i upload and transcribe the file :

    &#xA;

    > [ELECTRON] NewEntry: Creating new entry with UUID: XY...&#xA;[ELECTRON] NewEntry: Copying audio file to store...&#xA;[ELECTRON] NewEntry: Audio file copied to store.&#xA;[ELECTRON] NewEntry: Entry added to database!&#xA;[ELECTRON] RunWhisper: Running model with args [&#xA;[ELECTRON]   &#x27;--verbose&#x27;,&#xA;[ELECTRON]   &#x27;true&#x27;,&#xA;[ELECTRON]   &#x27;--output_dir&#x27;,&#xA;[ELECTRON]   &#x27;/Users/administrator/Library/Application Support/stagewhisper/store/whisper/2a07203b-ad88-438c-babf-b600cb76aa1d&#x27;,&#xA;[ELECTRON]   &#x27;--task&#x27;,&#xA;[ELECTRON]   &#x27;translate&#x27;,&#xA;[ELECTRON]   &#x27;--model&#x27;,&#xA;[ELECTRON]   &#x27;base&#x27;,&#xA;[ELECTRON]   &#x27;--device&#x27;,&#xA;[ELECTRON]   &#x27;cpu&#x27;,&#xA;[ELECTRON]   &#x27;--input&#x27;,&#xA;[ELECTRON]   &#x27;/Users/administrator/Library/Application Support/stagewhisper/store/audio/harvard.mp3&#x27;&#xA;[ELECTRON] ]&#xA;[ELECTRON] RunWhisper: Child process closed with code 1&#xA;[ELECTRON] RunWhisper: Error running whisper script!&#xA;[ELECTRON] Error occurred in handler for &#x27;run-whisper&#x27;: Error: Error running whisper script!&#xA;[ELECTRON]     at ChildProcess.<anonymous> (/Users/administrator/Desktop/Stage-Whisper/electron/main/handlers/runWhisper/runWhisper.js:234:31)&#xA;[ELECTRON]     at ChildProcess.emit (node:events:390:28)&#xA;[ELECTRON]     at maybeClose (node:internal/child_process:1064:16)&#xA;[ELECTRON]     at Socket.<anonymous> (node:internal/child_process:450:11)&#xA;[ELECTRON]     at Socket.emit (node:events:390:28)&#xA;[ELECTRON]     at Pipe.<anonymous> (node:net:687:12)&#xA;&#xA; &#xA;</anonymous></anonymous></anonymous>

    &#xA;