Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
955 views
in Technique[技术] by (71.8m points)

python 3.x - AttributeError: module 'win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9' has no attribute 'MinorVersion'

I have some code wherein I am importing the python file using importlib.import_module() but I am getting some strange attribute error which was not there couple of days back when I ran the same python script (without any change). Here is the error: AttributeError: module 'win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9' has no attribute 'MinorVersion'

Also, the full traceback:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:UsershpAnaconda3libkinter\__init__.py", line 1705, in __call__
  File "C:/Fourth Term @ Dal/Project/Collaboration/Sensitivity analysis/GUI/template5.py", line 88, in go_to_template6
    importlib.import_module(Model_Variant)
  File "C:UsershpAnaconda3libimportlib\__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:Fourth Term @ DalProjectCollaborationSensitivity analysisGUIDay1Yes Base Model.py", line 219, in <module>
    excel = win32.gencache.EnsureDispatch('Excel.Application')
  File "C:UsershpAnaconda3libsite-packageswin32comclientgencache.py", line 534, in EnsureDispatch
  File "C:UsershpAnaconda3libsite-packageswin32comclientgencache.py", line 447, in EnsureModule
AttributeError: module 'win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9' has no attribute 'MinorVersion'
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...