This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ssb22
Recipients ajaksu2, georg.brandl, ghazel, loewis, ssb22
Date 2009-02-15.17:15:10
SpamBayes Score 3.1280756e-11
Marked as misclassified No
Message-id <1234718112.71.0.860317866979.issue1384175@psf.upfronthosting.co.za>
In-reply-to
Content
I got a very similar error on an Otek Pocket PC running Windows Mobile
2003 SE and the latest version of pythonce from
pythonce.sourceforge.net.  The error is:

File
"C:\devl\release\PythonCE-2.5-20061219\Python-2.5-wince\Lib\random.py",
line 108, in seed
<type 'exceptions.WindowsError'>: [Error 87] Provider DLL failed to
initialize correctly

Although this was thrown up at the "import random" at the start of my
program, the actual change I made that resulted in this error was much
later in the program, and it was to change the lines

            try: justSynthesize=raw_input("Say: ")
            except EOFError: break

into

            try:
justSynthesize=raw_input(cond(winCEsound,"".join(warnings_printed)+cond(warnings_printed,"\n",""),"")+"Say:
") # (WinCE uses an input box so need to repeat the warnings if any)
            except EOFError: break

where "cond" is an "if a then b else c" function.

A little more investigation showed that the culprit was the comment! 
Removing the comment after the raw_input() call (or putting it on a
different line) causes the program to work again.

I confirmed that adding any raw_input() call to any function, with a
prompt parameter and a comment afterwards, causes this error to happen
on the "import random" near the top of the program.  This is a very
strange bug.
History
Date User Action Args
2009-02-15 17:15:12ssb22setrecipients: + ssb22, loewis, birkenfeld, ghazel, ajaksu2
2009-02-15 17:15:12ssb22setmessageid: <1234718112.71.0.860317866979.issue1384175@psf.upfronthosting.co.za>
2009-02-15 17:15:11ssb22linkissue1384175 messages
2009-02-15 17:15:10ssb22create