odfWeave Error unzipping file in Win 7

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

odfWeave Error unzipping file in Win 7

psycho-ld
Hey guys,

I´m just getting started with R (version 2.12.0) and odfWeave and kinda stumble from one problem to the next, the current one is the following:

trying to use odfWeave:

> odfctrl <- odfWeaveControl(
+             zipCmd = c("C:/Program Files/unz552dN/VBunzip.exe $$file$$ .",
+              "C:/Program Files/unz552dN/VBunzip.exe $$file$$"))
>
> odfWeave("C:/testat.odt", "C:/iris.odt", control = odfctrl)
  Copying  C:/testat.odt
  Setting wd to  D:\Users\egf\AppData\Local\Temp\Rtmpmp4E1J/odfWeave23103351832
  Unzipping ODF file using C:/Program Files/unz552dN/VBunzip.exe "testat.odt"
Fehler in odfWeave("C:/testat.odt", "C:/iris.odt", control = odfctrl) :
  Error unzipping file

so I tried a few other unzipping programs like jar and 7-zip, but still the same problem occurs, I also tried to install zip and unzip, but then I get some error message that registration failed (Error 1904 ....)

so if there are anymore questions, just ask, would be great if someone could help me though

cheers
psycho-ld
Reply | Threaded
Open this post in threaded view
|

Re: odfWeave Error unzipping file in Win 7

rmailbox

I have a very similar error that cropped up when I upgraded to R 2.12 and persists at R 2.12.1. I am running R on Windows XP and OO is at version 3.2. I did not make any changes to my R code or ODF code or configuration to produce this error. Only upgraded R.

Many Thanks,

Eric

R session:


> odfWeave ( 'Report input template.odt' , 'August 2011.odt')
  Copying  Report input template.odt
  Setting wd to  C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2/odfWeave21111153483
  Unzipping ODF file using unzip -o "Report input template.odt"
Error in odfWeave("Report input template.odt", "August 2011.odt") :
  Error unzipping file

------------------------


When I start a shell and go to the temp directory in question and copy the exact command that the error message says produced an error the command runs fine. Here is that session:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

H:\>c:

C:\>cd C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2/odfWeave21111153483

C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>dir
 Volume in drive C has no label.
 Volume Serial Number is 7464-62CA

 Directory of C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483

03/21/2011  11:11 AM    <DIR>          .
03/21/2011  11:11 AM    <DIR>          ..
03/21/2011  11:11 AM            13,780 Report input template.odt
               1 File(s)         13,780 bytes
               2 Dir(s)   7,987,343,360 bytes free

C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>unzip -o "Report input template.odt"
Archive:  Report input template.odt
 extracting: mimetype
   creating: Configurations2/statusbar/
  inflating: Configurations2/accelerator/current.xml
   creating: Configurations2/floater/
   creating: Configurations2/popupmenu/
   creating: Configurations2/progressbar/
   creating: Configurations2/menubar/
   creating: Configurations2/toolbar/
   creating: Configurations2/images/Bitmaps/
  inflating: content.xml
  inflating: manifest.rdf
  inflating: styles.xml
 extracting: meta.xml
  inflating: Thumbnails/thumbnail.png
  inflating: settings.xml
  inflating: META-INF/manifest.xml

C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>







----- Original message -----
From: "psycho-ld" <[hidden email]>
To: [hidden email]
Date: Sun, 23 Jan 2011 01:47:44 -0800 (PST)
Subject: [R] odfWeave Error unzipping file in Win 7


Hey guys,

I´m just getting started with R (version 2.12.0) and odfWeave and kinda
stumble from one problem to the next, the current one is the following:

trying to use odfWeave:

> odfctrl <- odfWeaveControl(
+             zipCmd = c("C:/Program Files/unz552dN/VBunzip.exe $$file$$ .",
+              "C:/Program Files/unz552dN/VBunzip.exe $$file$$"))
>
> odfWeave("C:/testat.odt", "C:/iris.odt", control = odfctrl)
  Copying  C:/testat.odt
  Setting wd to
D:\Users\egf\AppData\Local\Temp\Rtmpmp4E1J/odfWeave23103351832
  Unzipping ODF file using C:/Program Files/unz552dN/VBunzip.exe
"testat.odt"
Fehler in odfWeave("C:/testat.odt", "C:/iris.odt", control = odfctrl) :
  Error unzipping file

so I tried a few other unzipping programs like jar and 7-zip, but still the
same problem occurs, I also tried to install zip and unzip, but then I get
some error message that registration failed (Error 1904 ....)

so if there are anymore questions, just ask, would be great if someone could
help me though

cheers
psycho-ld

