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

Some errors are not forwarded to R #54

Closed
Enchufa2 opened this issue Jan 13, 2023 · 3 comments
Closed

Some errors are not forwarded to R #54

Enchufa2 opened this issue Jan 13, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Enchufa2
Copy link
Member

E.g. when there's a dependency resolution error:

Install system packages as root...
Package R-CRAN-sf available, but not installed.
Traceback (most recent call last):
  File "/usr/share/R/library/CoprManager/service/CoprManager.py", line 149, in <module>
    run_as_root(args)
  File "/usr/share/R/library/CoprManager/service/CoprManager.py", line 124, in run_as_root
    pkgs = call_backend(args.cmd, pkgs, root=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/R/library/CoprManager/service/CoprManager.py", line 33, in call_backend
    return getattr(backend, cmd)(PREF, pkgs, EXCL)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/R/library/CoprManager/service/backend/dnf.py", line 60, in install
    base.resolve()
  File "/usr/lib/python3.11/site-packages/dnf/base.py", line 929, in resolve
    raise exc
dnf.exceptions.DepsolveError: 
 Problem: conflicting requests
  - nothing provides libgdal.so.31()(64bit) needed by R-CRAN-sf-1.0.9-1.fc38.copr5027045.x86_64
@Enchufa2 Enchufa2 added the bug Something isn't working label Jan 13, 2023
@eddelbuettel
Copy link
Contributor

Do you think one can/should catch that?

@Enchufa2
Copy link
Member Author

Now I see:

> install.packages("sf")
Install system packages as root...
Error: cannot connect to the system package manager

I want to see:

> install.packages("sf")
Install system packages as root...
Error: Package R-CRAN-sf available, but not installed.
 Problem: conflicting requests
  - nothing provides libgdal.so.31()(64bit) needed by R-CRAN-sf-1.0.9-1.fc38.copr5027045.x86_64

@Enchufa2
Copy link
Member Author

It works in D-Bus mode, but not in root mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants