Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Wrong arch being picked up ? #76

Open
DrYak opened this issue Nov 19, 2019 · 2 comments
Open

Wrong arch being picked up ? #76

DrYak opened this issue Nov 19, 2019 · 2 comments

Comments

@DrYak
Copy link

DrYak commented Nov 19, 2019

Hi!

I'm using an Pi 3B+ where I run the current up-to-date Raspbian Buster (armv6) and boot the kernel8.img (aarch64) - this one was recently added to the official kernel package, it's not anymore an experimental firmware fetch from Hexxeh's repository. I have berryconda (armv7) installed on it since almost one year ago.

I'm under the impression that conda is getting confused by this recently upgraded arch:

I would like to query the nodejs package, but I get the following message, when I try conda search nodejs :

Loading channels: done

PackagesNotFoundError: The following packages are not available from current channels:

  - nodejs

Current channels:

  - https://conda.anaconda.org/rpi/linux-aarch64
  - https://conda.anaconda.org/rpi/noarch

Apparently, conda is trying to decide which arch to use based on the kernel's arch (aarch64 since kernel8.img was made available by the RPi Foundation) instead of the userspace arch (still armv7 on my installation of berryconda).

Using tricks like CONDA_FORCE_32BIT=1 doesn't seem to have any influence (maybe that trick is hardcoded only for intel-like arch: x86_64 vs i686)

Have you encountered such arch confusion ? And do you know a way around (save from re-booting the kernel7.img during the conda operations ?)

Thank you very much.

@DrYak
Copy link
Author

DrYak commented Nov 19, 2019

Solved.

Big thanks to Isuru Fernando from the Conda Forge gitter channel :

It's possible to force the subdirectory using subdir :

$ conda search nodejs[subdir=linux-armv7l]
Loading channels: done
# Name                  Version           Build  Channel             
nodejs                   10.8.0   h4f752ac_1001  rpi                 

@DrYak
Copy link
Author

DrYak commented Nov 19, 2019

And to use it for updating, here's the environment variable to set:

CONDA_SUBDIR=linux-armv7l conda update --all

Thanks again to Isuru and @jjhelmus !

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

No branches or pull requests

1 participant