Hi Jim Thanks for your suggestions.
I changed from cx_Freeze import * to from cx_Freeze import setup, Executable And no longer get the BdistDMG error — I had found the page https://cx-freeze.readthedocs.io/en/latest/setup_script.html But hadn’t tried the setup, Executable option in the from statement — However I now get an error init() takes from 2 to 12 positional arguments but 14 were given I found a couple instances of init in two .py files that were part of the whole. One .py file def __init__(self): Another .py file class Aboutwindow(QtGui.QMainWindow, Ui_Aboutwindow): def __init__(self,parent=None): QtGui.QMainWindow.__init__(self,parent) — class Main(QtGui.QMainWindow): def __init__(self): QtGui.QMainWindow.__init__(self) When searching for this error the answers found suggested including self in the init parameter list but the code already has self. Thanks, David > On Aug 15, 2022, at 5:51 PM, Jim Schwartz <jsch...@sbcglobal.net> wrote: > > This link covers how to use BDist_dmg. > > https://cx-freeze.readthedocs.io/en/latest/setup_script.html > > Sent from my iPhone > >> On Aug 15, 2022, at 12:11 PM, David at Booomer <da...@boomer.org> wrote: >> >> I’m trying to use cx_Freeze (https://pypi.org/project/cx-Freeze/) in a >> python app but running into an error message: >> >> AttributeError: module 'cx_Freeze' has no attribute ‘BdistDMG’ >> >> I’m using Anaconda and error appears with the import command: from cx_Freeze >> import * >> >> From the terminal the command: python setup.py build gives much the same >> error. >> >> I believe there is an issue specifying the output file name but don’t know >> how to resolve it. >> >> Any suggestions, thanks. David >> >> >> -- >> https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list