Hi,
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. theerror you ran into is related tohttps://github.com/ekalinin/nodeenv/blob/master/nodeenv.py#L533. but abigger problem is that nodeenv tries to pull precompiled nodejs fromhttps://nodejs.org/download/release/ where nodejs.org keeps binariesof different nodejs versions precompiled for different architectures.for instance, https://nodejs.org/download/release/latest-v10.x/ iswhere the v10.x binaries are hosted. but RISC-V is missing there. soyou probably either need to help them to build for RISC-V or find analternative 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
-- RegardsKefu Chai_______________________________________________Dev mailing list -- dev@xxxxxxxTo 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
Regards,
Duncan |