0

尝试在我的 Mac 上使用 iTerm 在 Volttron 中运行 vcfg 命令时遇到以下问题。任何帮助将非常感激。

'''

(volttron)cg@Carolyns-MacBook-Pro volttron % vcfg

Your VOLTTRON_HOME currently set to: /Users/cg/.volttron

Is this the volttron you are attempting to setup? [Y]:
Message bus set to zmq
What is the vip address? [tcp://127.0.0.1]:
What is the port for the vip address? [22916]:
Is this instance web enabled? [N]: Y
Traceback (most recent call last):
  File "/Users/cg/volttron/env/bin/vcfg", line 11, in <module>
    load_entry_point('volttron', 'console_scripts', 'vcfg')()
  File "/Users/cg/volttron/volttron/platform/config.py", line 593, in _main
    main()
  File "/Users/cg/volttron/volttron/platform/instance_setup.py", line 862, in main
    wizard()
  File "/Users/cg/volttron/volttron/platform/instance_setup.py", line 748, in wizard
    do_web_enabled_zmq(volttron_home)
  File "/Users/cg/volttron/volttron/platform/instance_setup.py", line 433, in do_web_enabled_zmq
    'https://' + get_hostname())
  File "/Users/cg/volttron/volttron/utils/__init__.py", line 27, in get_hostname
    with open('/etc/hostname') as fp:
IOError: [Errno 2] No such file or directory: '/etc/hostname'

'''

4

1 回答 1

1

/etc/hostnameMac 上不存在。Volttron 的文档表明它仅支持 Linux 操作系统。. 看来您必须使用 Linux 主机(或使用虚拟化)。

于 2020-02-06T03:27:00.723 回答