I have a Python application that works very well, inside of which I am doing something like:
from pygments import lexers
then ...
testing = lexers.PythonLexer()
Just running the script works fine, and I get a new instance of PythonLexer. However ... when I create a folder to create the application using PyInstaller and then run it, this line crashes:
File "blah \ myfile", line 31, in __init__ AttributeError: the object 'module' does not have the attribute 'PythonLexer'
Any ideas? I think this is because pigments somehow create their runtime objects from some files that are not in my PyInstaller assembly folder, but I can’t figure out how to do this.
Kivy, , .