Skip to content

Commit e3d77b5

Browse files
committed
Update pvsystem.py
I think you need this change in tkinter module import in order to comply with Python 3. Cheers, Elena
1 parent 35b6e7b commit e3d77b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pvlib/pvsystem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,9 @@ def retrieve_sam(name=None, samfile=None):
551551
response = urlopen(url)
552552
csvdata = io.StringIO(response.read().decode(errors='ignore'))
553553
elif samfile == 'select':
554-
import Tkinter
555-
from tkFileDialog import askopenfilename
556-
Tkinter.Tk().withdraw()
554+
import tkinter
555+
from tkinter.filedialog import askopenfilename
556+
tkinter.Tk().withdraw()
557557
csvdata = askopenfilename()
558558
else:
559559
csvdata = samfile

0 commit comments

Comments
 (0)