alexmojaki/snoop

Pyinstaller Freezing Error

diVineProportion opened this issue · 1 comments

when freezing with pyinstaller (single file) on windows a NameError: name 'copyright' is not defined appears. Not sure if this is an issue with hidden imports or hooks, but I wasn't able to get it to work with a simple

import snoop

@snoop
def counter(start, end):
    for i in range(start, end):
        print(i)
        
if __name__ == "__main__":
    counter(1, 1000)

Try pip install -U cheap_repr first.