marcelotduarte/cx_Freeze

UnboundLocalError: cannot access local variable 'exclude_names' where it is not associated with a value

gbtami opened this issue ยท 7 comments

Follow up to #2356
After the new MSYS2 cx-Freeze package arrived we triggered a new build for pychess bdist_msi
https://github.com/pychess/pychess/actions/runs/8837952115/job/24269587548

I'm sorry, I didn't patch msys2 correctly. But I'm also working on tests for the msys2 version, so it avoids these errors. I ended up discovering other errors with this #2367.
I'm waiting for the pytest-datafiles package to become available and then I'll send a new patch.

I'm sorry, I didn't patch msys2 correctly. But I'm also working on tests for the msys2 version, so it avoids these errors. I ended up discovering other errors with this #2367.

@marcelotduarte thanks for your help!

I'm waiting for the pytest-datafiles package to become available and then I'll send a new patch.

For anyone else wondering how or when pytest-datafiles will be available:

You can test the patch in the latest development build (7.1.0.dev9):
pip install --force --no-cache --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze
For conda-forge the command is:
conda install -y --no-channel-priority -S -c https://marcelotduarte.github.io/packages/conda cx_Freeze
For msys2, download the file at: https://marcelotduarte.github.io/packages/msys2/ and use it w/ pacman -U