Skip to content

Instantly share code, notes, and snippets.

View gthb's full-sized avatar

Gunnlaugur Thor Briem gthb

  • GRID
  • Reykjavík, Iceland
  • X @gthb
View GitHub Profile
@gthb
gthb / __pyinstaller_spacy_load_language_model.md
Last active September 26, 2023 03:12
Spacy under pyinstaller failing to load a language model package

Minimal example to reproduce spacy failing to load language model package under pyinstaller

Run bash build-linux.sh to reproduce on Linux (assumes python3 is installed somewhere in $PATH), or build-win.bat to reproduce on Windows (assumes Python 3.7.6 is installed at C:/Python37/)

It will fail with something like:

$ ./dist/linux/Foo/foo_r
Traceback (most recent call last):
 File "run.py", line 2, in 
@gthb
gthb / untitled257.ipynb
Created December 12, 2019 11:42
tensorflow-issue-34827
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am gthb on github.
  • I am gthb (https://keybase.io/gthb) on keybase.
  • I have a public key whose fingerprint is 9C3F 800C B912 421A F1D5 156F 397B 58A1 57B3 6783

To claim this, I am signing this object: