Re: I get an error when I used urllib2.urlopen() to open a remote file in a ftp server

2011-01-06 Thread Ariel
You are right, Thanks. On Thu, Jan 6, 2011 at 12:55 PM, Ian Kelly wrote: > On Thu, Jan 6, 2011 at 10:26 AM, Ariel wrote: > > Hi everybody: > > > > I get an error when I used urllib2.urlopen() to open a remote file in a > ftp > > server, My code is the fol

Re: I get an error when I used urllib2.urlopen() to open a remote file in a ftp server

2011-01-06 Thread Ian Kelly
On Thu, Jan 6, 2011 at 10:26 AM, Ariel wrote: > Hi everybody: > > I get an error when I used urllib2.urlopen() to open a remote file in a ftp > server, My code is the following: > >>>> file = 'ftp:/192.168.250.14:2180/RTVE/VIDEOS/Thisisit.wmv' Looks to me l

I get an error when I used urllib2.urlopen() to open a remote file in a ftp server

2011-01-06 Thread Ariel
Hi everybody: I get an error when I used urllib2.urlopen() to open a remote file in a ftp server, My code is the following: >>> file = 'ftp:/192.168.250.14:2180/RTVE/VIDEOS/Thisisit.wmv' >>> mydata = urllib2.urlopen(file) Traceback (most recent call last): File &quo

Including a remote file -- permission denied?

2010-05-14 Thread Aaron Scott
I have a Python script running on the default OSX webserver, stored in /Library/WebServer/CGI-Executables. That script spits out a list of files on a network drive, a la "os.listdir('/Volumes/code/ directory/')". If I just execute this from the terminal, it works as expected, but when I try to acce

Re: How to open a remote file using python.

2009-02-22 Thread Chris Rebert
On Sun, Feb 22, 2009 at 9:02 PM, venutaurus...@gmail.com wrote: > On Feb 23, 9:25 am, MRAB wrote: >> venutaurus...@gmail.com wrote: >> > Hello all, >> >I am writing an application where I need to open a shared >> > file on a remote machine using python script. I tried using the >> > f

Re: How to open a remote file using python.

2009-02-22 Thread odeits
On Feb 22, 9:02 pm, "venutaurus...@gmail.com" wrote: > On Feb 23, 9:25 am, MRAB wrote: > > > > > venutaurus...@gmail.com wrote: > > > Hello all, > > >            I am writing an application where I need to open a shared > > > file on a remote machine using python script. I tried using the > > > f

Re: How to open a remote file using python.

2009-02-22 Thread venutaurus...@gmail.com
On Feb 23, 9:25 am, MRAB wrote: > venutaurus...@gmail.com wrote: > > Hello all, > >            I am writing an application where I need to open a shared > > file on a remote machine using python script. I tried using the > > following function: > > > f = urllib.open("\\remote_machine\\folder1\\fil

Re: How to open a remote file using python.

2009-02-22 Thread MRAB
venutaurus...@gmail.com wrote: Hello all, I am writing an application where I need to open a shared file on a remote machine using python script. I tried using the following function: f = urllib.open("\\remote_machine\\folder1\\file1.doc") I also tried using class urllib.Fa

Re: How to open a remote file using python.

2009-02-22 Thread Chris Rebert
On Sun, Feb 22, 2009 at 8:13 PM, venutaurus...@gmail.com wrote: > Hello all, > I am writing an application where I need to open a shared > file on a remote machine using python script. I tried using the > following function: > > f = urllib.open("\\remote_machine\\folder1\\file1.doc") > >

How to open a remote file using python.

2009-02-22 Thread venutaurus...@gmail.com
Hello all, I am writing an application where I need to open a shared file on a remote machine using python script. I tried using the following function: f = urllib.open("\\remote_machine\\folder1\\file1.doc") I also tried using class urllib.FancyURLopener(...) but d

FTPLIB fails to retreive the remote file

2007-06-07 Thread Hrusikesa Patro
Hi All, I'm trying to download a remote file through FTP. Here's the script: ### #!/usr/bin/env python import ftplib import os import time ddir="C:\\ftp" os.chdir(ddir) f=ftplib.FTP("10.2.2.1", "user

Re: remote file

2006-01-25 Thread Fredrik Lundh
"yqyq22" wrote: > How to open remote file ? example: \\server\share\file.txt like you'd open any other file: f = open(filename) e.g. f = open(r"\\server\share\file.txt") -- http://mail.python.org/mailman/listinfo/python-list

remote file

2006-01-25 Thread yqyq22
How to open remote file ? example: \\server\share\file.txt thanks a lot -- http://mail.python.org/mailman/listinfo/python-list