简体   繁体   English

使用ITKPython时Pyinstaller出现问题

[英]Problem with Pyinstaller when using ITKPython

I am using ITKPython, My codes are working well in PyCharm with *.py format but after making a standalone *.exe file via PyInstaller some errors occure as follow: 我正在使用ITKPython,我的代码在* .py格式的PyCharm中运行良好,但是通过PyInstaller制作了独立的* .exe文件后,发生了一些错误,如下所示:

Traceback (most recent call last):
File “RSG_V_0.py”, line 27, in <module>
File “site-packages\itkExtras.py”, line 449, in imread
File “site-packages\itkLazy.py”, line 40, in getattribute
AttributeError: ‘LazyITKModule’ object has no attribute ‘ImageFileReader’
[29316] Failed to execute script RSG_V_0

Would you please show me the way to solve these kind of problems. 您能给我示范解决这类问题的方法吗? By the way, already I test my PyInstaller with a simple print.py, In fact PyInstaller is working correctly without ITK filters. 顺便说一句,我已经用一个简单的print.py测试了我的PyInstaller,实际上PyInstaller在没有ITK过滤器的情况下可以正常工作。

Thanks Sina 谢谢新浪

That is most likely a problem in PyInstaller. 这很可能是PyInstaller中的问题。 Report it on their issue tracker . 在他们的问题跟踪器上报告。

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

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