--
View this message in context: http://r.789695.n4.nabble.com/odfWeave-Error-unzipping-file-in-Win-7-tp3232359p3232359.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: odfWeave Error unzipping file in Win 7

Mxkuhn
I don't think that this is the issue, but test it on a file without spaces.

On Mon, Mar 21, 2011 at 2:25 PM,  <[hidden email]> wrote:

>
> I have a very similar error that cropped up when I upgraded to R 2.12 and persists at R 2.12.1. I am running R on Windows XP and OO is at version 3.2. I did not make any changes to my R code or ODF code or configuration to produce this error. Only upgraded R.
>
> Many Thanks,
>
> Eric
>
> R session:
>
>
>> odfWeave ( 'Report input template.odt' , 'August 2011.odt')
>  Copying  Report input template.odt
>  Setting wd to  C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2/odfWeave21111153483
>  Unzipping ODF file using unzip -o "Report input template.odt"
> Error in odfWeave("Report input template.odt", "August 2011.odt") :
>  Error unzipping file
>
> ------------------------
>
>
> When I start a shell and go to the temp directory in question and copy the exact command that the error message says produced an error the command runs fine. Here is that session:
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> H:\>c:
>
> C:\>cd C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2/odfWeave21111153483
>
> C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>dir
>  Volume in drive C has no label.
>  Volume Serial Number is 7464-62CA
>
>  Directory of C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483
>
> 03/21/2011  11:11 AM    <DIR>          .
> 03/21/2011  11:11 AM    <DIR>          ..
> 03/21/2011  11:11 AM            13,780 Report input template.odt
>               1 File(s)         13,780 bytes
>               2 Dir(s)   7,987,343,360 bytes free
>
> C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>unzip -o "Report input template.odt"
> Archive:  Report input template.odt
>  extracting: mimetype
>   creating: Configurations2/statusbar/
>  inflating: Configurations2/accelerator/current.xml
>   creating: Configurations2/floater/
>   creating: Configurations2/popupmenu/
>   creating: Configurations2/progressbar/
>   creating: Configurations2/menubar/
>   creating: Configurations2/toolbar/
>   creating: Configurations2/images/Bitmaps/
>  inflating: content.xml
>  inflating: manifest.rdf
>  inflating: styles.xml
>  extracting: meta.xml
>  inflating: Thumbnails/thumbnail.png
>  inflating: settings.xml
>  inflating: META-INF/manifest.xml
>
> C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>
>
>
>
>
>
>
>
> ----- Original message -----
> From: "psycho-ld" <[hidden email]>
> To: [hidden email]
> Date: Sun, 23 Jan 2011 01:47:44 -0800 (PST)
> Subject: [R] odfWeave Error unzipping file in Win 7
>
>
> Hey guys,
>
> I´m just getting started with R (version 2.12.0) and odfWeave and kinda
> stumble from one problem to the next, the current one is the following:
>
> trying to use odfWeave:
>
>> odfctrl <- odfWeaveControl(
> +             zipCmd = c("C:/Program Files/unz552dN/VBunzip.exe $$file$$ .",
> +              "C:/Program Files/unz552dN/VBunzip.exe $$file$$"))
>>
>> odfWeave("C:/testat.odt", "C:/iris.odt", control = odfctrl)
>  Copying  C:/testat.odt
>  Setting wd to
> D:\Users\egf\AppData\Local\Temp\Rtmpmp4E1J/odfWeave23103351832
>  Unzipping ODF file using C:/Program Files/unz552dN/VBunzip.exe
> "testat.odt"
> Fehler in odfWeave("C:/testat.odt", "C:/iris.odt", control = odfctrl) :
>  Error unzipping file
>
> so I tried a few other unzipping programs like jar and 7-zip, but still the
> same problem occurs, I also tried to install zip and unzip, but then I get
> some error message that registration failed (Error 1904 ....)
>
> so if there are anymore questions, just ask, would be great if someone could
> help me though
>
> cheers
> psycho-ld
>
> --
> View this message in context: http://r.789695.n4.nabble.com/odfWeave-Error-unzipping-file-in-Win-7-tp3232359p3232359.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



--

Max

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: odfWeave Error unzipping file in Win 7

rmailbox
I tried with no spaces in either file name and got the same error.



----- Original message -----
From: "Max Kuhn" <[hidden email]>
To: [hidden email]
Cc: [hidden email]
Date: Mon, 21 Mar 2011 17:04:40 -0400
Subject: Re: [R] odfWeave Error unzipping file in Win 7

I don't think that this is the issue, but test it on a file without spaces.

On Mon, Mar 21, 2011 at 2:25 PM,  <[hidden email]> wrote:

