我正在尝试将我的项目转换为exe。这是tkinter gui型项目。在环境中,一切都很好,但是当我将它转换为exe时,我确实遇到了一个问题。桂显示,但主要的阶级是不工作的。我收到:
AttributeError:模块'email‘没有属性'Send_email’
下面的代码在visual studio中工作非常简单,但在转换为exe时会停止。感谢你的帮助。
import email ##my .py file with class
main_class = email.Send_email() ## getting Send_email class
main_class.mechanism_bot(user,issue,body) ## getting the function from the class发布于 2019-08-07 10:01:21
我相信email是Python中的一个标准模块名。您是否尝试过将您的模块重命名为其他东西?
请参阅:https://docs.python.org/3/library/email.html#module-email
https://stackoverflow.com/questions/57391671
复制相似问题