Page MenuHomePhabricator

Unable to install stringi and stringr R libraries on PAWS
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Open an Jupyter Notebook with R kernel on https://hub-paws.wmcloud.org/
  • Install the stringi library : install.packages("stringi")
  • Load the stringi library : library("stringi")

What happens?:

  • You've got the message " unable to load shared object '/srv/r/stringi/libs/stringi.so':"

On Ubuntu, stringi requires the library libicu-dev to be installed (https://stringi.gagolewski.com/install.html).

Is it possible to install libicu-dev on PAWS ?

FYI stringi is a very important string manipulation library in R. stringr depends on stringi.

See https://public.paws.wmcloud.org/User:PAC2/stringi.ipynb for an example.

What should have happened instead?:

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

PAC2 renamed this task from Add libicu-dev library to PAWS to Unable to install stringi and stringr R libraries on PAWS.Mar 6 2023, 10:21 PM
PAC2 created this task.

We can test out the PR locally when it is finished building. Though we probably won't deploy until next week when PAWS is back to one cluster.

Looking a little closer it would appear that libicu-dev is already installed

@PAWS:~$ dpkg -l | grep icu
ii  icu-devtools                              70.1-2                                  amd64        Development utilities for International Components for Unicode
ii  libicu-dev:amd64                          70.1-2                                  amd64        Development files for International Components for Unicode
ii  libicu70:amd64                            70.1-2                                  amd64        International Components for Unicode

I'm wondering if this has to do with libicu70, when perhaps it is libicu66 that is expected?

I see

libicui18n.so.66: cannot open shared object file: No such file or directory

In the output when I run the steps described by @PAC2

Thanks for your feedback.

I still have the same issue : https://public.paws.wmcloud.org/User:PAC2/stringi.ipynb

So maybe we need libicu66

I think this is working now. R was pulling from some focal rather than jammy repos.