>
> I have a very similar error that cropped up when I upgraded to R 2.12 and persists at R 2.12.1. I am running R on Windows XP and OO is at version 3.2. I did not make any changes to my R code or ODF code or configuration to produce this error. Only upgraded R.
>
> Many Thanks,
>
> Eric
>
> R session:
>
>
>> odfWeave ( 'Report input template.odt' , 'August 2011.odt')
>  Copying  Report input template.odt
>  Setting wd to  C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2/odfWeave21111153483
>  Unzipping ODF file using unzip -o "Report input template.odt"
> Error in odfWeave("Report input template.odt", "August 2011.odt") :
>  Error unzipping file
>
> ------------------------
>
>
> When I start a shell and go to the temp directory in question and copy the exact command that the error message says produced an error the command runs fine. Here is that session:
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> H:\>c:
>
> C:\>cd C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2/odfWeave21111153483
>
> C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>dir
>  Volume in drive C has no label.
>  Volume Serial Number is 7464-62CA
>
>  Directory of C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483
>
> 03/21/2011  11:11 AM    <DIR>          .
> 03/21/2011  11:11 AM    <DIR>          ..
> 03/21/2011  11:11 AM            13,780 Report input template.odt
>               1 File(s)         13,780 bytes
>               2 Dir(s)   7,987,343,360 bytes free
>
> C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>unzip -o "Report input template.odt"
> Archive:  Report input template.odt
>  extracting: mimetype
>   creating: Configurations2/statusbar/
>  inflating: Configurations2/accelerator/current.xml
>   creating: Configurations2/floater/
>   creating: Configurations2/popupmenu/
>   creating: Configurations2/progressbar/
>   creating: Configurations2/menubar/
>   creating: Configurations2/toolbar/
>   creating: Configurations2/images/Bitmaps/
>  inflating: content.xml
>  inflating: manifest.rdf
>  inflating: styles.xml
>  extracting: meta.xml
>  inflating: Thumbnails/thumbnail.png
>  inflating: settings.xml
>  inflating: META-INF/manifest.xml
>
> C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>
>
>
>
>
>
>
>
> ----- Original message -----
> From: "psycho-ld" <[hidden email]>
> To: [hidden email]
> Date: Sun, 23 Jan 2011 01:47:44 -0800 (PST)
> Subject: [R] odfWeave Error unzipping file in Win 7
>
>
> Hey guys,
>
> I´m just getting started with R (version 2.12.0) and odfWeave and kinda
> stumble from one problem to the next, the current one is the following:
>
> trying to use odfWeave:
>
>> odfctrl <- odfWeaveControl(
> +             zipCmd = c("C:/Program Files/unz552dN/VBunzip.exe $$file$$ .",
> +              "C:/Program Files/unz552dN/VBunzip.exe $$file$$"))
>>
>> odfWeave("C:/testat.odt", "C:/iris.odt", control = odfctrl)
>  Copying  C:/testat.odt
>  Setting wd to
> D:\Users\egf\AppData\Local\Temp\Rtmpmp4E1J/odfWeave23103351832
>  Unzipping ODF file using C:/Program Files/unz552dN/VBunzip.exe
> "testat.odt"
> Fehler in odfWeave("C:/testat.odt", "C:/iris.odt", control = odfctrl) :
>  Error unzipping file
>
> so I tried a few other unzipping programs like jar and 7-zip, but still the
> same problem occurs, I also tried to install zip and unzip, but then I get
> some error message that registration failed (Error 1904 ....)
>
> so if there are anymore questions, just ask, would be great if someone could
> help me though
>
> cheers
> psycho-ld
>
> --
> View this message in context: http://r.789695.n4.nabble.com/odfWeave-Error-unzipping-file-in-Win-7-tp3232359p3232359.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



--

Max

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: odfWeave Error unzipping file in Win 7

Duncan Murdoch-2
On 11-03-21 6:28 PM, [hidden email] wrote:
> I tried with no spaces in either file name and got the same error.

Can you put together an example that produces the error without using
odfWeave?  To do that, figure out what odfWeave is doing, and do it
outside of that package.

If not, then we'll assume it's an odfWeave bug.  If you can duplicate
this without odfWeave, obviously the error lies elsewhere.

One possibile odfWeave bug:  according to the messages below, it looks
as though it is assuming that

unzip -o "Report input template.odt"

is a valid command.  Perhaps that is not true with the PATH in effect at
the time you're trying to run it, and with the quote handling in effect
then.

Duncan Murdoch

