简体   繁体   English

八度音程包自行卸载

[英]Octave packages unload themselves

I'm using the Octave io package but it keeps unloading itself before I run the script. 我正在使用Octave io程序包,但在运行脚本之前它会不断卸载自身。 I'm using the xlsread function provided by io but I keep getting the following error: 我正在使用io提供的xlsread函数,但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 25 column 23

The package shows up when I type pkg list and there is an asterisk next to it when I type pkg load io . 当我键入pkg list时,将显示该软件包,而当我键入pkg load io时,该软件包旁边会出现一个星号。 I even edited the octaverc to load io on startup. 我什至编辑了octaverc在启动时加载io But I get that error when I run my script and when I check pkg list after my script fails the package is unloaded. 但是,当我运行脚本并在脚本失败后检查pkg list时,我得到了该错误,程序包已卸载。

确保不要在脚本中的某处调用clear all (或类似的命令),因为这也可能会从内存中删除已加载的库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM