Anki - error with executing Latex equations











up vote
0
down vote

favorite












So I have installed Anki and want to show latex equations in it. Downloaded Miktex and ensured that new packages will be installed on the fly. When I run an ANKI with an equation the following error shows up (after a lot of text):



Sorry, but dvipng did not succeed.


So I also downloaded an extra add on found in ANKI (https://ankiweb.net/shared/info/937148547). Still gives same error.
When I open up the log file from the error it states the following:



2017-03-17 08:23:28,852+0100 FATAL dvipng - GUI framework cannot be initialized.
2017-03-17 08:23:28,852+0100 FATAL dvipng - Info:
2017-03-17 08:23:28,852+0100 FATAL dvipng - Source: LibrariesMiKTeXUIQtmikuiqt.cpp
2017-03-17 08:23:28,852+0100 FATAL dvipng - Line: 45
2017-03-17 08:23:29,775+0100 FATAL dvipng - GUI framework cannot be initialized.
2017-03-17 08:23:29,775+0100 FATAL dvipng - Info:
2017-03-17 08:23:29,775+0100 FATAL dvipng - Source: LibrariesMiKTeXUIQtmikuiqt.cpp
2017-03-17 08:23:29,775+0100 FATAL dvipng - Line: 45


Can anybody help??










share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 2




    Welcome to TeX.SX! Please try to update MikTeX with its update manager. Are there any errors?
    – TeXnician
    Mar 17 '17 at 7:53










  • Do the update in both Admin and User mode (there will be 'MikTeX Update' in user mode and 'MikTeX Update (Admin)' in amdin mode). Due to MikTeX's update system you might have to run both updaters twice. The problem you describe seems as though the on-the-fly installation cannot open the installation window. I have seen this happening to some people. Do you have the install package on the fly option set to 'yes' or 'ask me first'? If you are using 'ask me first', does it help to go over to 'yes'?
    – moewe
    Mar 17 '17 at 9:12










  • @TeXnician There are no errrors when I update it. There used to be (like before I made the post) but then I reinstalled MikTex and there now are none.
    – Mia Jakobsen
    Mar 21 '17 at 12:24










  • @moewe I have already set both to "yes" and it makes no difference.
    – Mia Jakobsen
    Mar 21 '17 at 12:26















up vote
0
down vote

favorite












So I have installed Anki and want to show latex equations in it. Downloaded Miktex and ensured that new packages will be installed on the fly. When I run an ANKI with an equation the following error shows up (after a lot of text):



Sorry, but dvipng did not succeed.


So I also downloaded an extra add on found in ANKI (https://ankiweb.net/shared/info/937148547). Still gives same error.
When I open up the log file from the error it states the following:



2017-03-17 08:23:28,852+0100 FATAL dvipng - GUI framework cannot be initialized.
2017-03-17 08:23:28,852+0100 FATAL dvipng - Info:
2017-03-17 08:23:28,852+0100 FATAL dvipng - Source: LibrariesMiKTeXUIQtmikuiqt.cpp
2017-03-17 08:23:28,852+0100 FATAL dvipng - Line: 45
2017-03-17 08:23:29,775+0100 FATAL dvipng - GUI framework cannot be initialized.
2017-03-17 08:23:29,775+0100 FATAL dvipng - Info:
2017-03-17 08:23:29,775+0100 FATAL dvipng - Source: LibrariesMiKTeXUIQtmikuiqt.cpp
2017-03-17 08:23:29,775+0100 FATAL dvipng - Line: 45


Can anybody help??










share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 2




    Welcome to TeX.SX! Please try to update MikTeX with its update manager. Are there any errors?
    – TeXnician
    Mar 17 '17 at 7:53










  • Do the update in both Admin and User mode (there will be 'MikTeX Update' in user mode and 'MikTeX Update (Admin)' in amdin mode). Due to MikTeX's update system you might have to run both updaters twice. The problem you describe seems as though the on-the-fly installation cannot open the installation window. I have seen this happening to some people. Do you have the install package on the fly option set to 'yes' or 'ask me first'? If you are using 'ask me first', does it help to go over to 'yes'?
    – moewe
    Mar 17 '17 at 9:12










  • @TeXnician There are no errrors when I update it. There used to be (like before I made the post) but then I reinstalled MikTex and there now are none.
    – Mia Jakobsen
    Mar 21 '17 at 12:24










  • @moewe I have already set both to "yes" and it makes no difference.
    – Mia Jakobsen
    Mar 21 '17 at 12:26













up vote
0
down vote

favorite









up vote
0
down vote

favorite











So I have installed Anki and want to show latex equations in it. Downloaded Miktex and ensured that new packages will be installed on the fly. When I run an ANKI with an equation the following error shows up (after a lot of text):



Sorry, but dvipng did not succeed.


So I also downloaded an extra add on found in ANKI (https://ankiweb.net/shared/info/937148547). Still gives same error.
When I open up the log file from the error it states the following:



2017-03-17 08:23:28,852+0100 FATAL dvipng - GUI framework cannot be initialized.
2017-03-17 08:23:28,852+0100 FATAL dvipng - Info:
2017-03-17 08:23:28,852+0100 FATAL dvipng - Source: LibrariesMiKTeXUIQtmikuiqt.cpp
2017-03-17 08:23:28,852+0100 FATAL dvipng - Line: 45
2017-03-17 08:23:29,775+0100 FATAL dvipng - GUI framework cannot be initialized.
2017-03-17 08:23:29,775+0100 FATAL dvipng - Info:
2017-03-17 08:23:29,775+0100 FATAL dvipng - Source: LibrariesMiKTeXUIQtmikuiqt.cpp
2017-03-17 08:23:29,775+0100 FATAL dvipng - Line: 45


Can anybody help??










share|improve this question















So I have installed Anki and want to show latex equations in it. Downloaded Miktex and ensured that new packages will be installed on the fly. When I run an ANKI with an equation the following error shows up (after a lot of text):



Sorry, but dvipng did not succeed.


So I also downloaded an extra add on found in ANKI (https://ankiweb.net/shared/info/937148547). Still gives same error.
When I open up the log file from the error it states the following:



2017-03-17 08:23:28,852+0100 FATAL dvipng - GUI framework cannot be initialized.
2017-03-17 08:23:28,852+0100 FATAL dvipng - Info:
2017-03-17 08:23:28,852+0100 FATAL dvipng - Source: LibrariesMiKTeXUIQtmikuiqt.cpp
2017-03-17 08:23:28,852+0100 FATAL dvipng - Line: 45
2017-03-17 08:23:29,775+0100 FATAL dvipng - GUI framework cannot be initialized.
2017-03-17 08:23:29,775+0100 FATAL dvipng - Info:
2017-03-17 08:23:29,775+0100 FATAL dvipng - Source: LibrariesMiKTeXUIQtmikuiqt.cpp
2017-03-17 08:23:29,775+0100 FATAL dvipng - Line: 45


Can anybody help??







miktex anki






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 5 '17 at 16:24









gernot

26.4k22960




26.4k22960










asked Mar 17 '17 at 7:50









Mia Jakobsen

11




11





bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 2




    Welcome to TeX.SX! Please try to update MikTeX with its update manager. Are there any errors?
    – TeXnician
    Mar 17 '17 at 7:53










  • Do the update in both Admin and User mode (there will be 'MikTeX Update' in user mode and 'MikTeX Update (Admin)' in amdin mode). Due to MikTeX's update system you might have to run both updaters twice. The problem you describe seems as though the on-the-fly installation cannot open the installation window. I have seen this happening to some people. Do you have the install package on the fly option set to 'yes' or 'ask me first'? If you are using 'ask me first', does it help to go over to 'yes'?
    – moewe
    Mar 17 '17 at 9:12










  • @TeXnician There are no errrors when I update it. There used to be (like before I made the post) but then I reinstalled MikTex and there now are none.
    – Mia Jakobsen
    Mar 21 '17 at 12:24










  • @moewe I have already set both to "yes" and it makes no difference.
    – Mia Jakobsen
    Mar 21 '17 at 12:26














  • 2




    Welcome to TeX.SX! Please try to update MikTeX with its update manager. Are there any errors?
    – TeXnician
    Mar 17 '17 at 7:53










  • Do the update in both Admin and User mode (there will be 'MikTeX Update' in user mode and 'MikTeX Update (Admin)' in amdin mode). Due to MikTeX's update system you might have to run both updaters twice. The problem you describe seems as though the on-the-fly installation cannot open the installation window. I have seen this happening to some people. Do you have the install package on the fly option set to 'yes' or 'ask me first'? If you are using 'ask me first', does it help to go over to 'yes'?
    – moewe
    Mar 17 '17 at 9:12










  • @TeXnician There are no errrors when I update it. There used to be (like before I made the post) but then I reinstalled MikTex and there now are none.
    – Mia Jakobsen
    Mar 21 '17 at 12:24










  • @moewe I have already set both to "yes" and it makes no difference.
    – Mia Jakobsen
    Mar 21 '17 at 12:26








2




2




Welcome to TeX.SX! Please try to update MikTeX with its update manager. Are there any errors?
– TeXnician
Mar 17 '17 at 7:53




Welcome to TeX.SX! Please try to update MikTeX with its update manager. Are there any errors?
– TeXnician
Mar 17 '17 at 7:53












Do the update in both Admin and User mode (there will be 'MikTeX Update' in user mode and 'MikTeX Update (Admin)' in amdin mode). Due to MikTeX's update system you might have to run both updaters twice. The problem you describe seems as though the on-the-fly installation cannot open the installation window. I have seen this happening to some people. Do you have the install package on the fly option set to 'yes' or 'ask me first'? If you are using 'ask me first', does it help to go over to 'yes'?
– moewe
Mar 17 '17 at 9:12




Do the update in both Admin and User mode (there will be 'MikTeX Update' in user mode and 'MikTeX Update (Admin)' in amdin mode). Due to MikTeX's update system you might have to run both updaters twice. The problem you describe seems as though the on-the-fly installation cannot open the installation window. I have seen this happening to some people. Do you have the install package on the fly option set to 'yes' or 'ask me first'? If you are using 'ask me first', does it help to go over to 'yes'?
– moewe
Mar 17 '17 at 9:12












@TeXnician There are no errrors when I update it. There used to be (like before I made the post) but then I reinstalled MikTex and there now are none.
– Mia Jakobsen
Mar 21 '17 at 12:24




@TeXnician There are no errrors when I update it. There used to be (like before I made the post) but then I reinstalled MikTex and there now are none.
– Mia Jakobsen
Mar 21 '17 at 12:24












@moewe I have already set both to "yes" and it makes no difference.
– Mia Jakobsen
Mar 21 '17 at 12:26




@moewe I have already set both to "yes" and it makes no difference.
– Mia Jakobsen
Mar 21 '17 at 12:26










1 Answer
1






active

oldest

votes

















up vote
0
down vote













I realize this is kind of an old question, but I just struggled with the same and thought I'd share my answer.



The error message seen in the log file FATAL dvipng - GUI framework cannot be initialized I believe is MiKTeX trying to load the "install-missing-package?" prompt-window, but is unable to load its GUI when it's actioned through Anki.



What worked for me was to navigate to the .tex Anki is trying to compile, in powershell, and call dvipng manually from the commandline:



cd ~/AppData/Local/Temp/anki_temp/
dvipng tmp.tex


This trigged the Install package window, and let me install the missing package.



After installing the missing package Anki and latex worked together like they should :-)






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f358911%2fanki-error-with-executing-latex-equations%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I realize this is kind of an old question, but I just struggled with the same and thought I'd share my answer.



    The error message seen in the log file FATAL dvipng - GUI framework cannot be initialized I believe is MiKTeX trying to load the "install-missing-package?" prompt-window, but is unable to load its GUI when it's actioned through Anki.



    What worked for me was to navigate to the .tex Anki is trying to compile, in powershell, and call dvipng manually from the commandline:



    cd ~/AppData/Local/Temp/anki_temp/
    dvipng tmp.tex


    This trigged the Install package window, and let me install the missing package.



    After installing the missing package Anki and latex worked together like they should :-)






    share|improve this answer

























      up vote
      0
      down vote













      I realize this is kind of an old question, but I just struggled with the same and thought I'd share my answer.



      The error message seen in the log file FATAL dvipng - GUI framework cannot be initialized I believe is MiKTeX trying to load the "install-missing-package?" prompt-window, but is unable to load its GUI when it's actioned through Anki.



      What worked for me was to navigate to the .tex Anki is trying to compile, in powershell, and call dvipng manually from the commandline:



      cd ~/AppData/Local/Temp/anki_temp/
      dvipng tmp.tex


      This trigged the Install package window, and let me install the missing package.



      After installing the missing package Anki and latex worked together like they should :-)






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I realize this is kind of an old question, but I just struggled with the same and thought I'd share my answer.



        The error message seen in the log file FATAL dvipng - GUI framework cannot be initialized I believe is MiKTeX trying to load the "install-missing-package?" prompt-window, but is unable to load its GUI when it's actioned through Anki.



        What worked for me was to navigate to the .tex Anki is trying to compile, in powershell, and call dvipng manually from the commandline:



        cd ~/AppData/Local/Temp/anki_temp/
        dvipng tmp.tex


        This trigged the Install package window, and let me install the missing package.



        After installing the missing package Anki and latex worked together like they should :-)






        share|improve this answer












        I realize this is kind of an old question, but I just struggled with the same and thought I'd share my answer.



        The error message seen in the log file FATAL dvipng - GUI framework cannot be initialized I believe is MiKTeX trying to load the "install-missing-package?" prompt-window, but is unable to load its GUI when it's actioned through Anki.



        What worked for me was to navigate to the .tex Anki is trying to compile, in powershell, and call dvipng manually from the commandline:



        cd ~/AppData/Local/Temp/anki_temp/
        dvipng tmp.tex


        This trigged the Install package window, and let me install the missing package.



        After installing the missing package Anki and latex worked together like they should :-)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 24 at 17:31









        Christian Fosli

        1




        1






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f358911%2fanki-error-with-executing-latex-equations%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt