#1 OSError: [Errno 18] Invalid cross-device link

open-accepted
Code Change (2)
5
2010-12-30
2010-05-18
No

In terminal:
$ pyweb.py pyweb.w
<...>
Traceback (most recent call last):
File "/usr/local/bin/pyweb", line 1501, in <module>
main( )
File "/usr/local/bin/pyweb", line 1497, in main
a.process()
File "/usr/local/bin/pyweb", line 1470, in process
self.theAction()
File "/usr/local/bin/pyweb", line 1314, in __call__
o()
File "/usr/local/bin/pyweb", line 1365, in __call__
self.web.tangle( self.theTangler )
File "/usr/local/bin/pyweb", line 1014, in tangle
aTangler.close()
File "/usr/local/bin/pyweb", line 452, in close
self.doClose()
File "/usr/local/bin/pyweb", line 810, in doClose
os.rename( self.tempname, self.fileName )
OSError: [Errno 18] Invalid cross-device link

Workaround is using 'shutils.move( self.tempname, self.fileName )' instead of 'os.rename( self.tempname, self.fileName )'.

Discussion

  • Denis Konchekov

    Denis Konchekov - 2010-05-18

    uname -a: Linux kodemi-laptop 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux
    python -V: Python 2.6.5

     
  • Steven F. Lott

    Steven F. Lott - 2010-12-30
    • status: open --> open-accepted
     
  • Steven F. Lott

    Steven F. Lott - 2010-12-30

    The temporary file should be created in the local directory, not the /tmp directory.

     
  • Steven F. Lott

    Steven F. Lott - 2010-12-30
    • labels: --> Code Change
    • assigned_to: nobody --> slott56
     

Log in to post a comment.