1. 遇到的问题
TypeError: in method ‘wrapper_GDALWarpDestName’, argument 4 of type ‘GDALWarpAppOptions *’
完整错误提示,如下图所示
出现错误的函数:
解决方法
缺少了proj.db这个函数库,在anaconda环境下找到proj.db库复制需要运行.py文件同目录下。
2.遇到的问题
FileNotFoundError:[Errno 2] No such file or directory:" xx\PhenogyMain\matplotlib\mpl-data\matplotlibrc"
[9992]Failed to execute script VegetationPhenogyMain因为在打包过程中,在dist文件夹没有生成matplotlib文件夹或者在matplotlib文件夹下生成的文件不全导致的。
解决方法
在Anaconda安装路径下找到Lib/sit-packages/matplotlib文件夹。将文件夹复制dist文件下,替换已有的matplotlib文件夹。