Lyx refuses to work with images of various formats; Error: Cannot convert file











up vote
1
down vote

favorite












I am simply trying to insert pictures into the document; all I get is:




Error: Cannot convert file



No information for converting png format files to eps. Define a
converter in the preferences.




And as god is my witness I have tried. I attempted modyfying 'Tools -> Preferences -> File Handling -> Converters' but I am confused as of what exactly is expected. Is there any special requirements for images in Lyx?



The environment is Arch of version bleeding edge and Lyx 2.3.1.



Full error output:



Traceback (most recent call last):
File "/usr/share/lyx/scripts/convertDefault.py", line 38, in <module>
output = output.decode()
AttributeError: 'str' object has no attribute 'decode'
Systemcall.cpp (294): Systemcall: 'python -tt "/usr/share/lyx/scripts/convertDefault.py" png "/tmp/lyx_tmpdir.uwjpEexWrZGG/lyx_tmpbuf0/0_home_sebastian_Temp_Felis_silvestris_silvestris_small_gradual_decrease_of_quality.png" eps "/tmp/lyx_tmpdir.uwjpEexWrZGG/lyx_tmpbuf0/0_home_sebastian_Temp_Felis_silvestris_silvestris_small_gradual_decrease_of_quality.eps"' finished with exit code 1
Error: Cannot convert file
----------------------------------------
No information for converting png format files to eps.
Define a converter in the preferences.
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) (preloaded format=latex)
restricted write18 enabled.
entering extended mode
(./assignment1.tex
LaTeX2e <2018-04-01> patch level 5

Systemcall.cpp (294): Systemcall: 'latex "assignment1.tex"' finished with exit code 1


Any help much appreciated, I don't want to go back to LO only because of this.










share|improve this question
























  • Sure that you need convert png to eps files? Unlike long time ago, actually is not necessary in most cases. You can produce a PDF output directly with pdflatex using png, jpg and pdf images without any conversion, whereas eps images cannot be used with that compiler (they are converted first to pdf images).
    – Fran
    Oct 5 at 19:21












  • I don't think I have to, nor should I, nor I want to. The above error is produced when I try to 'View DVI' of a document with a picture in it. I don't insist on converting it to EPS, Lyx does. I do not know how to prevent the conversion taking place or how to do it any other way :/
    – soocki
    Oct 5 at 20:59








  • 1




    That is the key point. When you ask for a DVI, you force to LyX (to LaTeX) to use only eps images, but why the hell you want the output in the old (and mostly unknown) DVI format ? With "View [PDF(pdflatex)] you will use the PNG directly without problems and the ouput is the well-know PDF format that anyone can open without problems.
    – Fran
    Oct 5 at 22:06












  • 'View DVI' is the only available option. Glad we are able to come up with some 'key points' means we are getting somewhere.
    – soocki
    Oct 6 at 14:57










  • Thank you @Fran you have helped me to solve this. It turns out Lyx were unable to detect the pdf viewer I had installed. After installation of such (mupdf) the option to 'View PDF (pdflatex)' this and other options became present and I am able to render resulting pdf file via 'View' menu. Thanks again man I was banging my head against the wall here. Guess that's what happens when you don't understand the tools too well yet you still trying to use them.
    – soocki
    Oct 6 at 15:16

















up vote
1
down vote

favorite












I am simply trying to insert pictures into the document; all I get is:




Error: Cannot convert file



No information for converting png format files to eps. Define a
converter in the preferences.




And as god is my witness I have tried. I attempted modyfying 'Tools -> Preferences -> File Handling -> Converters' but I am confused as of what exactly is expected. Is there any special requirements for images in Lyx?



The environment is Arch of version bleeding edge and Lyx 2.3.1.



Full error output:



Traceback (most recent call last):
File "/usr/share/lyx/scripts/convertDefault.py", line 38, in <module>
output = output.decode()
AttributeError: 'str' object has no attribute 'decode'
Systemcall.cpp (294): Systemcall: 'python -tt "/usr/share/lyx/scripts/convertDefault.py" png "/tmp/lyx_tmpdir.uwjpEexWrZGG/lyx_tmpbuf0/0_home_sebastian_Temp_Felis_silvestris_silvestris_small_gradual_decrease_of_quality.png" eps "/tmp/lyx_tmpdir.uwjpEexWrZGG/lyx_tmpbuf0/0_home_sebastian_Temp_Felis_silvestris_silvestris_small_gradual_decrease_of_quality.eps"' finished with exit code 1
Error: Cannot convert file
----------------------------------------
No information for converting png format files to eps.
Define a converter in the preferences.
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) (preloaded format=latex)
restricted write18 enabled.
entering extended mode
(./assignment1.tex
LaTeX2e <2018-04-01> patch level 5

Systemcall.cpp (294): Systemcall: 'latex "assignment1.tex"' finished with exit code 1


Any help much appreciated, I don't want to go back to LO only because of this.










share|improve this question
























  • Sure that you need convert png to eps files? Unlike long time ago, actually is not necessary in most cases. You can produce a PDF output directly with pdflatex using png, jpg and pdf images without any conversion, whereas eps images cannot be used with that compiler (they are converted first to pdf images).
    – Fran
    Oct 5 at 19:21












  • I don't think I have to, nor should I, nor I want to. The above error is produced when I try to 'View DVI' of a document with a picture in it. I don't insist on converting it to EPS, Lyx does. I do not know how to prevent the conversion taking place or how to do it any other way :/
    – soocki
    Oct 5 at 20:59








  • 1




    That is the key point. When you ask for a DVI, you force to LyX (to LaTeX) to use only eps images, but why the hell you want the output in the old (and mostly unknown) DVI format ? With "View [PDF(pdflatex)] you will use the PNG directly without problems and the ouput is the well-know PDF format that anyone can open without problems.
    – Fran
    Oct 5 at 22:06












  • 'View DVI' is the only available option. Glad we are able to come up with some 'key points' means we are getting somewhere.
    – soocki
    Oct 6 at 14:57










  • Thank you @Fran you have helped me to solve this. It turns out Lyx were unable to detect the pdf viewer I had installed. After installation of such (mupdf) the option to 'View PDF (pdflatex)' this and other options became present and I am able to render resulting pdf file via 'View' menu. Thanks again man I was banging my head against the wall here. Guess that's what happens when you don't understand the tools too well yet you still trying to use them.
    – soocki
    Oct 6 at 15:16















up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am simply trying to insert pictures into the document; all I get is:




Error: Cannot convert file



No information for converting png format files to eps. Define a
converter in the preferences.




And as god is my witness I have tried. I attempted modyfying 'Tools -> Preferences -> File Handling -> Converters' but I am confused as of what exactly is expected. Is there any special requirements for images in Lyx?



The environment is Arch of version bleeding edge and Lyx 2.3.1.



Full error output:



Traceback (most recent call last):
File "/usr/share/lyx/scripts/convertDefault.py", line 38, in <module>
output = output.decode()
AttributeError: 'str' object has no attribute 'decode'
Systemcall.cpp (294): Systemcall: 'python -tt "/usr/share/lyx/scripts/convertDefault.py" png "/tmp/lyx_tmpdir.uwjpEexWrZGG/lyx_tmpbuf0/0_home_sebastian_Temp_Felis_silvestris_silvestris_small_gradual_decrease_of_quality.png" eps "/tmp/lyx_tmpdir.uwjpEexWrZGG/lyx_tmpbuf0/0_home_sebastian_Temp_Felis_silvestris_silvestris_small_gradual_decrease_of_quality.eps"' finished with exit code 1
Error: Cannot convert file
----------------------------------------
No information for converting png format files to eps.
Define a converter in the preferences.
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) (preloaded format=latex)
restricted write18 enabled.
entering extended mode
(./assignment1.tex
LaTeX2e <2018-04-01> patch level 5

Systemcall.cpp (294): Systemcall: 'latex "assignment1.tex"' finished with exit code 1


Any help much appreciated, I don't want to go back to LO only because of this.










share|improve this question















I am simply trying to insert pictures into the document; all I get is:




Error: Cannot convert file



No information for converting png format files to eps. Define a
converter in the preferences.




And as god is my witness I have tried. I attempted modyfying 'Tools -> Preferences -> File Handling -> Converters' but I am confused as of what exactly is expected. Is there any special requirements for images in Lyx?



The environment is Arch of version bleeding edge and Lyx 2.3.1.



Full error output:



Traceback (most recent call last):
File "/usr/share/lyx/scripts/convertDefault.py", line 38, in <module>
output = output.decode()
AttributeError: 'str' object has no attribute 'decode'
Systemcall.cpp (294): Systemcall: 'python -tt "/usr/share/lyx/scripts/convertDefault.py" png "/tmp/lyx_tmpdir.uwjpEexWrZGG/lyx_tmpbuf0/0_home_sebastian_Temp_Felis_silvestris_silvestris_small_gradual_decrease_of_quality.png" eps "/tmp/lyx_tmpdir.uwjpEexWrZGG/lyx_tmpbuf0/0_home_sebastian_Temp_Felis_silvestris_silvestris_small_gradual_decrease_of_quality.eps"' finished with exit code 1
Error: Cannot convert file
----------------------------------------
No information for converting png format files to eps.
Define a converter in the preferences.
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) (preloaded format=latex)
restricted write18 enabled.
entering extended mode
(./assignment1.tex
LaTeX2e <2018-04-01> patch level 5

Systemcall.cpp (294): Systemcall: 'latex "assignment1.tex"' finished with exit code 1


Any help much appreciated, I don't want to go back to LO only because of this.







graphics lyx linux






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 7 at 6:05

























asked Oct 5 at 17:43









soocki

62




62












  • Sure that you need convert png to eps files? Unlike long time ago, actually is not necessary in most cases. You can produce a PDF output directly with pdflatex using png, jpg and pdf images without any conversion, whereas eps images cannot be used with that compiler (they are converted first to pdf images).
    – Fran
    Oct 5 at 19:21












  • I don't think I have to, nor should I, nor I want to. The above error is produced when I try to 'View DVI' of a document with a picture in it. I don't insist on converting it to EPS, Lyx does. I do not know how to prevent the conversion taking place or how to do it any other way :/
    – soocki
    Oct 5 at 20:59








  • 1




    That is the key point. When you ask for a DVI, you force to LyX (to LaTeX) to use only eps images, but why the hell you want the output in the old (and mostly unknown) DVI format ? With "View [PDF(pdflatex)] you will use the PNG directly without problems and the ouput is the well-know PDF format that anyone can open without problems.
    – Fran
    Oct 5 at 22:06












  • 'View DVI' is the only available option. Glad we are able to come up with some 'key points' means we are getting somewhere.
    – soocki
    Oct 6 at 14:57










  • Thank you @Fran you have helped me to solve this. It turns out Lyx were unable to detect the pdf viewer I had installed. After installation of such (mupdf) the option to 'View PDF (pdflatex)' this and other options became present and I am able to render resulting pdf file via 'View' menu. Thanks again man I was banging my head against the wall here. Guess that's what happens when you don't understand the tools too well yet you still trying to use them.
    – soocki
    Oct 6 at 15:16




















  • Sure that you need convert png to eps files? Unlike long time ago, actually is not necessary in most cases. You can produce a PDF output directly with pdflatex using png, jpg and pdf images without any conversion, whereas eps images cannot be used with that compiler (they are converted first to pdf images).
    – Fran
    Oct 5 at 19:21












  • I don't think I have to, nor should I, nor I want to. The above error is produced when I try to 'View DVI' of a document with a picture in it. I don't insist on converting it to EPS, Lyx does. I do not know how to prevent the conversion taking place or how to do it any other way :/
    – soocki
    Oct 5 at 20:59








  • 1




    That is the key point. When you ask for a DVI, you force to LyX (to LaTeX) to use only eps images, but why the hell you want the output in the old (and mostly unknown) DVI format ? With "View [PDF(pdflatex)] you will use the PNG directly without problems and the ouput is the well-know PDF format that anyone can open without problems.
    – Fran
    Oct 5 at 22:06












  • 'View DVI' is the only available option. Glad we are able to come up with some 'key points' means we are getting somewhere.
    – soocki
    Oct 6 at 14:57










  • Thank you @Fran you have helped me to solve this. It turns out Lyx were unable to detect the pdf viewer I had installed. After installation of such (mupdf) the option to 'View PDF (pdflatex)' this and other options became present and I am able to render resulting pdf file via 'View' menu. Thanks again man I was banging my head against the wall here. Guess that's what happens when you don't understand the tools too well yet you still trying to use them.
    – soocki
    Oct 6 at 15:16


















Sure that you need convert png to eps files? Unlike long time ago, actually is not necessary in most cases. You can produce a PDF output directly with pdflatex using png, jpg and pdf images without any conversion, whereas eps images cannot be used with that compiler (they are converted first to pdf images).
– Fran
Oct 5 at 19:21






Sure that you need convert png to eps files? Unlike long time ago, actually is not necessary in most cases. You can produce a PDF output directly with pdflatex using png, jpg and pdf images without any conversion, whereas eps images cannot be used with that compiler (they are converted first to pdf images).
– Fran
Oct 5 at 19:21














I don't think I have to, nor should I, nor I want to. The above error is produced when I try to 'View DVI' of a document with a picture in it. I don't insist on converting it to EPS, Lyx does. I do not know how to prevent the conversion taking place or how to do it any other way :/
– soocki
Oct 5 at 20:59






I don't think I have to, nor should I, nor I want to. The above error is produced when I try to 'View DVI' of a document with a picture in it. I don't insist on converting it to EPS, Lyx does. I do not know how to prevent the conversion taking place or how to do it any other way :/
– soocki
Oct 5 at 20:59






1




1




That is the key point. When you ask for a DVI, you force to LyX (to LaTeX) to use only eps images, but why the hell you want the output in the old (and mostly unknown) DVI format ? With "View [PDF(pdflatex)] you will use the PNG directly without problems and the ouput is the well-know PDF format that anyone can open without problems.
– Fran
Oct 5 at 22:06






That is the key point. When you ask for a DVI, you force to LyX (to LaTeX) to use only eps images, but why the hell you want the output in the old (and mostly unknown) DVI format ? With "View [PDF(pdflatex)] you will use the PNG directly without problems and the ouput is the well-know PDF format that anyone can open without problems.
– Fran
Oct 5 at 22:06














'View DVI' is the only available option. Glad we are able to come up with some 'key points' means we are getting somewhere.
– soocki
Oct 6 at 14:57




'View DVI' is the only available option. Glad we are able to come up with some 'key points' means we are getting somewhere.
– soocki
Oct 6 at 14:57












Thank you @Fran you have helped me to solve this. It turns out Lyx were unable to detect the pdf viewer I had installed. After installation of such (mupdf) the option to 'View PDF (pdflatex)' this and other options became present and I am able to render resulting pdf file via 'View' menu. Thanks again man I was banging my head against the wall here. Guess that's what happens when you don't understand the tools too well yet you still trying to use them.
– soocki
Oct 6 at 15:16






Thank you @Fran you have helped me to solve this. It turns out Lyx were unable to detect the pdf viewer I had installed. After installation of such (mupdf) the option to 'View PDF (pdflatex)' this and other options became present and I am able to render resulting pdf file via 'View' menu. Thanks again man I was banging my head against the wall here. Guess that's what happens when you don't understand the tools too well yet you still trying to use them.
– soocki
Oct 6 at 15:16












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Do not use 'DVI' format with documents containing images. Make sure appropriate pdf viewer is present and use 'View PDF(...)' option to render the resulting pdf's.






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%2f454012%2flyx-refuses-to-work-with-images-of-various-formats-error-cannot-convert-file%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













    Do not use 'DVI' format with documents containing images. Make sure appropriate pdf viewer is present and use 'View PDF(...)' option to render the resulting pdf's.






    share|improve this answer

























      up vote
      0
      down vote













      Do not use 'DVI' format with documents containing images. Make sure appropriate pdf viewer is present and use 'View PDF(...)' option to render the resulting pdf's.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Do not use 'DVI' format with documents containing images. Make sure appropriate pdf viewer is present and use 'View PDF(...)' option to render the resulting pdf's.






        share|improve this answer












        Do not use 'DVI' format with documents containing images. Make sure appropriate pdf viewer is present and use 'View PDF(...)' option to render the resulting pdf's.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 6 at 15:19









        soocki

        62




        62






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f454012%2flyx-refuses-to-work-with-images-of-various-formats-error-cannot-convert-file%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

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents