py2app tkinter 'Detected missing constraints' error
Asked Answered
G

0

7

I am trying to package an existing python script that uses tk to choose a file and ask for a value into an app that includes all the dependencies.

I am using MacOS 10.12.5, homebrew python 3.6.1 and py2app 0.14.

The following works fine as a script, but when converted to an app (or -A alias app) I get an error Detected missing constraints for <private>... on the console. Simplified version that still produces the same error:

#!/usr/bin/env python3
# encoding: utf-8

import tkinter as tk
from tkinter import simpledialog

root = tk.Tk()
root.withdraw()

the_answer = simpledialog.askstring("Input", "What is the answer?",)

Am I missing something or is this a bug? If it is a bug is it a tk or py2app bug?

Galantine answered 4/7, 2017 at 6:49 Comment(1)
Raised a py2app bug linkGalantine

© 2022 - 2024 — McMap. All rights reserved.