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.
graphics lyx linux
add a comment |
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.
graphics lyx linux
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
add a comment |
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.
graphics lyx linux
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
graphics lyx linux
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Oct 6 at 15:19
soocki
62
62
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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