Discussion:
IO package installation problem
Hamed Shakouri
2018-10-10 06:47:46 UTC
Permalink
---------- Forwarded message ---------
From: Hamed Shakouri <***@gmail.com>
Date: Tue, Oct 9, 2018 at 5:57 PM
Subject: IO package installation problem
To: <***@users.sf.net>


Dear Phiip,

Sorry, for taking your time.
I tried several times to install I/o package version .11
I had Java (64 bits) already installed.
I tried >> pkg install io
..
But after all when trying to read an xls file I see this error message:
warning: Functions for spreadsheet style I/O (.xls .xlsx .sxc .ods .dbf .wk1
etc.) are provided in the io package. See
<https://octave.sourceforge.io/io/>.

 and nothing is read.
Would you help me come up with this?
Thank you,
Hamed.
--
With Regards,

Hamed Shakouri G.
--
With Regards,

Hamed Shakouri G.
Nir Krakauer
2018-10-10 16:33:31 UTC
Permalink
Did you first do
pkg load io
?
Nir Krakauer
2018-10-10 19:12:59 UTC
Permalink
Not inside the Octave, but from the webpage, and I put it in the current
folder so that it would be found by "pkg install".
Isn't it sufficient?
Post by Nir Krakauer
Did you first do
pkg load io
?
After installing any package, to use the functions in it, you need to
invoke in Octave `pkg load package_name`.
Nir Krakauer
2018-10-10 23:36:13 UTC
Permalink
Dear Nir,
Thank you for the information.
Post by Nir Krakauer
pkg install io-2.4.11.tar.gz
warning: (Automatic loading of spreadsheet I/O Java classlibs failed)
For information about changes from previous versions of the io package,
run 'news io'.
So, the package is not installed yet!
How this can be solved?
[image: image.png]
Post by Nir Krakauer
Not inside the Octave, but from the webpage, and I put it in the current
folder so that it would be found by "pkg install".
Isn't it sufficient?
Post by Nir Krakauer
Did you first do
pkg load io
?
After installing any package, to use the functions in it, you need to
invoke in Octave `pkg load package_name`.
--
With Regards,
Hamed Shakouri G.
Please keep copying the mailing list.

As long as `pkg install` gives no `error` message, the installation was
presumably more or less successful. So you should follow with `pkg load io`
and see if the functionality you need works.
Tatsuro MATSUOKA
2018-10-11 00:11:52 UTC
Permalink
----- Original Message -----
Dear Nir,
Thank you for the information.
 pkg install io-2.4.11.tar.gz
warning: (Automatic loading of spreadsheet I/O Java classlibs failed)
For information about changes from previous versions of the io package, run 'news io'.
So, the package is not installed yet!
How this can be solved?
Not inside the Octave, but from the webpage, and I put it in the current folder so that it would be found by "pkg install".
Isn't it sufficient?
Did you first do
Post by Nir Krakauer
pkg load io
?
After installing any package, to use the functions in it, you need to invoke in Octave `pkg load package_name`.
--
With Regards,
Hamed Shakouri G.
Please keep copying the mailing list.
As long as `pkg install` gives no `error` message, the installation was presumably more or less successful. So you should follow with `pkg load io` and see if the functionality you need works.
You are using octave 4.4.1 on windows.
Windows package include some pre-build octave-forge packages.
The io package is one of them.
The package that you want use should should be loaded before use.

On windows version 4.4.1
pkg list io
Package Name  | Version | Installation directory
--------------+---------+-----------------------
          io  |  2.4.11 | ...\share\octave\packages\io-2.4.11
pkg load io
pkg list io
Package Name  | Version | Installation directory
--------------+---------+-----------------------
          io *|  2.4.11 | C:\Octave\OCTAVE~2.1\share\octave\packages\io-2.4.11
"*" atter io indicates that io package is loaded and you can use it

HTH

