首页 > 解决方案 > 在 python3 中编译时出现错误“TypeError: 'module' object is not callable”

问题描述

我正在尝试将此代码用于我的项目。

当我尝试运行此代码时,我收到一个错误:TypeError: 'module' object is not callable.此错误的详细信息如下:

Traceback (most recent call last):
  File "edit2.py", line 597, in <module>
    if __name__ == "__main__":
  File "edit2.py", line 417, in main
    else:
  File "edit2.py", line 75, in connect_earthexplorer_no_proxy
    params = urllib.parse.urlencode(dict(username=usgs['account'],password= usgs['passwd'], csrf_token=token))
TypeError: 'module' object is not callable

请帮我解决这个问题。

标签: urllib

解决方案


推荐阅读