Re: PDF images in LyX RC3

2011-04-19 Thread Michal
> For some reason I don't understand, LyX insert system32 folder > reference before its own in PATH. > I have no control over this behavior. From what you've described, C:\Windows\system32 wasn't already on the PATH before (I mean 'outside' of LyX). Then this might exactly be the reason of its

Re: PDF images in LyX RC3

2011-04-19 Thread Paul A. Rubin
So something moved the Python directory from after the LyX bin directory (in the LyX prefix) to before it (in the environment in which the script runs). That's odd. On 04/19/2011 04:08 PM, Diego Queiroz wrote: Copied from Tools > Preferences > Paths C:\Program Files\LyX 2.0rc3\bin C:\Program

Re: PDF images in LyX RC3

2011-04-19 Thread Diego Queiroz
Copied from Tools > Preferences > Paths C:\Program Files\LyX 2.0rc3\bin C:\Program Files\Python\Python25 C:\Program Files\MiKTeX 2.9\miktex\bin C:\Program Files\LyX 2.0rc3\etc\Ghostscript\bin C:\Program Files\LyX 2.0rc3\etc\ImageMagick-6.6.9-5 C:\Program Files\GIMP-2.0\bin C:\Program Files\Adobe\A

Re: PDF images in LyX RC3

2011-04-19 Thread Paul A. Rubin
What is the value of \path_prefix in your LyX preferences file? Paul On 04/19/2011 03:51 PM, Diego Queiroz wrote: Well... I think I wasn't clear. Sorry. All this information I get *inside* "convertDefault.py". To get this info, first I changed it to show me the contents of PATH variable ( os.

Re: PDF images in LyX RC3

2011-04-19 Thread Diego Queiroz
BTW, I created a virtual machine to try to reproduce the scenario in a fresh Windows install. Sadly, I wasn't able to reproduce. Maybe this is happening due to files/configurations/anything left by other instalations? Regards, --- Diego Queiroz 2011/4/19 Diego Queiroz > Well... I think I wa

Re: PDF images in LyX RC3

2011-04-19 Thread Diego Queiroz
Well... I think I wasn't clear. Sorry. All this information I get *inside* "convertDefault.py". To get this info, first I changed it to show me the contents of PATH variable ( os.environ['PATH'] ). Then, *inside* conventDefault.py, the content of the PATH variable is what I said. For some reason

Re: PDF images in LyX RC3

2011-04-19 Thread Paul A. Rubin
On 4/18/2011 10:16 PM, Diego Queiroz wrote: Does someone know why "c:\Windows\System32" is included in the path? That's standard on Windows systems AFAIK. I'm looking at the path on my Win XP machine right now, and it has C:\WINDOWS\System32, C:\WINDOWS and C:\WINDOWS\System32\wbem on the Sy

Re: PDF images in LyX RC3

2011-04-19 Thread Michal
On Mon, 18 Apr 2011 23:16:01 -0300 Diego Queiroz wrote: > But when this script is run, my environment variable PATH contains (in > order): > > 1. The path to the temporary folder where the image should be created > 2. The path of the Python executable > 3. C:\Windows\System32 (???) > 4. The valu

Re: PDF images in LyX RC3

2011-04-18 Thread Diego Queiroz
Well... I was investigating what's happening when I insert a image into a document. As everybody should know, the script "convertDefault.py" is run. But when this script is run, my environment variable PATH contains (in order): 1. The path to the temporary folder where the image should be create

Re: PDF images in LyX RC3

2011-04-18 Thread Diego Queiroz
Hmm, I see. Any other guess? --- Diego Queiroz 2011/4/18 Paul A. Rubin > On 04/18/2011 05:42 PM, Diego Queiroz wrote: > > > Two more things. First, you might check the delegates.xml file (should > be in > > the config folder of the IM installation) and make sure it has one or > more > > d

Re: PDF images in LyX RC3

2011-04-18 Thread Paul A. Rubin
On 04/18/2011 05:42 PM, Diego Queiroz wrote: > Two more things. First, you might check the delegates.xml file (should be in > the config folder of the IM installation) and make sure it has one or more > delegate records with "decode=pdf" in them, and that those records name "gs" as > the dele

Re: PDF images in LyX RC3

2011-04-18 Thread Diego Queiroz
> Two more things. First, you might check the delegates.xml file (should be in > the config folder of the IM installation) and make sure it has one or more > delegate records with "decode=pdf" in them, and that those records name "gs" as > the delegate. I think you may get the point. My delegates

Re: PDF images in LyX RC3

2011-04-18 Thread Michal
On Mon, 18 Apr 2011 22:17:31 +0200 Michal wrote: > BTW one more thing to check: is the *first* ImageMagick version > pointed to via PATH the one installed via LyX installer or is it the > one installed separately? Just to be sure... Also the following is worth noting: when you execute 'con

Re: PDF images in LyX RC3

2011-04-18 Thread Paul A . Rubin
Two more things. First, you might check the delegates.xml file (should be in the config folder of the IM installation) and make sure it has one or more delegate records with "decode=pdf" in them, and that those records name "gs" as the delegate. Second, do you have a 64 bit version of Windows? I

Re: PDF images in LyX RC3

2011-04-18 Thread Michal
On Mon, 18 Apr 2011 17:04:31 -0300 Diego Queiroz wrote: > Just to know, somebody else is experiencing this problem? > Or nobody use PDF as images in LyX? > > I mean, since the first beta release of LyX 2.0 I am experiencing this > problem. > At first I though it was just some misconfiguration, bu

Re: PDF images in LyX RC3

2011-04-18 Thread Diego Queiroz
This string is in LyX "PATH preffix" preference: "C:\Program Files\LyX 2.0rc3\etc\Ghostscript\bin" The path exist and ghostscript appear to be working in that folder. Just to know, somebody else is experiencing this problem? Or nobody use PDF as images in LyX? I mean, since the first beta rele

Re: PDF images in LyX RC3

2011-04-18 Thread Michal
On Mon, 18 Apr 2011 15:59:49 -0300 Diego Queiroz wrote: > Ghostscript isn't really installed in the system. > But the LyX Windows installer provides the Ghostscript bundled with > the executable, doesn't it? > > I can see Ghostscript in "c:\Program Files\LyX 2.0rc3\etc\Ghostscript" For LyX t

Re: PDF images in LyX RC3

2011-04-18 Thread Paul A. Rubin
Yes, the "omnibus" installer provides GS. Next question is whether IM knows where to find GS. Is the GS binary on your system command path? Paul On 04/18/2011 02:59 PM, Diego Queiroz wrote: Ghostscript isn't really installed in the system. But the LyX Windows installer provides the Ghostscri

Re: PDF images in LyX RC3

2011-04-18 Thread Diego Queiroz
Ghostscript isn't really installed in the system. But the LyX Windows installer provides the Ghostscript bundled with the executable, doesn't it? I can see Ghostscript in "c:\Program Files\LyX 2.0rc3\etc\Ghostscript" Regards, --- Diego Queiroz 2011/4/18 Paul Rubin > Diego Queiroz gmail.com

Re: PDF images in LyX RC3

2011-04-18 Thread Paul Rubin
Diego Queiroz gmail.com> writes: > When I manually run Image Magick "convert.exe" I get the following error: > > -- > > Magick: no decode delegate for this image format `C:/Users/Diego/AppData/Local/Temp/lyx_tmpdir.Hp2296/gconvert10.yg2296.pdf' error/constitut

PDF images in LyX RC3

2011-04-17 Thread Diego Queiroz
Hello. I am running LyX RC3 (unofficial Windows release) and I am experiencing some problems when I insert PDF images in a LyX document. In the image placeholder I can read "Error converting to loadable format", this is probably some error with ImageMagick (the convertDefault.py script is run) but