ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
350 stars 35 forks source link

py2app tk app fails with 'Detected missing constraints' #232

Open ronaldoussoren opened 7 years ago

ronaldoussoren commented 7 years ago

Original report by Matthew Wakefield (Bitbucket: genomematt, GitHub: genomematt).


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?",)

I am not sure if this is a tk, py2app or interaction issue or a problem with home-brew install. Any suggestions of things to try that would narrow down the issue would be appreciated

ronaldoussoren commented 7 years ago

Original comment by Vincent Pfenninger (Bitbucket: Vincent_Pf, ).


I think this might be an issue with py2app version 0.14. Try reverting back to version 0.13 (e.g. by "pip install py2app==0.13") and see if the problem persists.

ronaldoussoren commented 7 years ago

Original comment by Jiajie Zhang (Bitbucket: LoveDaisy, GitHub: LoveDaisy).


I have met a similar problem but I didn't use tk.

My OS is MacOS 10.12.6, homebrew python 2.7.14 and py2app 0.14 (and also tried 0.13, failed again). Could this be issue of PyQt?

ronaldoussoren commented 6 years ago

Original comment by Demetrios Tsillas (Bitbucket: jtsillas, GitHub: jtsillas).


Some users are reporting this with an app that uses wxPython and Mac OS 10.12.

ronaldoussoren commented 6 years ago

Original comment by Shaun Meehan (Bitbucket: shauncharm, ).


I'm seeing the same failure mode on OS X 10.12.6 and py2app 0.14 (also tried 0.13-0.10)