View Single Post
Old 12-20-2009, 03:22 PM   #172
yecam
Enthusiast
yecam began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Feb 2009
Device: BeBook
Failed attempt with unswindle.py version 3

I am wondering if I have a defective version of swindle.pyw.
When I first attempted to run it and saw no response I tried running it with a command line prompt as in unswindlexx.py.

The syntax error that I saw was
unswindlexx.py:722: Warning: 'with' will become a reserved
keyword in Python 2.6
File "C:\Documents and Settings\Owner.EMAC\My Documents\My eBooks\mobi_convert\unswindlexx.py", line 722
with tempfile.NamedTemporaryFile(delete=False) as tmpf:

In looking at the source I found
with tempfile.NamedTemporaryFile(delete=False) as tmpf:
tmppath = tmpf.name

This appeared to be a comment missing the leading # so after "fixing"this and moving the tmppath = tmpf.name indenting back I got the following error.

^
SyntaxError: invalid syntax

unswindlexx.py
Traceback (most recent call last):
unswindlexx.py", line 60, in <module>
class PROCESS_BASIC_INFORMATION(Structure):
unswindlex.py", line 61, in PROCESS_BASIC_INFORMATI
ON
_fields_ = [('Reserved1', PVOID),
NameError: name 'PVOID' is not defined



Two questions:

Is there a better version of this script located elsewhere?

Am I missing a definitions file in my Python 2.6 installation?

I am running Windows XP Pro SP3 with the latest updates available.
yecam is offline   Reply With Quote