Page 1 of 1
[SOLVED] Build-package error
Published: June 7, 2018 - 10:56 AM
by vbirault
Hello,
I'm using a WAPT 1.5 server on Debian 9.4,
and my workstation is a Windows 7 x64 server.
The first two package creations worked fine, but on the third attempt, I get an error with the `build-package` command (the same error occurs with PyScripter). It's an empty package I created (using `wapt-get make-group-template tis-winrelais` and then modifying the control file). I then copy the setup.py file from another package, modify it, and add the files to copy and the .reg file to apply to the project (250MB total). When I use `-i build-upload`, I get the error:
Exception ValueError: 'I/O operation on closed file' in
FATAL ERROR: Exception: No package to upload
Re: Build-package error
Published: June 7, 2018 - 2:30 PM
by vbirault
Hello again, I have some additional information.
As advised in another discussion, I modified wapt-get.py so that the faulty package wouldn't be deleted.
I can open it with 7-Zip, but during extraction, all the files show an error: "Header error:...".
And I still get the same error during build-package:
Signing C:\waptdev\tis-winrelais_3_all.wapt with key
ERROR building C:\waptdev\tis-winrelais-wapt: I/O operation on closed file
0 packages successfully built
1 packages failed
List of errors:
C:\waptdev\tis-winrelais-wapt
Buildind and uploading packages to
https://sl.fr
Exception ValueError: 'I/O operation on closed file' in
FATAL ERROR: Exception: No package to upload.
Exit code: 3
>>>
If anyone has any ideas,
thank you in advance
Re: Build-package error
Published: June 8, 2018 - 6:37 PM
by dcardon
Hello vbirault,
vbirault wrote: ↑June 7, 2018 - 2:30 PM
Hello again, I have some additional information.
As advised in another discussion, I modified wapt-get.py so that the faulty package wouldn't be deleted.
I can open it with 7-Zip, but during extraction, all the files show an error: "Header error:...".
And I still get the same error during build-package:
Signing C:\waptdev\tis-winrelais_3_all.wapt with key
ERROR building C:\waptdev\tis-winrelais-wapt: I/O operation on closed file
0 packages successfully built
1 packages failed
List of errors:
C:\waptdev\tis-winrelais-wapt
Buildind and uploading packages to
https://sl.fr
Exception ValueError: 'I/O operation on closed file' in
FATAL ERROR: Exception: No package to upload
Exit code: 3
Could you check if your antivirus software might be interfering with the files in question and interfering with the construction of the zip file by the Python ZipFile library? You could also try building the package with your antivirus software disabled.
Sincerely,
Denis
Re: Build-package error
Published: June 11, 2018 - 10:56
by vbirault
Hello and thank you for your suggestion.
Unfortunately, I get the exact same error when the antivirus is disabled. I also tried from a new virtual machine before installing an antivirus, and the error persists.
Regards
Re: Build-package error
Published: June 11, 2018 - 5:57 PM
by htouvet
There's a bug in the ZipFile module when the package contains non-ASCII filenames (with accented characters).
https://roundup.tranquil.it/wapt/issue957
Is this the case for you?
If so, could you try replacing the file c:\program files(x86)\wapt\custom_zip.py
with this one:
https://raw.githubusercontent.com/tranq ... tom_zip.py
on the machine where you build your packages?
Re: Build-package error
Published: June 12, 2018 - 07:57
by vbirault
Hello,
indeed, some of the directories and files in the package contain special characters.
The new configuration file resolved the issue, and the package is now working.
Thank you very much for your help.