Directions on accessing shared folder in windows network

2011-08-10 Thread Ameet Nanda
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("

Problem using pbzip2 with bz2.BZ2File().read()

2010-06-21 Thread Ameet Nanda
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 c

Problem with proxies

2007-10-16 Thread Ameet Nanda
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

Query

2007-10-09 Thread Ameet Nanda
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 wo