Fix broken ui command in tutor binary

"tutor ui" was failing miserably, printing a lot of garbled characters
in the shell. In fact, a FileNotFound error was being raised and
automatically caught by the ui command. When removing the catch all,
this was the error that was raised:

    FileNotFoundError: [Errno 2] No such file or directory:
    '/tmp/_MEIimsqmq/wcwidth/version.json'     │

This is resolved on SO:
https://stackoverflow.com/questions/62155242/pyinstaller-cant-find-wcwidth-version-json-when-running-executable
This commit is contained in:
Régis Behmo 2020-06-19 16:29:29 +02:00
parent 001da4e24e
commit 2b0ed7daac
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,10 @@
Note: Breaking changes between versions are indicated by "💥".
## Unreleased
- [Bugfix] Fix broken `tutor ui` command in binary
## v10.0.3 (2020-06-19)
- [Bugfix] Fix error on android user creation

View File

@ -2,12 +2,16 @@
import importlib
import os
import pkg_resources
import wcwidth
block_cipher = None
datas = [("./tutor/templates", "./tutor/templates")]
hidden_imports = []
# Fix missing wcwidth/version.json file
datas.append((os.path.dirname(wcwidth.__file__), 'wcwidth'))
# Auto-discover plugins and include patches & templates folders
for entrypoint in pkg_resources.iter_entry_points("tutor.plugin.v0"):
plugin_name = entrypoint.name