I am pretty new to pyinstaller but I have been banging my head against this problem for a couple of days now and I can't seem to figure out what's wrong. My script runs fine normally but throws IOerror when i try to build with pyinstaller, my modules (including ply.lex) seem to be included but maybe i'm being an idiot? If anyone has any advice it would be much appreciated...
Here's my error (line 65 is where my lexer is built)
Traceback (most recent call last):
File "<string>", line 65, in <module>
File "site-packages/ply/lex.py", line 906, in lex
File "site-packages/ply/lex.py", line 580, in validate_all
File "site-packages/ply/lex.py", line 822, in validate_rules
File "site-packages/ply/lex.py", line 833, in validate_module
File "inspect.py", line 690, in getsourcelines
File "inspect.py", line 529, in findsource
IOError: source code not available
If anyone has seen this problem before, or can help that would be awesome.