首先pyonnet安装要确保无误,不然会报OSError: cannot load library ''
;
当前版本是python39,此时pip install pythonnet
报错没有wheel, 需要自行下载,附上大多数wheel的下载链接https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml 下载完成后pip install 路径+wheel名
。
因为我用到了pythonnet的import clr
;clr.AddReference('dll名')
且在打包完成后dist文件夹的exe同级目录没有这个dll,
所以报错System.IO.FileNotFoundException:Unable to find assembly 'XXX.dll'
。最后自行添加在同级目录即可。
详细解决方案
Pyinstaller打包成使用了pyonnet包的exe时报错System.IO.FileNotFoundException:Unable to find assembly ‘XXX.dll‘。
热度:8 发布时间:2023-11-28 05:37:32.0
相关解决方案
- org.apache.jasper.JasperException: Unable to compile class for JSP:该怎么解决
- org.apache.jasper.JasperException: Unable to compile class for JSP:解决思路
- Unable to load class for JSP,该如何处理
- struts2.3.4.1启动抛错误 Unable to load configuration
- 国庆快活~ getHibernateTemplate().find 按时间最大查询
- 警告: Could not find action or result 什么原因?该如何解决
- this.getHibernateTemplate().find()有关问题
- cas客户端有关问题(unable to find valid certification path to requested target)
- :Unable to intantiate Action
- Unable to compile class for JSP找不出异常
- struts2 文件上载有关问题 Can not find a java.io.InputStream with the name [downloadFile]
- Could not find a getter for name in class解决方法
- System.setProperty("javax.net.ssl.keyStore 多个其间冲突
- 关于Cannot find bean under name 的错误
- Cannot find any information on property 'cipher' in a bean of type 'xx.JiamiBean解决思路
- s2sh tomcat 启动报错 Caused by: java.io.FileNotFoundException: Could not open Servle,该如何解决
- 请问:org.apache.jasper.JasperException: Cannot find any information on property 'userPhone' in a bean of type 'Bean.Sender'
- properties. java.io.FileNotFoundException!请高手指教!该怎么处理
- java.lang.OutOfMemoryError: unable to create new native thread内存泄漏分析-备忘解决办法
- 关于 System.getProperty("audio.encodings");该怎么处理
- could not find jar tool executable.该如何解决
- 用eclipse打包jar后运行,弹出异常could not find main class
- 关于JSR75开发 怎么查到 system root name。多谢
- javax.xml.soap.SOAPException: System.Web.Services.Protocols.
- Ubuntu上 java FileNotFoundException
- 求教 this.getHibernateTemplate().find()步骤
- 求教高手:Unable to load configuration.该如何处理
- System.arraycopy()的1点疑问
- myeclipse控制台程序运行报错:could not find the main class:org.apache.log4j.net.JMSSink.解决办法
- this.getHibernateTemplate().find()如何用