Directions on accessing shared folder in windows network
Hi, Can anyone point me to a way to access windows shared folders from the network using a python script. I tried accessing using open, which is mentioned to work perfectly on the web, but it gives me following errors >>>open(NW_PATH) it gives me a permission denied error as follows: >>> open("ameetn\\DropBox\\") Traceback (most recent call last): File "", line 1, in IOError: [Errno 2] No such file or directory: 'ameetn\\' >>> open("ameetn\\DropBox") Traceback (most recent call last): File "", line 1, in IOError: [Errno 13] Permission denied: 'ameetn\\DropBox' I am running Python 2.6 on Windows 7 platform. Thanks in advance, Ameet -- http://mail.python.org/mailman/listinfo/python-list
Query
Hi, I am a Py Newbie. I am learning to write python scripts on Linux , I want to know what to do in order to get the executable file as a binary. Because now I run it by simply using the python compiler every time to run the scripts $> python scriptfile.py I want to make a binary file , which would execute on it's own. -Nax0r The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com-- http://mail.python.org/mailman/listinfo/python-list
Problem with proxies
Hi All, I access net using a proxy, which I have to authenticate everytime I try to access net from my system. Now when I use urllib2.urlopen(url) , I cant get ahead. I must provide proxy authentication , I tried reading docs online which speak of something called as FancyUrlOpener. Now i want to hardcode my username and password inside the script or somehow save it. How do I go ahead with that ?? - Ameet The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com -- http://mail.python.org/mailman/listinfo/python-list
Problem using pbzip2 with bz2.BZ2File().read()
When I compress a file with bzip2 from command line and read it with *uncomp_data = bz2.BZ2File("fname").read()* , it reads the whole file into uncomp_data. However when I compress the file with pbzip2 from command line and read it in a similar way* it just reads the block size of data* used for compression. So if I compress with: *pbzip2 temp.temp -b3 *the read returns 30 bytes of data*. *I tried with various block sizes to confirm. Has it got something to do with the block separator fields ? -- http://mail.python.org/mailman/listinfo/python-list