swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Using rfxview on website


From: Chris
Subject: Re: [Swftools-common] Using rfxview on website
Date: Thu, 4 Nov 2010 14:59:46 +0100

>On Thu, 04 Nov 2010 14:53:09 +0100
>"Hans Nuecke (vservu)" <address@hidden> wrote:

> Hi Chris,
> your email made me try to install the Python gfx module; finally ;-)
> So far I used pdf2swf in a batch file...ui
> 
> But: during the "python setup.py build" process I get the an error
> 
>        File "setup.py", line 4, in <module>
>          from distutils.core import CompileError
>     ImportError: cannot import name CompileError
> 
> When I take the statement with the import out (in setup.py: "from 
> distutils.core import CompileError") I get the next error (no surprise):
> "NameError: global name 'CompileError' is not defined"
> 
> There is a try-except in line 105 that tests for CompileError. Which 
> could not be loaded.
> I got stuck here and couldn't find a solution so far.

afaicr the problem is that CompileError no longer exists in distutils.core
with Python 2.7.  Commenting out the import line at the top of setup.py,
allows the build process to proceed, but the gfx module doesn't actually
get created.

Have you tried the alternative manual install instructions here? 

  http://wiki.swftools.org/index.php/Python_gfx_tutorial

> Here my config:
> Windows7 64
> Python 2.7 (I tried both 64 and 32 bit)
> Latest swftools-2010-10-12-2000 download
> 
> I will check if it installs under Windows XP with Python 2.6.
> But if someone has an idea how to get the setup.py working under 
> Python27 and Win7 would be great!

It should do since the changes only affect Python 2.7 and up.  That said,
it's been a good while since I compiled gfx.  pdf2swf is not something I
tend to use that often, if at all, and neither is gfx.  I will go back and
look though.

> Thanks for your great work and support!

While it's good to be appreciated, cheers for that, there's not just me
here you know (although it sometimes feels that way )! ;o)  Besides which,
my fields of endeavour are rather limited.

Regards,



Chris.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]