WindowsError: [Error 32] os.unlink
Issue #1
resolved
I get the Error 32, when I use the pdf-function.
from pp.client.python import pdf
result = pdf.pdf(destdir, 'princexml', server_url=SERVER_URL)
output_filename = result['output_filename']
Error message:
File "c:\zope\eggs-plone43\pp.client_python-0.3.0-py2.7.egg\pp\client\python\pdf.py", line 75,
in pdf
os.unlink(zip_filename)
WindowsError: [Error 32] The process cannot access the file
because it is being usedby another process: 'c:\\users\\username\\appdata\\local\\temp\\tmppcvf_d'
My system: * windows 7 * python 2.7 64-bit * plone 4.3.1 * pp.client-python 0.3.0 (in 0.2.9 is the same error)
pp.server (0.3.5) is installed on linux server.
Solution:
I closed the file before the command os.unlink(zip_filename):
openfile=files.get('file',None)
if openfile:
openfile.close()
Comments (3)
-
repo owner -
reporter Thank you. It works.
-
repo owner - changed status to resolved
Resolved
- Log in to comment
Please try version 0.3.1.