草庐IT

ObjectIdentifier() -- data isn‘t an object ID (tag = 48)

记录一个离奇的bug:需求是es版本由7.8升级到7.14.2,然后,升级完es客户端之后,客户端连不上es,es客户端开启了xpack用户认证。然后就出这个异常。Causedby:ElasticsearchException[failedtoinitializeSSLTrustManager];nested:IOException[parseAlgParametersfailed:ObjectIdentifier()--dataisn'tanobjectID(tag=48)];nested:IOException[ObjectIdentifier()--dataisn'tanobjectID

绘制3d散点图报错ax = fig.gca(projection = ‘3d‘)TypeError: gca() got an unexpected keyword argument

 问题:使用matplotlib绘制3d散点图时报错ax=fig.gca(projection='3d')TypeError:gca()gotanunexpectedkeywordargument'projection'解决:改成如下代码即可运行ax=fig.add_subplot(projection='3d')

.net6使用EfCore模型驱动创建数据库时报错A connection was successfully established with the server, but then an erro

报错内容:Aconnectionwassuccessfullyestablishedwiththeserver,butthenanerroroccurredduringtheloginprocess.(provider:SSLProvider,error:0-证书链是由不受信任的颁发机构颁发的。)问题分析数据库版本:SQLServer2014visualstudio版本:2022数据库创建采用模型驱动写好eitity类,在配置DbContext时,代码如下:```csharpusingMicrosoft.EntityFrameworkCore;namespaceShuDaKang.Entity

【Python】Pandas Excel file format cannot be determined, you must specify an engine manually.报错【已解决】

Pandas读取Excel报错Excelfileformatcannotbedetermined,youmustspecifyanenginemanually.pd.read_excel方法本身是支持多种引擎的,包括"xlrd",“openpyxl”,“odf”,“pyxlsb”,更换引擎后依然失效!Debug我们直接用可以直接用openwith打开源文件withopen(ipath,'r',encoding='utf-8')asf:print(f.read())神奇的一幕发生了,有的文件名义上是Excel,其实内心是个Html!解决办法使用pd.read_html方法df=pd.read_h

打开项目出现报错:An error occurred while resolving packages: Project has invalid dependencies: com.unity.

最近做unity项目,gitpull别人的项目,打开后出现这样的报错:Anerroroccurredwhileresolvingpackages:Projecthasinvaliddependencies:com.unity.visualeffectgraph:Package[com.unity.visualeffectgraph@12.1.10]cannotbefoundAre-importoftheprojectmayberequiredtofixtheissueoramanualmodificationof...翻译是:解析包时出错:项目具有无效的依赖项:com.unity.visual

【解决问题】Error updating database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your S

问题描述:在更新数据时候遇到如下报错信息:Errorupdatingdatabase.Cause:java.sql.SQLSyntaxErrorException:YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorrespondstoyourMySQLserverversionfortherightsyntaxtousenear‘order’’atline4解决方案:1、先检查自己的字段是否正确匹配,可能是字符出现了错误2、还有可能是不小心用到了sql的关键词,比如这儿出现的错误就是因为用了order作为数据表的字段名导致报错;将字段名修改一

Requested bean is currently in creation: Is there an unresolvable circular reference?(循环依赖报错)

什么是循环依赖?打个比方,你打电话给小明,小明也在打电话给你,此时电话里会说对方正在通话中,而上述报错就是这个”正在通话中“。代码含义就是:a中注入了b,b中又注入了a,就会触发循环依赖问题;话不多说上代码:publicclassA{@AutowiredprivateBb;}publicclassB{@AutowiredprivateAa;}解决方法:在某一个类中添上@Lazy注解,该注解的作用是延迟互相依赖的其中一个bean的加载,从而解决Spring在初始化bean的时候不知道先初始化哪个的问题。publicclassA{@Autowired  @LazyprivateBb;}通过修改ym

json - 戈朗 : Type [type] is not an expression; json config parsing

我正在尝试编写一些代码以从JSON文件中提取配置。当我尝试构建时,出现此错误typeConfigVarsisnotanexpression下面是我尝试使用的配置和程序代码。到目前为止我发现的每个示例都类似于下面的代码。对我做错了什么有什么建议吗?--ConfigFile{"beaconUrl":"http://test.com/?id=1"}--ProgramCodepackagemainimport("encoding/json""fmt""os")typeConfigVarsstruct{BeaconUrlstring}funcmain(){configFile,err:=os.O

json - 戈朗 : Type [type] is not an expression; json config parsing

我正在尝试编写一些代码以从JSON文件中提取配置。当我尝试构建时,出现此错误typeConfigVarsisnotanexpression下面是我尝试使用的配置和程序代码。到目前为止我发现的每个示例都类似于下面的代码。对我做错了什么有什么建议吗?--ConfigFile{"beaconUrl":"http://test.com/?id=1"}--ProgramCodepackagemainimport("encoding/json""fmt""os")typeConfigVarsstruct{BeaconUrlstring}funcmain(){configFile,err:=os.O

Unable to find an entry point named ‘OrtGetApiBase‘ in DLL ‘onnxruntime‘解决办法记录

最近在做深度学习的项目,onnx用c#程序部署。然后发现在部署/移植模型的时候遇到了一个问题,找了很多资料都没解决还得亲自动手了报错弹窗内容System.TypeInitializationException:“Thetypeinitializerfor'Microsoft.ML.OnnxRuntime.NativeMethods'threwanexception.”EntryPointNotFoundException:Unabletofindanentrypointnamed'OrtGetApiBase'inDLL'onnxruntime'.各种测试以后发现是程序包的问题解决办法是移除掉项