So it's this tiny bit here in workalendar's __init__ causing the issue.
Namely that what it's trying to do doesn't work frozen.
https://github.com/peopledoc/workalendar/blob/master/workalendar/__init__.py
I can give you this temporary monkey wrench fix. Replace your import of
workalendar with:
# Define a fake pkg_resources that has the structure needed so as not
# not to raise an error in workalendar's __init__
class pkg_resources(object):
def get_distribution(package):
return Foo
class Foo:
version = None
# inject it into the module cache so that it is found rather than the
original
import sys
sys.modules["pkg_resources"] = pkg_resources
from workalendar.asia import Taiwan
# Clear up the mess we've made incase we need the real pkg_resources for
something else.
del sys.modules["pkg_resources"]
But it's a very hacky fix. I'd raise an issue with workalendar and ask them
to change their __init__.
pkg_resourses is a horrible dependency anyway because it takes so long to
load and they are using
it to do something very minor.
Brénainn
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/30f2724a-aa26-4fff-a4dd-c651161f6b1b%40googlegroups.com.