| Anonymous | Login | Signup for a new account | 2010-02-27 10:41 CET |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0000130 | [CapiSuite] scripts | minor | always | 2006-02-15 20:16 | 2006-02-15 20:16 | |||||||
| Reporter | gagern | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | new | Product Version | 0.4.5 | |||||||||
| Summary | 0000130: Directory structure, multiple file systems and os.rename | |||||||||||
| Description |
I had /var/spool/capisuite/users/username a symlink to /home/username/capisuite where /home is a mount point for a dedicated partition. The result of this was that a fax I wanted to send was tried over and over again because the os.rename command failed: Pythonscript /usr/lib/capisuite/idle.py,idle,0x8187418: A python error occured. See traceback below. Pythonscript 0x8187418: Python traceback: Traceback (most recent call last): Pythonscript 0x8187418: Traceback: File "/usr/lib/capisuite/idle.py", line 105, in idle Pythonscript 0x8187418: Traceback: movejob(job_fax,sendq,done,user) Pythonscript 0x8187418: Traceback: File "/usr/lib/capisuite/idle.py", line 162, in movejob Pythonscript 0x8187418: Traceback: os.rename(olddir+job,newdir+user+"-"+job) Pythonscript 0x8187418: Traceback: OSError: [Errno 18] Invalid cross-device link There are several approaches to this. 1. I could move the user dir to the same partition as the spool dir. 2. I could make the done and failure directories subdirs of the user dir as well. 3. You could replace the os.rename with copy and unlink, at least if rename causes an error. 4. You could consider it a python bug and try to get it fixed there. Details: 1. Easy workaround. I'll do this for the time being, but its not my favorite. 2. Is there a special reason why those dirs are not subdirs of the user dir? 3. I've never done any python programming before, I would not trust myself to do exception handling the right way. 4. I don't know about the difference between python and pythonscript. I only read that as of python 2.2b2, pythonscript is deprecated and will one day be removed. Maybe I'll try to plug together some test app to see if this is a bug in "normal" python as well. |
|||||||||||
| Additional Information | This is a Gentoo Linux system, using capisuite-0.4.5-r3 and python-2.3.5 as well as python-2.4.2-r1 installed. | |||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
| There are no notes attached to this issue. |