473,406 Members | 2,404 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,406 software developers and data experts.

Problems with os.rename

I am having problems with os.rename on AIX

The source file definately exists and the target file does not.
However the rename always generates an OSerror exception. I can do
the rename via a mv statement at the AIX command line with no problem.

How can I get more info what the cause of the OSError exception is?

N.B. The source file is created by a process run via subprocess e.g.

from subprocess import Popen, PIPE, STDOUT
p = Popen(self.command, stdout=PIPE, stderr=STDOUT, shell=True)
return p.wait()

Could this be the issue?

Apr 20 '07 #1
1 1467
loial wrote:
How can I get more info what the cause of the OSError exception is?
For starters, post the traceback here.
--
Michael Hoffman
Apr 20 '07 #2

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

Similar topics

0
by: Bruce P. | last post by:
I have a C++ routine that uses the fcloseall() command, then moves immediately into a routine that renames the files just closed. Occasionally, a rename will fail, even though both the "from" and...
4
by: Skeleton Man | last post by:
Hi, Upon installing Oracle 9i (9.2.0.1.0) on a Debian box, the whole install process completes, but when I get to the very end and it trys to setup configuration assistants, all three fail with...
0
by: David Baumgarten | last post by:
I am having problems solving an ftp issue. I uploaded user selected files into a specific directory. Then I open the file in my vb.net app, and open a data table. The information is then inputted...
16
by: ommadawn | last post by:
I was wondering if someone here can help me with a problem I'm having. I'm working my way through the 'Beginning JavaScript' (2'nd Edition) book by Wrox Press. As I get further into the book, it...
1
by: Andreas | last post by:
Hi, we have some problems with the following situation: A remote application A writes files to a directory monitored by a FileSystemWatcher-instance in application B. A creates the file with...
12
by: mantrid | last post by:
Im trying to move a file but am having luck my code is below. The temp and target paths are valid as they echo correctly. but I cant get the copy() function to work, or the rename() function ...
3
by: ARC | last post by:
I'm having trouble here with Access 2007 and connecting to a different database. The code below works great IF the previous back-end database connection is still present and you are trying to...
1
by: lukas | last post by:
hello, i recently had the job of having to rename about 200 files. The source for the renaming was a bunch of names in a file. I know next to nothing when it comes to bash scripting (which would...
0
by: ishay44 | last post by:
Hello! I try to build (using Visual 2005 and Excel 2007) the example described in the Microsoft Help and Support "How to automate Excel from MFC and Visual C++ 2005 or Visual C++ .NET to fill or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.