#๐Ÿ”’ Tcl Not Installing Properly

4 messages ยท Page 1 of 1 (latest)

errant steppe
#

When trying to export my Application using py2app as my exporter and Tkinter as my UI, It works perfectly fine on my device. Once i send it to someone else's computer however, it crashes, resulting in the following error message

This probably means that Tc1 wasn't installed properly.

I know tcl and tk are supposed to be installed themselves but the issue persists,

This is what I've done so far, but still at no luck

import sys
import os
from setuptools import setup

APP = ['main.py']
DATA_FILES = [
    ('assets', [
        'assets/icon.icns',
        'assets/documentation.pdf',
        'assets/help.png',
        'assets/tutorial.png',
        'assets/logo.png',
    ]),

]
OPTIONS = {
    'iconfile': 'assets/icon.icns',
    'includes': [
        'matplotlib', 
        'pandas', 
        'ldap3', 
        'tableauserverclient',
        'json',
        'os',
        'tkinter',
        'threading',
        'charset_normalizer'
        ],
}

if sys.platform == 'darwin':
    tcl_root = '/System/Library/Frameworks/Tcl.framework/Versions/8.5'
    tk_root = '/System/Library/Frameworks/Tk.framework/Versions/8.5'
    OPTIONS['frameworks'] = [
        os.path.join(tcl_root, 'Tcl'),
        os.path.join(tk_root, 'Tk'),
    ]

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
    name='Material Assignment Viewer',   
)

Any help would be greatly appreciated

brisk totemBOT
#

@errant steppe

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

brisk totemBOT
#

@errant steppe

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.