bb.fetch2.ParameterError....Unsupported dependency.... #bitbake #devtool #npm
Full error: bb.fetch2.ParameterError: URL: 'npmsw:///home/user/eps-yocto/build/exos-x-vanadium-bmc/tmp/work/recipetool-uizo5dj0/source/git/npm-shrinkwrap.json' has invalid parameters. Unsupported dependency: @babel/helper-string-parser
I have a 15 year plus code base that my group wants me to try to get going in another team's yocto setup. I'm pretty sure this issue mostly boils down to this codebase being very incompatible with how yocto/bitbake does things? It reaches out to install npm for example and various other web related libraries. It's an old Makefile(I want to use these issues as an excuse to port to CMAKE) project.
I'm trying to use https://wiki.yoctoproject.org/wiki/images/f/f3/DD9_Devtool_NA20.pdf and https://www.youtube.com/watch?v=CiD7rB35CRE to even do a handful of steps and I fail to accomplish even that.
I can bitbake what is currently in our repo, I can bitbake the sdk(non-extended). I successfully added a workspace, and when I try to execute 'devtool add' to either remotely collect the git repo of my app, or a fresh local version, both fail with the following backtrace. I know very little about bitbake and to be honest, the documentation feels like trying to get a sip of water from a fire hydrant. It wasn't until seeing devtool that it seemed there was something that allowed someone to actually just dive in and I guess that was wrong. All I know is that I was attempting to use devtool to programmatically generate my .bb for me, or at least get me started.
This npm-shrinkwrap.json doesn't exist in the repo permanently and appears to be something that gets created/destroyed as part of our npm check-out.
Full trace:
Traceback (most recent call last):
File "/home/user/eps-yocto/scripts/recipetool", line 111, in <module>
ret = main()
File "/home/user/eps-yocto/scripts/recipetool", line 100, in main
ret = args.func(args)
File "/home/user/eps-yocto/poky/scripts/lib/recipetool/create.py", line 758, in create_recipehandler.process(srctree_use, classes, lines_before, lines_after, handled, extravalues)
File "/home/user/eps-yocto/poky/scripts/lib/recipetool/create_npm.py", line 264, in process
fetcher = bb.fetch2.Fetch([url_local], d)
File "/home/user/eps-yocto/poky/bitbake/lib/bb/fetch2/__init__.py", line 1794, in __init__
self.ud[url] = FetchData(url, d, localonly)
File "/home/user/eps-yocto/poky/bitbake/lib/bb/fetch2/__init__.py", line 1346, in __init__self.method.urldata_init(self, d)
File "/home/user/eps-yocto/poky/bitbake/lib/bb/fetch2/npmsw.py", line 210, in urldata_initforeach_dependencies(shrinkwrap, _resolve_dependency, ud.dev)
File "/home/user/eps-yocto/poky/bitbake/lib/bb/fetch2/npmsw.py", line 69, in foreach_dependenciescallback(name, package_infos, package)
File "/home/user/eps-yocto/poky/bitbake/lib/bb/fetch2/npmsw.py", line 192, in _resolve_dependency
raise ParameterError("Unsupported dependency: %s" % name, ud.url)
bb.fetch2.ParameterError: URL: 'npmsw:///home/user/eps-yocto/build/exos-x-vanadium-bmc/tmp/work/recipetool-uizo5dj0/source/git/npm-shrinkwrap.json' has invalid parameters. Unsupported dependency: @babel/helper-string-parser
ERROR: Command 'script -e -q -c "recipetool --color=always create --devtool -o /tmp/devtooli6tqqg15 'https://lco-sw-github-prod.colo.nlah.com/Systems-FW/mclinux.git' -x /home/user/eps-yocto/build/exos-x-vanadium-bmc/workspace/sources/devtoolsrc6qxi_qjz --srcbranch main" /dev/null' failed
You probably need to try this with latest yocto master? Npm support has had plenty of fixes over time, and it isn't clear if you're on something outdated.
Alex
Quoted 45 lines · joseph.maniaci via lists.yoctoproject.org
Full error: bb.fetch2.ParameterError: URL: 'npmsw:///home/user/eps-yocto/build/exos-x-vanadium-bmc/tmp/work/recipetool-uizo5dj0/source/git/npm-shrinkwrap.json' has invalid parameters. Unsupported dependency: @babel/helper-string-parser
I have a 15 year plus code base that my group wants me to try to get going in another team's yocto setup. I'm pretty sure this issue mostly boils down to this codebase being very incompatible with how yocto/bitbake does things? It reaches out to install npm for example and various other web related libraries. It's an old Makefile(I want to use these issues as an excuse to port to CMAKE) project.
I'm trying to use https://wiki.yoctoproject.org/wiki/images/f/f3/DD9_Devtool_NA20.pdf and https://www.youtube.com/watch?v=CiD7rB35CRE to even do a handful of steps and I fail to accomplish even that.
I can bitbake what is currently in our repo, I can bitbake the sdk(non-extended). I successfully added a workspace, and when I try to execute 'devtool add' to either remotely collect the git repo of my app, or a fresh local version, both fail with the following backtrace. I know very little about bitbake and to be honest, the documentation feels like trying to get a sip of water from a fire hydrant. It wasn't until seeing devtool that it seemed there was something that allowed someone to actually just dive in and I guess that was wrong. All I know is that I was attempting to use devtool to programmatically generate my .bb for me, or at least get me started.
This npm-shrinkwrap.json doesn't exist in the repo permanently and appears to be something that gets created/destroyed as part of our npm check-out.
Full trace:
Traceback (most recent call last):
File "/home/user/eps-yocto/scripts/recipetool", line 111, in <module>
ret =main()
File "/home/user/eps-yocto/scripts/recipetool", line 100, in main
ret =args.func(args)
File "/home/user/eps-yocto/poky/scripts/lib/recipetool/create.py", line 758, increate_recipe
handler.process(srctree_use, classes, lines_before, lines_after, handled, extravalues)
File "/home/user/eps-yocto/poky/scripts/lib/recipetool/create_npm.py", line 264, in process
fetcher =bb.fetch2.Fetch([url_local], d)
File "/home/user/eps-yocto/poky/bitbake/lib/bb/fetch2/__init__.py", line 1794, in__init__
self.ud[url] =FetchData(url, d, localonly)
File "/home/user/eps-yocto/poky/bitbake/lib/bb/fetch2/__init__.py", line 1346, in__init__
self.method.urldata_init(self, d)
File "/home/user/eps-yocto/poky/bitbake/lib/bb/fetch2/npmsw.py", line 210, inurldata_init
foreach_dependencies(shrinkwrap, _resolve_dependency, ud.dev)
File "/home/user/eps-yocto/poky/bitbake/lib/bb/fetch2/npmsw.py", line 69, inforeach_dependencies
callback(name, package_infos, package)
File "/home/user/eps-yocto/poky/bitbake/lib/bb/fetch2/npmsw.py", line 192, in_resolve_dependency
raiseParameterError("Unsupported dependency: %s" % name, ud.url)
bb.fetch2.ParameterError: URL: 'npmsw:///home/user/eps-yocto/build/exos-x-vanadium-bmc/tmp/work/recipetool-uizo5dj0/source/git/npm-shrinkwrap.json' has invalid parameters. Unsupported dependency: @babel/helper-string-parser
ERROR: Command 'script -e -q -c "recipetool --color=always create --devtool -o/tmp/devtooli6tqqg15'https://lco-sw-github-prod.colo.nlah.com/Systems-FW/mclinux.git' -x/home/user/eps-yocto/build/exos-x-vanadium-bmc/workspace/sources/devtoolsrc6qxi_qjz--srcbranch main"/dev/null' failed-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65316): https://lists.yoctoproject.org/g/yocto/message/65316
Mute This Topic: https://lists.yoctoproject.org/mt/113075220/1686489
Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake Mute #devtool:https://lists.yoctoproject.org/g/yocto/mutehashtag/devtool Mute #npm:https://lists.yoctoproject.org/g/yocto/mutehashtag/npm Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-