>
>
>
> ----- Original message -----
> From: "Max Kuhn"<[hidden email]>
> To: [hidden email]
> Cc: [hidden email]
> Date: Mon, 21 Mar 2011 17:04:40 -0400
> Subject: Re: [R] odfWeave Error unzipping file in Win 7
>
> I don't think that this is the issue, but test it on a file without spaces.
>
> On Mon, Mar 21, 2011 at 2:25 PM,<[hidden email]>  wrote:
>>
>> I have a very similar error that cropped up when I upgraded to R 2.12 and persists at R 2.12.1. I am running R on Windows XP and OO is at version 3.2. I did not make any changes to my R code or ODF code or configuration to produce this error. Only upgraded R.
>>
>> Many Thanks,
>>
>> Eric
>>
>> R session:
>>
>>
>>> odfWeave ( 'Report input template.odt' , 'August 2011.odt')
>>   Copying  Report input template.odt
>>   Setting wd to  C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2/odfWeave21111153483
>>   Unzipping ODF file using unzip -o "Report input template.odt"
>> Error in odfWeave("Report input template.odt", "August 2011.odt") :
>>   Error unzipping file
>>
>> ------------------------
>>
>>
>> When I start a shell and go to the temp directory in question and copy the exact command that the error message says produced an error the command runs fine. Here is that session:
>>
>> Microsoft Windows XP [Version 5.1.2600]
>> (C) Copyright 1985-2001 Microsoft Corp.
>>
>> H:\>c:
>>
>> C:\>cd C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2/odfWeave21111153483
>>
>> C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>dir
>>   Volume in drive C has no label.
>>   Volume Serial Number is 7464-62CA
>>
>>   Directory of C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483
>>
>> 03/21/2011  11:11 AM<DIR>            .
>> 03/21/2011  11:11 AM<DIR>            ..
>> 03/21/2011  11:11 AM            13,780 Report input template.odt
>>                1 File(s)         13,780 bytes
>>                2 Dir(s)   7,987,343,360 bytes free
>>
>> C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>unzip -o "Report input template.odt"
>> Archive:  Report input template.odt
>>   extracting: mimetype
>>    creating: Configurations2/statusbar/
>>   inflating: Configurations2/accelerator/current.xml
>>    creating: Configurations2/floater/
>>    creating: Configurations2/popupmenu/
>>    creating: Configurations2/progressbar/
>>    creating: Configurations2/menubar/
>>    creating: Configurations2/toolbar/
>>    creating: Configurations2/images/Bitmaps/
>>   inflating: content.xml
>>   inflating: manifest.rdf
>>   inflating: styles.xml
>>   extracting: meta.xml
>>   inflating: Thumbnails/thumbnail.png
>>   inflating: settings.xml
>>   inflating: META-INF/manifest.xml
>>
>> C:\DOCUME~1\Koster01\LOCALS~1\Temp\Rtmp4uCcY2\odfWeave21111153483>
>>
>>
>>
>>
>>
>>
>>
>> ----- Original message -----
>> From: "psycho-ld"<[hidden email]>
>> To: [hidden email]
>> Date: Sun, 23 Jan 2011 01:47:44 -0800 (PST)
>> Subject: [R] odfWeave Error unzipping file in Win 7
>>
>>
>> Hey guys,
>>
>> I´m just getting started with R (version 2.12.0) and odfWeave and kinda
>> stumble from one problem to the next, the current one is the following:
>>
>> trying to use odfWeave:
>>
>>> odfctrl<- odfWeaveControl(
>> +             zipCmd = c("C:/Program Files/unz552dN/VBunzip.exe $$file$$ .",
>> +              "C:/Program Files/unz552dN/VBunzip.exe $$file$$"))
>>>
>>> odfWeave("C:/testat.odt", "C:/iris.odt", control = odfctrl)
>>   Copying  C:/testat.odt
>>   Setting wd to
>> D:\Users\egf\AppData\Local\Temp\Rtmpmp4E1J/odfWeave23103351832
>>   Unzipping ODF file using C:/Program Files/unz552dN/VBunzip.exe
>> "testat.odt"
>> Fehler in odfWeave("C:/testat.odt", "C:/iris.odt", control = odfctrl) :
>>   Error unzipping file
>>
>> so I tried a few other unzipping programs like jar and 7-zip, but still the
>> same problem occurs, I also tried to install zip and unzip, but then I get
>> some error message that registration failed (Error 1904 ....)
>>
>> so if there are anymore questions, just ask, would be great if someone could
>> help me though
>>
>> cheers
>> psycho-ld
>>
>> --
>> View this message in context: http://r.789695.n4.nabble.com/odfWeave-Error-unzipping-file-in-Win-7-tp3232359p3232359.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> [hidden email] mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>> ______________________________________________
>> [hidden email] mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.