On terça-feira, 21 de junho de 2022 13:09:22 -03 Jean-Marc Lasgouttes wrote:
> Le 21/06/2022 à 15:12, Rudi Gaelzer a écrit :
> > Running:
> > Fedora Core 36 on x64 box
> > KDE Plasma Version: 5.24.5
> > LyX Version 2.3.6.1 (provided by Fedora repo)
> > 
> > It seems that the support for xfig figures is not working on my system. 
> > See the attached files.
> > The Xfig file sets the TeX flag for text.
> 
> Hi again,
> 
> Do you have "transfig" installed?

Affirmative.

> 
> Are there some relevant error messages in the Messages pane?
> 
> JMarc

Indeed there is:

14:20:04.072: Previewing ...
14:20:04.076: (buffer-view)
14:20:04.085: python -tt "/usr/share/lyx/scripts/fig_copy.py" "/home/rudi/temp/
ufrgs/Coulomb_Law.fig" "/tmp/lyx_tmpdir.DFELBfPgzbQo/
lyx_tmpbuf25/40_home_rudi_temp_ufrgs_Coulomb_Law.fig"
14:20:04.104: Fatal Python error: init_sys_streams: can't initialize sys 
standard streams
14:20:04.104: Python runtime state: core initialized
14:20:04.104: Traceback (most recent call last):
14:20:04.104:   File "/usr/lib64/python3.10/io.py", line 54, in <module>
14:20:04.105: ImportError: cannot import name 'text_encoding' from 'io' 
(unknown location)
14:20:04.117: pdflatex  "tes_xfig01.tex"
14:20:04.190: This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) 
(preloaded format=pdflatex)
14:20:04.190:  restricted \write18 enabled.
14:20:04.223: entering extended mode
14:20:04.223: (./tes_xfig01.tex
14:20:04.223: LaTeX2e <2020-10-01> patch level 4
14:20:04.226: L3 programming layer <2021-05-07>
Systemcall.cpp (276): Systemcall: 'python -tt "/usr/share/lyx/scripts/
fig_copy.py" "/home/rudi/temp/ufrgs/Coulomb_Law.fig" "/tmp/
lyx_tmpdir.DFELBfPgzbQo/lyx_tmpbuf25/40_home_rudi_temp_ufrgs_Coulomb_Law.fig"' 
finished with exit code 1
14:20:04.560: Error while exporting format: PDF (pdflatex)Systemcall.cpp (276): 
Systemcall: 'pdflatex  "tes_xfig01.tex"' finished with exit code 1
14:20:59.489: Automatic save done.
14:21:37.497: (dialog-toggle progress)

There's a fatal error with python.  Is that it?
I had to force the standard distribution for python in .bashrc with:
alias python='/usr/bin/python3'
otherwise the standard would fall to the Intel distribution.


-- 
Rudi Gaelzer
Instituto de Física
Departamento de Física
Universidade Federal do Rio Grande do Sul
Av. Bento Gonçalves, 9500
Caixa Postal 15051
91501-970 Porto Alegre - RS
Fone: (51) 3308-6474
FAX: (51) 3308-7286
Usuário de Linux registrado # 153741


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to