运行PythonWin时出错

时间:2016-10-07 08:47:17

标签: python python-2.7 traceback

我想为ArcGIS编写脚本(版本10.4.1)。出于我的目的,我计划使用PythonWin。但是在安装之后,当我运行该程序时,会弹出Python Traceback:

Traceback (most recent call last):
  File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\framework\intpyapp.py", line 181, in InitInstance
    import interact
  File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\framework\interact.py", line 31, in <module>
    import winout
  File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\framework\winout.py", line 233, in <module>
    import pywin.scintilla.view
  File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\scintilla\view.py", line 722, in <module>
    LoadConfiguration()
  File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\scintilla\view.py", line 708, in LoadConfiguration
    configManager = ConfigManager(configName)
  File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\scintilla\config.py", line 123, in __init__
    line, lineno = self._load_keys(subsection, fp, lineno)
  File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\scintilla\config.py", line 270, in _load_keys
    sc, flag = keycodes.parse_key_name(key)
  File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\scintilla\keycodes.py", line 91, in parse_key_name
    return vk, flags | this_flags
TypeError: unsupported operand type(s) for |: 'int' and 'NoneType'

如何解决此问题?

0 个答案:

没有答案