没有这样的文件或目录:'/elrondsdk/vmtools/mandos-test'



我正在尝试运行本教程中的合同测试,https://docs.elrond.com/developers/tutorials/your-first-dapp/,但我在运行erdpy contract test时偶然发现了以下错误

INFO:projects.core:run_tests.project: /home/mccuna/repos/elrond/adder/adder
INFO:myprocess:run_process: ['/home/mccuna/elrondsdk/vmtools/mandos-test', '/home/mccuna/repos/elrond/adder/adder/mandos'], in folder: None
Traceback (most recent call last):
File "/home/mccuna/elrondsdk/erdpy-venv/bin/erdpy", line 8, in <module>
sys.exit(main())
File "/home/mccuna/elrondsdk/erdpy-venv/lib/python3.8/site-packages/erdpy/cli.py", line 32, in main
_do_main()
File "/home/mccuna/elrondsdk/erdpy-venv/lib/python3.8/site-packages/erdpy/cli.py", line 58, in _do_main
args.func(args)
File "/home/mccuna/elrondsdk/erdpy-venv/lib/python3.8/site-packages/erdpy/cli_contracts.py", line 171, in run_tests
projects.run_tests(args)
File "/home/mccuna/elrondsdk/erdpy-venv/lib/python3.8/site-packages/erdpy/projects/core.py", line 65, in run_tests
project.run_tests(directory, wildcard)
File "/home/mccuna/elrondsdk/erdpy-venv/lib/python3.8/site-packages/erdpy/projects/project_base.py", line 106, in run_tests
myprocess.run_process(args, env=tool_env)
File "/home/mccuna/elrondsdk/erdpy-venv/lib/python3.8/site-packages/erdpy/myprocess.py", line 19, in run_process
output = subprocess.check_output(args, shell=False, universal_newlines=True, stderr=subprocess.STDOUT, env=env, cwd=cwd)
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 493, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/mccuna/elrondsdk/vmtools/mandos-test'

我一直在寻找安装mandos-test的方法,但找不到任何有用的东西。我错过了什么?

TLDR:如果在WSL环境中运行,这可能是问题所在。

好的,我已经设法解决了这个问题。

最初,我使用WSL2运行Windows 10和Ubuntu 20.04。在尝试了各种解决方案(例如:更新、重新安装依赖项等(后,我放弃了。我删除了Ubuntu 20.04 WSL2环境,转而安装了一个真正的Ubuntu 20.04,以及Windows 10和它们之间的双启动。在新的、独立的Ubuntu环境中,一切都运行得很顺利。我的猜测是,在WSL2环境中,一些依赖项要么没有安装,要么没有正确配置,但考虑到我目前的erpy&elrond技术堆栈经验,我无法确认或精确定位确切的根本原因。

相关内容

  • 没有找到相关文章

最新更新