还一个could not find ntldrz...

Could not find function in R? - Cross Validated
to customize your list.
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. J it only takes a minute:
Here's how it works:
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
I am getting the error:
Error: could not find function "rlm"
Why isn't R working for certain functions?
fit&-rlm(z~cbind(time(z),time(z)^2))
Error: could not find function "rlm"
where z is the time series.
Typing ?rlm takes me to the robust fitting of linear models page, but im still getting the error.
closed as off-topic by ♦
This question appears to be off-topic. The users who voted to close gave this specific reason:&This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the .& & whuberIf this question can be reworded to fit the rules in the , please .
You must load a library called MASS using library(MASS) before writing your code-line.
Not the answer you're looking for?
Browse other questions tagged
rev .25074
Cross Validated works best with JavaScript enabledpuppet - Could not find class, and yet it is there - Server Fault
to customize your list.
Server Fault is a question and answer site for system and network administrators. J it only takes a minute:
Here's how it works:
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
When doing a puppet agent call from a new image, I'm getting a err: Could not find class custommod error. The module itself is in /etc/puppet/modules/custommod same as all of the other modules we're calling, but this one is obstinante.
node /clunod-wk\d+\.sub\.example\.local/ {
include base
include curl
include custommod
class{ "custommod::apps": frontend =& "false}
When the puppetmaster is run with debug output, it clearly finding the information for base and curl:
debug: importing '/etc/puppet/modules/base/manifests/init.pp' in environment production
debug: Automatically imported base from base into production
debug: importing '/etc/puppet/modules/curl/manifests/init.pp' in environment production
debug: Automatically imported curl from curl into production
err: Could not find class custommod for clunod-wk0130.sub.example.local at /etc/puppet/manifests/site.pp:84 on node clunod-wk0130.sub.example.local
Line 84 is include custommod
An abbreviated directory and file structure:
/etc/puppet
|- manifests
|- site.pp
|- modules
|- manifests
|- init.pp
|- manifests
|- init.pp
|- custommod
|- manifests
|- init.pp
|- apps.pp
I did check spelling :}
The content of init.pp in the custommod directory is completely unremarkable:
class custommod {
The intent is to create an empty class for the apps.pp file, which is where the meat is.
class custommod::apps {
[lots of stuff]
Only, it's never getting to the apps file. If I comment out the include custommod, the above error is generated on the class{ "custommod::apps": frontend =& "false} line instead.
What am I missing in my hunt to find out how this error is being generated? I need to note that this repo works just fine if it is run locally via puppet apply.
102k14124256
So... this is a bit embarrassing, but...
Environments.
Right there in my /etc/puppet.conf file is this:
manifest=$confdir/manifests/site.pp
modulepath=$confdir/environments/$environment/modules:$confdir/modules
After throwing strace at it to figure out where it was hunting for files, I noticed something. It was looking for custommod under /etc/puppet/environments/production/modules, and since there was a directory there (empty), it did not then go check /etc/puppet/modules. Apparently when importing a module it checks for directory-presence, rather than file-presence (init.pp).
Remove that empty directory, things start working.
Run the puppet agent using a different environment, things start working.
Moral of the story:
Puppet Environment paths do not act like bash $PATH.
102k14124256
I ran into this same problem, but had a different fix
If you generate a puppet module like so:
puppet module generate foo-example_module
It will create a module named example_module with the foo name space. All the manifests will be inside a directory called foo-example_module
The name of the class defined in the init.pp needs to be the same as the folder name.
Simple fix:
mv foo-example_module example_module
If you run puppet-lint, it will warn with the following message:
ERROR: example_module not in autoload module layout on line 42
If using a Puppetfile with r10k or librarian-puppet, you also may need to remove the name space so that the files are placed without the 'foo' prefix in your modules directory.
mod 'foo-example_module',
:git =& :foo/example_module'
mod 'example_module',
:git =& :foo/example_module'
Another problem that might happen is when your module have an invalid metadata.json file.
Make sure the metadata.json file have all the required fields (see
Ran into similar problem with puppet 3.7.1 for Fedora:
Could not find class puppet for my.server
sudo ln -s /my/local/copy/puppet/modules /etc/puppet/
Then it works.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
rev .25074
Server Fault works best with JavaScript enabledgoyou 的BLOG
用户名:goyou
访问量:3164
注册日期:
阅读量:5863
阅读量:12276
阅读量:388733
阅读量:1079820
51CTO推荐博文
同事让我帮他找一个错误,他说明明写的对的,怎么老是报错。其实,使用MyBaties在编写sql配置文件时,都会遇到的一个小问题,问题虽小,对初学者可能都会碰到。org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.boco.fsmsys.amuse.dao.AmuseItemDao.amuseItem at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementParameterMap(MapperBuilderAssistant.java:326) at org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement(MapperBuilderAssistant.java:290) at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:110) at org.apache.ibatis.session.Configuration.buildAllStatements(Configuration.java:567) at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:493) at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:488) at org.apache.ibatis.binding.MapperMethod.setupCommandType(MapperMethod.java:236) at org.apache.ibatis.binding.MapperMethod.&init&(MapperMethod.java:71) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:39) at $Proxy9.find(Unknown Source) at com.boco.fsmsys.amuse.service.impl.AmuseItemServiceImpl.find(AmuseItemServiceImpl.java:31) at com.boco.fsmsys.amuse.service.impl.AmuseItemServiceImpl$$FastClassByCGLIB$$f42525b0.invoke(&generated&) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) at com.boco.fsmsys.amuse.service.impl.AmuseItemServiceImpl$$EnhancerByCGLIB$$b6a4972c.find(&generated&) at com.boco.fsmsys.test.service.AmuseItemServiceTest.testFind(AmuseItemServiceTest.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)Caused by: java.lang.IllegalArgumentException: Parameter Maps collection does not contain value for com.boco.fsmsys.amuse.dao.AmuseItemDao.amuseItem at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:660) at org.apache.ibatis.session.Configuration.getParameterMap(Configuration.java:442) at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementParameterMap(MapperBuilderAssistant.java:324) ... 45 more&&&&从异常的提示发现是配置文件中,find这个方法的sql参数类型或者名称写错了,但是你发现这个位置并没有些写错。于是你很困惑,其实问题就在这个配置文件中,提示的也对,只是位置不对。mybaties中只要有任何一个地方报错,都无法通过。最后发现是另个一个方法上将parameterType写成了parameterMap了(&id="getClassByID"¶meterMap="String"&resultMap="classResultMap"&&)。再者之所以大家犯错,有一个原因是在编写配置文件时,会提示parameterMap ,但是这个在mybaties中已经不再用这个属性了。所以大家写配置文件时,要小心细心。本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)

参考资料

 

随机推荐