# Does parseexcel work on OS X?

**URL:** <https://www.ruby-forum.com/t/does-parseexcel-work-on-os-x/78000>\
**Category:** Ruby\
**Created:** [December 2, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/does-parseexcel-work-on-os-x/78000 "2006-12-02T15:01:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [December 2, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/does-parseexcel-work-on-os-x/78000/1 "2006-12-02T15:01:21Z")

</div>

Anyone using parseexcel on a PowerPC Mac? Any tips as to how to get  
this working? Is it possible that I have an issue with big endian vs  
little endian data? When I dump the contents of the spreadsheet with  
puts, I see nornal-looking ASCII strings that I’m expecting to find.

I’m getting this when trying to read a spreadsheet I download with curl  
& am attempting to extract data from:

Errno::EINVAL: Invalid argument - ï¿½ï¿½à¡±ï¿½

method initialize in olestorage.rb at line 107  
method initialize in olestorage.rb at line 107  
method parse in parser.rb at line 172  
method parse in parseexcel.rb at line 10  
at top level in myScript.rb at line 40

Thanks!

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [December 2, 2006, 4:28pm UTC](https://www.ruby-forum.com/t/does-parseexcel-work-on-os-x/78000/2 "2006-12-02T16:28:47Z")

</div>

unknown wrote:

> Anyone using parseexcel on a PowerPC Mac? Any tips as to how to get  
> this working? Is it possible that I have an issue with big endian vs  
> little endian data? When I dump the contents of the spreadsheet with  
> puts, I see nornal-looking ASCII strings that I’m expecting to find.
> 
> I’m getting this when trying to read a spreadsheet I download with curl  
> & am attempting to extract data from:
> 
> Errno::EINVAL: Invalid argument - ï¿½ï¿½à¡±ï¿½
> 
> method initialize in olestorage.rb at line 107  
> method initialize in olestorage.rb at line 107  
> method parse in parser.rb at line 172  
> method parse in parseexcel.rb at line 10  
> at top level in myScript.rb at line 40
> 
> Thanks!

I saw the same thing on Solaris/Sparc. The size limitations of the  
library were a problem for me anyways, so I just used Perl to create the  
spreadsheet. Sorry, I know that’s not terribly helpful – just wanted  
to let you know that you’re not going crazy.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [December 3, 2006, 1:30pm UTC](https://www.ruby-forum.com/t/does-parseexcel-work-on-os-x/78000/3 "2006-12-03T13:30:33Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Anyone using parseexcel on a PowerPC Mac?

Not familiar with parseexcel, but FWIW if you’ve a copy of Excel  
available then you could use rb-appscript to extract your data via  
Excel’s AppleScript interface.

HTH

has

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [December 4, 2006, 7:14am UTC](https://www.ruby-forum.com/t/does-parseexcel-work-on-os-x/78000/4 "2006-12-04T07:14:28Z")

</div>

On Dec 3, 2006, at 4:30 AM, has wrote:

> removed\_email\_address@domain.invalid wrote:
> 
> > Anyone using parseexcel on a PowerPC Mac?
> 
> Not familiar with parseexcel, but FWIW if you’ve a copy of Excel  
> available then you could use rb-appscript to extract your data via  
> Excel’s AppleScript interface.

Works fine for reading in text data from Excel files (which is all I  
use it for). Not sure if this is just my lack of understanding, but I  
did have to write some code to parse date values correctly, and I  
couldn’t read some formula-derived text values.

Scott
