Closed PmUUK closed 1 year ago
The same problem is also with
nix-shell -p rPackages.arrow
and
nix-env -iA nixos.rPackages.arrow
I can help explain what's happening but don't know the best solution in this case. TLDR: This issue is not present in the nixpkgs-unstable
channel, because rPackages.arrow
was updated to 12.0.0 in https://github.com/NixOS/nixpkgs/pull/234958. A way to fix this is to track nixpkgs-unstable
instead of nixos-23.05
. More information about channels here.
This happened when arrow-cpp
was updated to 12.0.0 in https://github.com/NixOS/nixpkgs/pull/229356. It includes a breaking change in https://github.com/apache/arrow/issues/15280 which moved the arrow/compute/exec/
directory. I guess this was only fixed when rPackages.arrow
was updated as well a month later. I suppose the branch off point for NixOS 23.05 was between these two events.
I don't know what the backporting policy is for R packages.
/cc R team @bcdarwin @jbedo
Thank you very much for the insight! I had a feeling that was something wrong with the package configuration. I am trying to move to nixos, and R arrow is essential to me, at this point.
Can this be fixed by updating the rPackages.arrow build process in NixOS 23.05, or should I try unstable?
The easiest thing is to try unstable. The nice thing about Nix is that you can revert that change if it's too unstable.
The other possibility that is entirely in your control is to update the package yourself in your own configuration, such as by overriding a single package (in "Pinning an unstable service" section); caveat that I have never tried this myself.
It still could be possible to backport to the 23.05 release branch.
The easiest thing is to try unstable. The nice thing about Nix is that you can revert that change if it's too unstable.
You mean to try just the unstable package or the whole unstable NixOS? I love the revert feature, If I manage to make all of my system work, I may leave Debian as a desktop.
The other possibility that is entirely in your control is to update the package yourself in your own configuration, such as by overriding a single package (in "Pinning an unstable service" section); caveat that I have never tried this myself.
I just starting playing with the nix way, I would like to try it, and learn, but it took me some days just to understand the proper way to setup R, so I am not very keen to go that way.
It still could be possible to backport to the 23.05 release branch.
If I accomplish the private package config, I probably can send a fix to the repo.
I meant trying the unstable channel as a whole, but it's a personal preference.
Here's something else I found that you can try: https://discourse.nixos.org/t/selecting-a-channel-with-nix-shell/4247
Thanks for noting this issue, rPackages.arrow
is unfortunately quite sensitive to minor version changes and currently even unstable is broken due to the latest package bump of rPackages. I have bumped arrow to correct this at https://github.com/NixOS/nixpkgs/pull/241068 but it hasn't been checked properly yet.
In this case I think we should backport an update for rPackages.arrow
as it is a fairly critical package.
I meant trying the unstable channel as a whole, but it's a personal preference.
Here's something else I found that you can try: https://discourse.nixos.org/t/selecting-a-channel-with-nix-shell/4247
Thanks, I had in mind that is an option, and I was going to try it.
This should be fixed with the backport.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/trouble-installing-rpackages-arrow/46196/2
Steps To Reproduce
Steps to reproduce the behavior:
I am trying to install R arrow package, system wide. I add arrow as any other R library I use.
Build log
Additional context
I want to switch to nixos, so I am trying to recreate my Debian working environment on a VM and an old laptop. For now, I hardly understand the nix language, but all other R packages I add were build without problems.
Notify maintainers
I think there are no maintainers listed for the R arrow.
Metadata