473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

ftputil upload error

Hello,

I have one problem about ftputil file upload.Here is my short example:

from ftputil import FTPHost
import tkFileDialog
import os
from Tkinter import Tk

ftp=FTPHost('myserver','username','password')

forupload=tkFileDialog.askopenfile(parent=root)

file=forupload.name


## I was choose file C:/Documents and Settings/VEKI/My
Documents/internet/popravak.txt ##

ftp.upload(file,os.path.basename(file))

THEN I GAIN ERROR:
Traceback (most recent call last):
File "<pyshell#48>", line 1, in -toplevel-
ftp.upload(file,os.path.basename(file),'b')
File "C:\Python24\lib\ftputil.py", line 417, in upload
self.__copy_file(source, target, mode, open, self.file)
File "C:\Python24\lib\ftputil.py", line 406, in __copy_file
target = target_open(target, target_mode)
File "C:\Python24\lib\ftputil.py", line 245, in file
host._file._open(effective_file, mode)
File "C:\Python24\lib\ftp_file.py", line 115, in _open
self._conn = ftp_error._try_with_ioerror(
File "C:\Python24\lib\ftp_error.py", line 101, in _try_with_ioerror
raise FTPIOError(ftp_error)
FTPIOError: 550 popravak.txt: Access is denied.
Debugging info: ftputil 2.1, Python 2.4.2 (win32)

Regards,

Vedran

Dec 2 '06 #1
1 1886
On Sat, 02 Dec 2006 04:03:53 -0800, Croteam wrote:
FTPIOError: 550 popravak.txt: Access is denied.
Seems pretty self-explanatory to me.

M
Dec 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
1
by: geon | last post by:
Hi, When I try to upload many files I get such a error message: Traceback (most recent call last): File "I:\Python\my_py\wwwzaci\xcopy_ftp.py", line 51, in ? except: x=host.upload(zdroj,...
1
by: s99999999s2003 | last post by:
hi i am currently using the FTP wrapper from http://cheeseshop.python.org/pypi/ftputil/2.0.3 The documentation states "In the current implementation, this doesn't construct "intermediate"...
2
by: Sheldon | last post by:
Hi Everyone, I recently installed a module called ftputil and I am trying to understand how it works. I created a simple program to download about 1500 files from my ftp and the program looks...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
0
by: veki | last post by:
HI,ALL I am new ftputil user and I need help about something: my prog: >>> import tkFileDialog >>> import ftputil >>> name=tkFileDialog.askopenfile() >>>ftp=ftputil.FTPHost() #Please when you...
0
by: vedran_dekovic | last post by:
Hi, For people who using ftputil: Have ftputil any protection(SSL......) or any other protection?????
1
by: Croteam | last post by:
Hello, I trying to make ftputil client that uses ssl security.First I was try to make that with M2Crypto,but when I use it, I get the error: Traceback (most recent call last): File...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.