Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed missing system modules in app wrapper after upgrade to Python 3.6 #474
After upgrading to Python 3.6 [using brew on macOS 10.12], moneyGuru kept crashing on startup. The error was:
The problem was that none of the system modules had been copied into the app wrapper because the path to them -- as supplied by get_path('stdlib') in sysconfig.py -- included a symlink that made the path not match exactly what hscommon/build.py's collect_stdlib_dependencies expected.
Simple fix: Normalize the path using os.path.realpath before comparing with it.
Thanks! I could indeed verify the problem with Homebrew's python and I also verified that the fix was appropriate. There would just be that misleading comment to fix and it's good to merge.