Skip to content

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

Description

@JJones780

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions