Re: Key Error

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

 



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

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>
>     sys.exit(main())
>   File "/home/debian/work/ceph-spdk/ceph/build/src/pybind/mgr/dashboard/frontend/node-env/lib/python3.10/site-packages/nodeenv.py", 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/nodeenv.py", 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/nodeenv.py", 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/nodeenv.py", 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/nodeenv.py", 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
https://github.com/ekalinin/nodeenv/blob/master/nodeenv.py#L533. but a
bigger problem is that nodeenv tries to pull precompiled nodejs from
https://nodejs.org/download/release/ where nodejs.org keeps binaries
of different nodejs versions precompiled for different architectures.
for instance, https://nodejs.org/download/release/latest-v10.x/ 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.

HTH,

---
[0] https://github.com/ekalinin/nodeenv

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



-- 
Regards
Kefu Chai
_______________________________________________
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