problem with op pkg

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

problem with op pkg

Rory Conolly
I'm new to Octave, so apologies if I'm missing something simple. Typing ver gives

GNU Octave Version: 4.2.1
GNU Octave License: GNU General Public License
Operating System: MINGW32_NT-6.2 Windows 6.2  x86_64

and lists many packages, inlcuding 
----------------------------------------------------------------------
Package Name         | Version | Installation directory
---------------------+---------+-----------------------
                 io  |  2.4.10 | C:\Octave\Octave-4.2.1\share\octave\packages\io-2.4.10
 
I want to use xlsread and xlswrite from the io package, but they are not recognized:

 xlsread
warning: Functions for spreadsheet style I/O (.xls .xlsx .sxc .ods .dbf .wk1
etc.)  are provided in the io package.  See <http://octave.sf.net/io/>.

Please read <http://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'xlsread' undefined near line 1 column 1

So, it looks like the io package is installed but not functioning. If i try to load it, I get

>> load io-2.4.10.tar.gz
error: load: unable to find file io-2.4.10.tar.gz
>> load io-2.4.10
error: load: unable to find file io-2.4.10

Help will be appreciated!

- Rory




-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: problem with op pkg

Thomas D. Dean-2
On 02/11/18 17:56, Rory Conolly wrote:

> I'm new to Octave, so apologies if I'm missing something simple. Typing
> ver gives
>
> GNU Octave Version: 4.2.1
> GNU Octave License: GNU General Public License
> Operating System: MINGW32_NT-6.2 Windows 6.2  x86_64
>
> and lists many packages, inlcuding
> ----------------------------------------------------------------------
> Package Name         | Version | Installation directory
> ---------------------+---------+-----------------------
>                   io  |  2.4.10 |
> C:\Octave\Octave-4.2.1\share\octave\packages\io-2.4.10
> I want to use xlsread and xlswrite from the io package, but they are not
> recognized:
>
>   xlsread
> warning: Functions for spreadsheet style I/O (.xls .xlsx .sxc .ods .dbf .wk1
> etc.)  are provided in the io package.  See <http://octave.sf.net/io/>.
>
> Please read <http://www.octave.org/missing.html> to learn how you can
> contribute missing functionality.
> error: 'xlsread' undefined near line 1 column 1
>
> So, it looks like the io package is installed but not functioning. If i
> try to load it, I get
>
>  >> load io-2.4.10.tar.gz
> error: load: unable to find file io-2.4.10.tar.gz
>  >> load io-2.4.10
> error: load: unable to find file io-2.4.10
>

What does 'pkg load io' do?

Tom Dean


-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: problem with op pkg

PhilipNienhuis
In reply to this post by Rory Conolly
Rory Conolly wrote

> I'm new to Octave, so apologies if I'm missing something simple. Typing
> ver
> gives
>
> GNU Octave Version: 4.2.1
> GNU Octave License: GNU General Public License
> Operating System: MINGW32_NT-6.2 Windows 6.2  x86_64
>
> and lists many packages, inlcuding
> ----------------------------------------------------------------------
> Package Name         | Version | Installation directory
> ---------------------+---------+-----------------------
>                  io  |  2.4.10 |
> C:\Octave\Octave-4.2.1\share\octave\packages\io-2.4.10

That is because the io package is installed, but you actually have to load
that installed package:

pkg load io

Once done, you'll see an asterisk appear in that line, more or less like so:

Package Name  | Version | Installation directory
--------------+---------+-----------------------
          io *|   2.4.10 | ...\dist\octave\share\octave\packages\io-2.4.10

(You just can't load a package tarball like you attempted later on)

Philip



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------