google / google/spatial-media

Upgrade to Python3.9+ (update: already done in source.. release out of date)

Open
#299 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.1k
Forks
482
PR merge metrics
No merged PRs in 30d

Description

I'm on Python 3.11.
In spatialmedia/gui.py I had to change

```
import tkFileDialog
import tkMessage
```

to

```
from tkinter import filedialog
from tkinter import tkmessage
```

and
`from TKinter import *`
to
`from tkinter import *`

and all 2 instances of `tkFileDialog` to `filedialog`
and all 1 instance of `tkMessageBox` to `messagebox`

Then in spatialdata/metadata_utils.py
I changed
`for child in parsed_xml.getchildren():`
to
`for child in parsed_xml: `

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.