Tatsuro
Hamed Shakouri
2018-10-11 18:06:00 UTC
Permalink
Thank you for the clarification. I did so, and the package is now loaded.
But still xlsread(
) command doesn't work properly. "test" is a simple
excel file with just one numeric cell.
Post by Tatsuro MATSUOKA
xx=xlsread('test.xlsx')
Detected XLS interfaces: error: 'chk_jar_entries' undefined near line 38
column 22
error: called from
__POI_chk_sprt__ at line 38 column 20
getxlsinterfaces at line 139 column 23
xlsopen at line 262 column 17
xlsread at line 233 column 11
Post by Tatsuro MATSUOKA
----- Original Message -----
Dear Nir,
Thank you for the information.
pkg install io-2.4.11.tar.gz
warning: (Automatic loading of spreadsheet I/O Java classlibs failed)
For information about changes from previous versions of the io package,
run 'news io'.
So, the package is not installed yet!
How this can be solved?
I have already installed Java 8 (64Bits), as you see in the attached
Not inside the Octave, but from the webpage, and I put it in the
current folder so that it would be found by "pkg install".
Isn't it sufficient?
Did you first do
Post by Nir Krakauer
pkg load io
?
After installing any package, to use the functions in it, you need to
invoke in Octave `pkg load package_name`.
--
With Regards,
Hamed Shakouri G.
Please keep copying the mailing list.
As long as `pkg install` gives no `error` message, the installation was
presumably more or less successful. So you should follow with `pkg load io`
and see if the functionality you need works.
You are using octave 4.4.1 on windows.
Windows package include some pre-build octave-forge packages.
The io package is one of them.
The package that you want use should should be loaded before use.
On windows version 4.4.1
pkg list io
Package Name | Version | Installation directory
--------------+---------+-----------------------
io | 2.4.11 | ...\share\octave\packages\io-2.4.11
pkg load io
pkg list io
Package Name | Version | Installation directory
--------------+---------+-----------------------
io *| 2.4.11 |
C:\Octave\OCTAVE~2.1\share\octave\packages\io-2.4.11
"*" atter io indicates that io package is loaded and you can use it
HTH
Tatsuro
--
With Regards,

Hamed Shakouri G.
Tatsuro MATSUOKA
2018-10-12 08:44:47 UTC
Permalink
----- Original Message -----
From: Hamed Shakouri 
To: tmacchant 
Cc: nirkrakauer help|
Date: 2018/10/12, Fri 03:06
Subject: Re: IO package installation problem
Thank you for the clarification. I did so, and the package is now loaded.
But still xlsread(…) command doesn't work properly. "test" is a simple excel file with just one numeric cell.
Post by Nir Krakauer
xx=xlsread('test.xlsx')
Detected XLS interfaces: error: 'chk_jar_entries' undefined near line 38 column 22
error: called from
    __POI_chk_sprt__ at line 38 column 20
    getxlsinterfaces at line 139 column 23
    xlsopen at line 262 column 17
    xlsread at line 233 column 11
I myself have never used xlsread.

After some googling, 
I think that something is wrong with Java (Oracle JRE).

If you install MS-Excel(32 bit) on your PC, you can access xlsx via windows and MS-Excel internally.
You can do the above when you load the windows package in addition to the io package

(You can check your Excel is 32 or 64 bit by task manager.)
Post by Nir Krakauer
pkg load io
pkg load wind
Tatsuro MATSUOKA
2018-10-12 09:04:04 UTC
Permalink
----- Original Message -----
Date: 2018/10/12, Fri 17:44
Subject: Re: IO package installation problem
----- Original Message -----
From: Hamed Shakouri 
To: tmacchant 
Cc: nirkrakauer help|
Date: 2018/10/12, Fri 03:06
Subject: Re: IO package installation problem
Thank you for the clarification. I did so, and the package is now loaded.
But still xlsread(…) command doesn't work properly. "test" is
a simple excel file with just one numeric cell.
Post by Nir Krakauer
xx=xlsread('test.xlsx')
Detected XLS interfaces: error: 'chk_jar_entries' undefined near
line 38 column 22
error: called from
    __POI_chk_sprt__ at line 38 column 20
    getxlsinterfaces at line 139 column 23
    xlsopen at line 262 column 17
    xlsread at line 233 column 11
I myself have never used xlsread.
After some googling, 
I think that something is wrong with Java (Oracle JRE).
If you install MS-Excel(32 bit) on your PC, you can access xlsx via windows and
MS-Excel internally.
You can do the above when you load the windows package in addition to the io package
(You can check your Excel is 32 or 64 bit by task manager.)
Post by Nir Krakauer
pkg load io
Loading...