Re: Support for xfig graphics (Solved)

2022-06-25 Thread Jean-Marc Lasgouttes

Le 25/06/2022 à 17:42, Dr Eberhard W Lisse a écrit :

Well, I see two things :-)-O

You didn't include it as graphic but as external file, so it does not
preview in the lyX file.  Cosmetic, but I wonder why one would do that.


Why one who do what? Use the external inset machinery? It allows to 
handle the case where xfig produces both a LaTeX file (with the text) 
and a pdf file (with the image).



And indeed the stock fig2pdftex.py lacks a shebang on my Mac which I
would not consider a feature so I have raised it as

 https://www.lyx.org/trac/ticket/12560

on the tracker.


Could you elaborate on why this caused the issue?

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


Re: Support for xfig graphics (Solved)

2022-06-25 Thread Dr Eberhard W Lisse

Well, I see two things :-)-O

You didn't include it as graphic but as external file, so it does not
preview in the lyX file.  Cosmetic, but I wonder why one would do that.

And indeed the stock fig2pdftex.py lacks a shebang on my Mac which I
would not consider a feature so I have raised it as

https://www.lyx.org/trac/ticket/12560

on the tracker.

greetings, el

On 2022-06-21 20:08 , Rudi Gaelzer wrote:
> On terça-feira, 21 de junho de 2022 14:26:39 -03 Rudi Gaelzer wrote:
>> 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
>>
>> 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.
>
> It seems that the problem was indeed a mix-up with different python
> distributions.  Got rid of the Intel python distribution and now the
> internal conversion of Xfig files is working again.

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


Re: Support for xfig graphics (Solved)

2022-06-21 Thread Rudi Gaelzer
On terça-feira, 21 de junho de 2022 14:26:39 -03 Rudi Gaelzer wrote:
> 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
> 
> 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.

It seems that the problem was indeed a mix-up with different python 
distributions.
Got rid of the Intel python distribution and now the internal conversion of 
Xfig files is working again.
-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



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