Version 3.5 of py-pyinstaller, currently in ports, is incompatible with python 3.8. When one tries to use it, one gets a TypeError: https://github.com/pyinstaller/pyinstaller/issues/4580 They fixed this issue in version 4.1 of pyinstaller: https://pyinstaller.readthedocs.io/en/stable/CHANGES.html#id1 The current version of pyinstaller is 4.5 and it works with more recent python.
Thank you for the report. Upstream (for 3.5) states: Works out-of-the-box with any Python version 2.7 / 3.4-3.7 Needs patch to correctly declare the supported Python version-spec: -3.7
Yes, the port should certainly prevent one from building/installing it with Python 3.8 (it will build just fine, but not work properly). But it would be much, much better if the port could be updated to something that works with the current default version of Python.
(In reply to russo from comment #2) Sure, though the bug in the current version of the port should be fixed before a version update, such that that change can be merged to the quarterly branch. Also: separate logically different unrelated changesets
That may be a decision you have to make for release engineering concerns, but I honestly don't care one whit if the current port is "fixed" so it refuses to install with Python 3.8 --- as it stands, python 3.8 is the default, and holding the port back at version 3.5 does me no good at all because there is no path forward to work I need to do using pyinstaller that worked right up until Python 3.8 became the default. The reason I opened an issue was to ask for the port to be brought up to date, not to make the port have a python spec that prevents it from being installed. Perhaps I should have said so in the title rather than just pointing out that it doesn't work. Your title edit has changed the entire focus of my report.
(In reply to russo from comment #4) Fixing the bug does not preclude updating the port to support 3.8+. If you are able to, please include a patch updating the port to the latest version
Created attachment 227714 [details] Patch to update devel/py-pyiinstaller to current version This patch will update devel/py-pyinstaller from version 3.5 (which does not work with Python 3.8, even though it will build properly) to 4.5.1, which is the latest release version as of 7 August 2021.
As requested, I have attempted to patch the devel/py-pyinstaller port so that it will install 4.5.1 instead of 3.5. This was a heavy-handed patch, because upstream have stopped bundling the documentation in the source tarball on PyPi. It is still present in the Github repo for the project (https://github.com/pyinstaller/pyinstaller), but I did not want to try to modify the port to use the Github repo instead of CHEESESHOP. Thus, I had to remove all of the parts of the makefile pertaining to documentation and man pages. The new setup requires py-wheel, so I had to add that as a build depend. I find, however, that USING pyinstaller now requires "pyinstaller-hooks-contrib", which I did NOT create a port for. I simply used pip install to get at it, at which point pyinstaller now works correctly with Python 3.8. I will understand if this patch is too rough to be committed, but this is what it took to get me back to work.
Note 5.0.1 is the latest version. https://pyinstaller.org/en/stable/
There is also bug #276396 which updates the Port to 6.3.0. Sorry for not hunting this report down before starting work on bug #276396.
I am going ahead and closing this bug that I opened, as devel/py-pyinstaller was updated to version 6.3.0 for bug #276396, and so this issue is overcome by events. I have verified that version 6.3.0 and all of the work that was done to get it done for #276396 renders the port once again functional for the work for which I needed py-pyinstaller.