Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google colab installation #5

Open
cappelchi opened this issue Oct 21, 2021 · 5 comments
Open

google colab installation #5

cappelchi opened this issue Oct 21, 2021 · 5 comments

Comments

@cappelchi
Copy link

cappelchi commented Oct 21, 2021

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.

ar0ch added a commit that referenced this issue Oct 22, 2021
@cappelchi
Copy link
Author

is version 1.1.1 available via pip install?

@ar0ch
Copy link
Member

ar0ch commented Oct 22, 2021

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.

@cappelchi
Copy link
Author

cappelchi commented Oct 22, 2021

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')

@ar0ch
Copy link
Member

ar0ch commented Oct 22, 2021

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.

@ar0ch
Copy link
Member

ar0ch commented Dec 23, 2022

@cappelchi better late than never, just released 1.1.2 which should solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants