AttributeError: module 'inspect' has no attribute 'getsource' using Textmate

AttributeError: module 'inspect' has no attribute 'getsource' using Textmate

这曾经在 Textmate 中工作

#!/usr/bin/env python3
from forecastiopy import *

最近它仅在保存文件时停止工作,相同的代码在未保存的文件中工作。 (我一定是把它搞砸了,但我不确定如何修复它)。非常感谢任何帮助。

python3 是 /usr/local/bin/python3 & /usr/local/bin 在 Textmate 的路径中

macOS 莫哈韦沙漠 10.14.2 Python 3.7.2 TextMate 2.0-rc.10

我修好了。我有一个名为 inspect.py 的用户示例脚本,它在同一目录中使用 inspect 模块,而不是实际模块。