2017-09-13 142 views
0

我有一個調用easygui的Python腳本。這個腳本在我以前的電腦上工作得很好。我有一臺新電腦,我試圖升級我的腳本,但沒有從easygui得到一個錯誤。 這是違規的代碼。EasyGui diropenbox()給出錯誤'模塊'對象沒有屬性'askdirectory'

inDir = diropenbox("Set to the input directory of geo-tagged images. This directory will also store the output KML file.") 

這是錯誤消息。

PYTHON ERRORS: 
Traceback info: 
    File "C:\gTemp\GeotaggedImagesToKMLandCSVforLiNUXandiOS\GeotaggedImage2KML_CSV.py", line 150, in <module> 
inDir = diropenbox() 

Error Info: 
'module' object has no attribute 'askdirectory' 

爲什麼現在的代碼拋出這個錯誤?請注意,在我之前的代碼中,我稱之爲easygui文本框,並且工作,所以我相信安裝很好。 Python 2.7 Windows 7 easygui_0.98.1-py2.py3-none.any.whl installed。

回答

0

刪除easygui 0.98並安裝0.97修復了這個問題。

相關問題