You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue when creating a python binary using Pyinstaller. It does not include the site module , which is where help comes from. This results in a NameError when importing simpleeval. As including site seems like it would cause Pyinstaller significant issues it might be wise to check for it's existence before adding it to your excluded keywords list in simpleeval.
The relevant code is DISALLOW_FUNCTIONS = {type, isinstance, eval, getattr, setattr, help, repr, compile, open}
Here's a pyinstaller issue I was able to find that is related.
I'm having an issue when creating a python binary using Pyinstaller. It does not include the
site
module , which is wherehelp
comes from. This results in a NameError when importing simpleeval. As includingsite
seems like it would cause Pyinstaller significant issues it might be wise to check for it's existence before adding it to your excluded keywords list in simpleeval.The relevant code is
DISALLOW_FUNCTIONS = {type, isinstance, eval, getattr, setattr, help, repr, compile, open}
Here's a pyinstaller issue I was able to find that is related.
pyinstaller/pyinstaller#4448
If you feel this is a pyinstaller issue I can recreate this issue over there.
The text was updated successfully, but these errors were encountered: