简体   繁体   English

八度:无法识别已加载的程序包

[英]Octave: Loaded package is not recognized

I have installed package image via pkg install -forge image and after tons of warnings (I am using clang as a C compiler, yeah, I know...) it finished installing. 我已经通过pkg install -forge image安装了软件包image ,并在发出大量警告之后(我将clang用作C编译器,是的,我知道...),该软件包image已完成安装。

I then loaded the package with ordinary pkg load image and Octave did not complain. 然后,我用普通的pkg load image加载了该程序包,而Octave没有抱怨。 But when I typed help viscircles to get some help on the function, Octave behaved like there was no package image , meaning it returned 但是,当我键入help viscircles以获得有关该功能的帮助时,Octave的行为就像没有包image ,意味着它返回了

>> help viscircles
error: help: the 'viscircles' function belongs to the image package 
from Octave Forge but has not yet been implemented.

Please read <http://www.octave.org/missing.html> to learn how you can
contribute missing functionality.

Now I executed the pkg list to see if the package was indeed installed and loaded and yes, it was (there was an asterisk next to image package, which indicates that the certain package is loaded). 现在,我执行了pkg list以查看是否确实安装并加载了该软件包,是的(在image软件包旁边有一个星号,表明已加载了该软件包)。

I decided to unload all packages and so I did. 我决定卸载所有程序包,所以我做到了。 Now, before loading image again, I executed help viscircles again, but this time I got the next error: 现在,在再次加载image之前,我再次执行了help viscircles ,但是这次我遇到了下一个错误:

>> help viscircles
error: help: the 'viscircles' function belongs to the image package 
from Octave Forge which you have installed but not loaded.  To load the 
package, run 'pkg load image' from the Octave prompt.

Interesting... I loaded the package again and same problem as before. 有趣的是...我再次加载了程序包,并且和以前一样存在问题。 I also downloaded the package manually and reinstalled it, same problems. 我也手动下载了该软件包并重新安装,同样的问题。

And yes, I have Octave 4.0.2, the requirements for image 2.6.2 is version 4.0.0+. 是的,我有Octave 4.0.2,映像2.6.2的要求是版本4.0.0+。

The function viscircles is on development versions of the image package only. viscircles功能仅在映像包的开发版本上。 It is not part of the current release, version 2.6.2 which you have installed. 它不是您安装的当前版本2.6.2的一部分。

The error message: 错误信息:

>> help viscircles
error: help: the 'viscircles' function belongs to the image package 
from Octave Forge which you have installed but not loaded.  To load the 
package, run 'pkg load image' from the Octave prompt.

means that the function is not part of Octave and if it is to exist at all, it will be on the image package. 表示该函数不属于Octave的一部分,如果要完全存在,它将位于映像包中。 It doesn't mean that the image package will actually have it, only that it belongs to it. 这并不意味着图像包实际上会拥有它,而只是它属于它。 The error message you get after loading the package: 加载程序包后收到的错误消息:

>> help viscircles
error: help: the 'viscircles' function belongs to the image package 
from Octave Forge but has not yet been implemented.

Please read <http://www.octave.org/missing.html> to learn how you can
contribute missing functionality.

tells you the issue. 告诉你问题。 The function viscircles is not implemented on that version of the package. 该版本的软件包没有实现viscircles功能。

You can get it from the mercurial repository of the image package though at 75df28049249 . 您可以通过75df28049249从映像包的汞库中获取它。 Not sure if it will work on Octave 4.0 though. 不确定是否可以在Octave 4.0上使用。

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

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