On 08.12.2011 02:46, Blair Hall wrote:
> I have just tried to install the latest PyX 0.11.1, but I failed
> miserably.
>
> I went back to the 0.10.0 version and things are looking much better.
> I have been able to run the simple examples on the PyX website,
> whereas nothing worked with 0.11.1
>
> I wonder, has 0.11.1 been tested on Windows?
If you just want to get the tar/gz'ed PyX 0.11.1 from sourceforge
running on windows, do the following:
Assume all files reside in C:\Python27\Lib\site-packages\pyx
In text.py, replace line 910
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, close_fds=True)
with
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)#, close_fds=True)
in filelocator.py, replace line 204
full_filename = full_filenames.split("\n")[0]
with
full_filename = full_filenames.split("\n")[0].rstrip("\r")
and in dvifile.py in line 224 replace
fontfile = filelocator.open(fontname, [filelocator.format.vf])
with
fontfile = filelocator.open(fontname,
[filelocator.format.vf], mode="rb")
in case you don't want to pull the latest SVN, as mentioned by the other
posters.
With best regards,
Guenter
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user