Search code examples
pythoncx-freezenonetype

Python - cx_freeze script not working


I have problem with python scripts built in cx_freeze. When I run the source script by python, everythink works. But when I run the compilled script, it still ended with errors like: object of type 'NoneType' has no len().

Thank you for your help, Honza


Solution

  • After long investigation I found that the problem was with HOME environment variable (It has to be set).

    When I set the environment variable HOME, it started to work properly.

    I hope it will safe time and help somebody, Honza