Morisset / pySSN

Pythonic Spectral Synthesis for Nebulae
Other
4 stars 2 forks source link

python 3 compatibility #8

Closed Morisset closed 6 years ago

Morisset commented 6 years ago

File "/Users/christophemorisset/anaconda/envs/py3k5qt4/lib/python3.5/site-packages/pyssn/qt/pyssn_qt.py", line 681, in create_menu s = s + ' ' + str(i) + ' - ' + items[i] + '\n' TypeError: 'odict_values' object does not support indexing

mvfcopetti commented 6 years ago

In line 659, items = list(self.line_print_dic.values()) does not solve the problem?

Morisset commented 6 years ago

OK, Thanks. The main issue with python 3 is actually the default Qt version, changing from 4 to 5. This will be another (big) issue.