google colab installation
Opened this issue · 5 comments
I installed tagore & librsvg2 on google colab and got:
Could not open /usr/lib/tagore-data/base.svg.p. Please reinstall tagore
Traceback (most recent call last):
File "/usr/local/bin/tagore", line 242, in
raise base_e
File "/usr/local/bin/tagore", line 239, in
BASE = open(BASE_PATH, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/tagore-data/base.svg.p'.
Folder /usr/lib/tagore-data/ does not exist.
Reinstallation doesn't help.
is version 1.1.1 available via pip install?
Not yet, since I don't believe it actually addresses the issue. There's unfortunately some ambiguity in setuptools on where data_files will wind up, so I'll need make some further adjustments.
works for google colab:
BASE_PATH = os.path.join(sys.exec_prefix, 'lib', 'tagore-data', 'base.svg.p') ->
BASE_PATH = os.path.join(sys.exec_prefix, 'local', 'lib', 'tagore-data', 'base.svg.p')
That won't necessarily be the install path in all installs like, e.g., a venv or conda env. Or when it's pip installed with --user.
@cappelchi better late than never, just released 1.1.2 which should solve this