View Single Post
Old 02-21-2009, 02:22 PM   #154
Sydney's Mom
Wizard
Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.
 
Sydney's Mom's Avatar
 
Posts: 2,899
Karma: 6995721
Join Date: Dec 2008
Location: Idaho, on the side of a mountain
Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S
Quote:
Originally Posted by i♥cabbages View Post
These are two entirely different errors, which is making this harder to diagnose. The first one means that you saved the Python script as something other than ASCII, in this case seemingly UTF-16. Open a new instance of notepad, showing a completely empty file. Copy-paste from the web page again, making certain to copy from the text-box and not from the syntax-colored page content.

The second error means that one of the embedded machine code functions in the Python script attempted to access invalid memory. But (a) I have absolutely no idea in hell what could be causing that and (b) when I simulate generating an access violation I get the exception-trace window I added for adeptkey v2. I'd say that you're still running v1, except the line numbers from the exception traces match v2.

I'm hoping the second error is somehow an artifact of the encoding problem causing the first error. If not, I'm out of ideas.

Okay, I am a real computer dope, so please forgive me. I was saving the color-page, merely downloading and renaming. So, I copied the text, pasted into notebook, and then saved as adeptkey.pyw, all files, in python26. I used the command prompt as administrator, and typed C:/Python26>python.exe adeptkey.pyw

This is the error message I got, in and ADEPT Key box:

Traceback (most recent call last):
File "adeptkey.pyw", line 197, in main
retrieve_key(keypath)
File "adeptkey.pyw", line 139, in retrieve_key
vendor = cpuid0()
File "adeptkey.pyw", line 102, in cpuid0
cpuid0__(buffer)
WindowsError: exception: access violation writing 0x01A3E5F8

When I tried the second, I got:

Traceback (most recent call last):
File "adeptkey.pyw", line 198, in main
retrieve_key(keypath)
File "adeptkey.pyw", line 140, in retrieve_key
vendor = cpuid0()
File "adeptkey.pyw", line 103, in cpuid0
cpuid0__(byref(buffer))
WindowsError: exception: access violation writing 0x019B1E30
Sydney's Mom is offline   Reply With Quote