MATLAB Answers

0

Error deploy tool, ' Unable to write entry ' while packaging

Asked by Juan Henao on 19 Nov 2015
Latest activity Commented on by Alexandre Baran on 5 Nov 2018
Hello, I have this problem and I don't know what to do. I saw a problem related with a zip file so I installed 7zip (my computer didn't have a third party compressing software), anyway it didn't help, I don't know if it's a permission problem or what could it be.
Any help would be appreciated, thanks!.
Juan
<ant>
<mkdir dir="\\Mac\Home\Documents\OptiNet\for_redistribution" />
<mkdir dir="\\Mac\Home\Documents\OptiNet\for_testing" />
<mkdir dir="\\Mac\Home\Documents\OptiNet\for_redistribution_files_only" />
</ant>
mcc -C -o OptiNet -W WinMain:OptiNet -T link:exe -d \\Mac\Home\Documents\OptiNet\for_testing -v \\Mac\Home\Documents\MATLAB\OptiNet.m
Compiler version: 6.0 (R2015a)
Dependency analysis by REQUIREMENTS.
[Warning: Adding path "\\Mac\Home\Documents\MATLAB" to Compiler path instance.]
Parsing file "\\Mac\Home\Documents\MATLAB\OptiNet.m"
(Referenced from: "Compiler Command Line").
Deleting 7 temporary MEX authorization files.
Removing: 'C:\Users\JUANHE~1\AppData\Local\Temp\mathworks_tmp_00f4022009_3904.auth'.
Removing: 'C:\Users\JUANHE~1\AppData\Local\Temp\mathworks_tmp_00f4012240_3904.auth'.
Removing: 'C:\Users\JUANHE~1\AppData\Local\Temp\mathworks_tmp_00f4015752_3904.auth'.
Removing: 'C:\Users\JUANHE~1\AppData\Local\Temp\mathworks_tmp_00f408283_3904.auth'.
Removing: 'C:\Users\JUANHE~1\AppData\Local\Temp\mathworks_tmp_00f4031450_3904.auth'.
Removing: 'C:\Users\JUANHE~1\AppData\Local\Temp\mathworks_tmp_00f4011683_3904.auth'.
Removing: 'C:\Users\JUANHE~1\AppData\Local\Temp\mathworks_tmp_00f4024663_3904.auth'.
Generating file "\\Mac\Home\Documents\OptiNet\for_testing\readme.txt".
Packaging...
Adding custom icon C:\Program Files\MATLAB\MATLAB Production Server\R2015a\toolbox\compiler\Resources\default_icon.ico to \\Mac\Home\Documents\OptiNet\for_testing\OptiNet.exe.
Attempting to embed the CTF archive into the application \\Mac\Home\Documents\OptiNet\for_testing\OptiNet.exe.
Finished embedding CTF archive. Deleting the external CTF archive.
Creating the bundle...
Unable to write entry archives/3p/perl_win64_1264568314.enc to zip file C:\Users\JUANHE~1\AppData\Local\Temp\Juan Henao\installAgent8.5_win64\InstallAgent_35000_35010.zip
Failed to create the full Install Agent.
Failed to create the full installer.
No installer package created.

  2 Comments

I notice there is a space in the directory name "Juan Henao". Historically some of the MATLAB tools have problems dealing with spaces in directory names (or non-ASCII characters in directory names.)
Oh, that's a good point, let me try to change that. Thanks for taking the time!

Sign in to comment.

2 Answers

Answer by Juan Henao on 21 Nov 2015
 Accepted Answer

Problem solved.
For the record: It was disk space problem (a dumb one), hope this helps someone else.
Thanks!

  1 Comment

Hello Juan, I have exactly the same problem as you due to a disk space problem. How did you change the path to write entry to this Install Agent files ?

Sign in to comment.


Answer by Paul Dankoski on 3 Jul 2018

I've seen a similar problem and it is unclear, but it appears sporadically. Yes, it could be disk space as well, but I think it might be something else.
This is with mcc compiler version 6.5 (2017B). However, I am seeing a similar issue as above. I think it is intending to write to a path with "/a/b/c.mexa64", but the error message at least only mentioned "a/b/c.mexa64" ... notice the missing slash that is leading the filepath.
Here's the exact error with the path modified for privacy.
Error in writing CTF file entry 'prj/c/w/file.mexa64'. Details: 'Could not write zip entry'
Failed to build CTF file: '/prj/c/w/cmd.ctf'.
Perhaps someone at Mathworks could take a close look to see if the leading slash being dropped is expected or not.
Error using mmm2 (line 3)
Error executing mcc, return status = 1 (0x1).

  0 Comments

Sign in to comment.