centos7下利用pyinstaller打包python程序,生成的执行文件运行报错,如何解决
利用pyinstaller打包,生成的执行文件运行报错,报错结果如下:Traceback(mostrecentcalllast):File"<string>",line2...
利用pyinstaller打包,生成的执行文件运行报错,报错结果如下:Traceback (most recent call last): File "<string>", line 22, in <module> File "D:\sourcefile\PyInstaller-2.1\PyInstaller\loader\pyi_importers.py", line 270, in load_module File "/ly_cal/CS_Repo/crawler_cross_etf/src/tmp/main/build/main/out00-PYZ.pyz/client.cal_client", line 21, in <module> File "D:\sourcefile\PyInstaller-2.1\PyInstaller\loader\pyi_importers.py", line 270, in load_module File "/ly_cal/CS_Repo/crawler_cross_etf/src/tmp/main/build/main/out00-PYZ.pyz/proto.base_pb2", line 35, in <module> File "/usr/lib64/python2.7/site-packages/google/protobuf/descriptor.py", line 649, in __new__ _message.Message._CheckCalledFromGeneratedFile()TypeError: Descriptors should not be created directly, but only retrieved from their parent.
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询