Accessing python from a network share in windows 7
I access python from a network share. This works fine on XP but on windows 7 it throws the following error: Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import random Traceback (most recent call last): File "<stdin>", line 1, in <module> File "t:\win32\python-2.6.1\lib\random.py", line 871, in <module> _inst = Random() File "t:\win32\python-2.6.1\lib\random.py", line 96, in __init__ self.seed(x) File "t:\win32\python-2.6.1\lib\random.py", line 110, in seed a = long(_hexlify(_urandom(16)), 16) WindowsError: [Error 127] The specified procedure could not be found Is there some security policy that I need to enable/disable to use python from a network on windows 7? It works without any issue on win7 if I copy python to my local drive. Also, accessing python from the same network share works fine on win XP. So I am suspecting some security policy of win7 that is causing problem while accessing it over a network share.
January 8th, 2010 3:23am

How does file sharing work? Where is the network share located, on a network storage or on a computer?Please change the NTLM authentication level in Windows 7. You may refer the following article. Network security: LAN Manager authentication level Please change the level to “Send LM & NTLM - use NTLMv2 session security if negotiated”. If the issue persists, I suggest that you make the following changes on the Windows 7 computer: 1. Open gpedit.msc. 2. Find the policy Windows Settings -> Security Settings -> Local Policies -> Security Options ->Network Security: Configure encryption types allowed for Kerberos 3. Configure the policy. If it is not configured, actually both DES cipher suites are disabled. I suggest that you enable all the suits. Then please check the result. Arthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
January 13th, 2010 9:35am

Thanks for the reply Arthur. I tried both of your suggestions but with no luck. The share is a network storage.
January 14th, 2010 3:50am

How does it work if you share python from a shared folder on a hard drive of a computer? I suspect that the issue is caused by the compatibility between the authentications of the network storage and Windows 7. What is the model of the network storage? Meantime you may contact the manufacturer of the network storage. Arthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
January 14th, 2010 10:40am

Hi Arthur, It works fine if I access it through a shared folder. So, ya u are right that it must be some compatibility issue between the n/w storage and windows 7. The storage is from EMC.
January 20th, 2010 9:46pm

Hi Johnwin7, Did you ever figure this out? I'm having the exact same issue on my new win7 box. Thanks.
Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2010 12:05am

Nope. I haven't figured it out
January 26th, 2010 12:47am

Hi, I keep getting the same error, Is there any solution found yet? Arthur? Thanks.
Free Windows Admin Tool Kit Click here and download it now
September 22nd, 2010 3:55pm

We are getting a similar error running 'import random' in python but via Excel. We are working on an add-in and when I run on the python command line, it works great. But through excel I get an error. It's as if Excel won't let python access the random device and we get an empty string back. Similar problem as yours but different circumstances. Thanks. Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\python26\lib\random.py", line 873, in <module> _inst = Random() File "c:\python26\lib\random.py", line 96, in __init__ self.seed(x) File "c:\python26\lib\random.py", line 110, in seed a = long(_hexlify(_urandom(16)), 16) WindowsError: [Error -2146893818] Invalid Signature
February 17th, 2011 11:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics