Skip to content

GPL exception not working for pyinstaller #24

Description

@LarsN-hub

System Setup

I am using python 3.13.14 on a Windows 11 device. I am running the commands from a PowerShell 7 terminal in a fresh virtual environment made with venv. I have installed python-third-party-license-file-generator (and all other packages) with pip (version 26.1.2).

Issue

I am trying to generate a third party licenses file for an environment where I use pyinstaller. As I understand, pyinstaller has an exception to the GPL clause that you can include any executable generated by their code without the GPL restrictions, which is what I am trying to do.

However, when I include -x pyinstaller in the command to generate the third party licenses file and ignore pyinstaller's GPL license, it still includes it as normal and triggers the GPL error without finishing the script. I believe I am using the command correctly, because I tried installing another GPL package (pyqt6) and was able to successfully ignore it by passing -x pyqt6 as expected.

The specific line of output regarding pyinstaller is this:

GPL-2.0 <---- !!! WARNING: you have specified not to permit GPL licenses but AGPL/GPL-licensed packages were detected
        'pyinstaller' by 'Hartmut Goebel, Giovanni Bajo, David Vierra, David Cortesi, Martin Zibricky' ('https://pyinstaller.org')

Steps to Recreate

  1. Create a fresh virtual environment:
    python -m venv Test_Env
  2. Activate the new environment:
    Test_Env\Scripts\activate
  3. Install pyinstaller and third-party-license-file-generator:
    pip install pyinstaller third-party-license-file-generator
  4. Create requirements file:
    pip freeze > requirements.txt
  5. Attempt to generate third party licenses file and above error message should occur:
    python -m third_party_license_file_generator -r requirements.txt -p Test_Env\Scripts\python -x pyinstaller

Any help would be greatly appreciated, I am sure I'm just doing something wrong as I'm somewhat new to this. In the meantime I am just not including GPL licenses in the search because pyinstaller is the only one that I use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions