Re: Key Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 6 Jul 2022, at 14:06, kefu chai <tchaikov@xxxxxxxxx> wrote:

On Wed, Jul 6, 2022 at 8:56 PM Hrishikesh Karanjikar
<hrishikesh.karanjikar@xxxxxxxxx> wrote:


hi Hrishikesh,

I am building CEPH for RiscV on Debian.
I am getting the following error. Can you guide me on how to resolve this?

Collecting nodeenv
 Using cached nodeenv-1.7.0-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in ./node-env/lib/python3.10/site-packages (from nodeenv) (59.6.0)
Installing collected packages: nodeenv
Successfully installed nodeenv-1.7.0
* Install prebuilt node (12.18.2)
Traceback (most recent call last):
 File "/home/debian/work/ceph-spdk/ceph/build/src/pybind/mgr/dashboard/frontend/node-env/bin/nodeenv", line 8, in <module>
 File "/home/debian/work/ceph-spdk/ceph/build/src/pybind/mgr/dashboard/frontend/node-env/lib/python3.10/site-packages/", line 1104, in main
   create_environment(env_dir, args)
 File "/home/debian/work/ceph-spdk/ceph/build/src/pybind/mgr/dashboard/frontend/node-env/lib/python3.10/site-packages/", line 980, in create_environment
   install_node(env_dir, src_dir, args)
 File "/home/debian/work/ceph-spdk/ceph/build/src/pybind/mgr/dashboard/frontend/node-env/lib/python3.10/site-packages/", line 739, in install_node
   install_node_wrapped(env_dir, src_dir, args)
 File "/home/debian/work/ceph-spdk/ceph/build/src/pybind/mgr/dashboard/frontend/node-env/lib/python3.10/site-packages/", line 755, in install_node_wrapped
   node_url = get_node_bin_url(args.node)
 File "/home/debian/work/ceph-spdk/ceph/build/src/pybind/mgr/dashboard/frontend/node-env/lib/python3.10/site-packages/", line 553, in get_node_bin_url
   'arch': archmap[platform.machine()],
KeyError: 'riscv64'

we are using nodeenv[0] for preparing the nodejs environment. the
error you ran into is related to but a
bigger problem is that nodeenv tries to pull precompiled nodejs from where keeps binaries
of different nodejs versions precompiled for different architectures.
for instance, is
where the v10.x binaries are hosted. but RISC-V is missing there. so
you probably either need to help them to build for RISC-V or find an
alternative mirror hosting precompiled RISC-V.




Hrishikesh Karanjikar
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx

Kefu Chai
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx

You can also patch it to use `nodeenv --node=system` if nodejs is available in the Debian repos for riscv64



Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx

[Index of Archives]     [CEPH Users]     [Ceph Devel]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux