python - 创建 metadata.json 文件失败
问题描述
我正在修补板上尝试 BEMOSS 项目,但安装后我遇到了以下问题。
2018-04-29 16:44:14,441 () volttron.platform.vip.agent.subsystems.rpc ERROR: unhandled exception in JSON-RPC method 'start_agent':
Traceback (most recent call last):
File "/home/linaro/Build/BEMOSS/volttron/platform/vip/agent/subsystems/rpc.py", line 168, in method
return method(*args, **kwargs)
File "/home/linaro/Build/BEMOSS/volttron/platform/control.py", line 137, in start_agent
self._aip.start_agent(uuid)
File "/home/linaro/Build/BEMOSS/volttron/platform/aip.py", line 550, in start_agent
agent_uuid, os.path.join(self.install_dir, agent_uuid, name), name)
File "/home/linaro/Build/BEMOSS/volttron/platform/aip.py", line 463, in _launch_agent
metadata = pkg.metadata
File "/home/linaro/Build/BEMOSS/volttron/platform/packages.py", line 404, in metadata
with open(os.path.join(self.distinfo, 'metadata.json')) as file:
IOError: [Errno 2] No such file or directory: '/home/linaro/.volttron/agents/37eb5289-7f74-43b9-85fe-9037e8a00f2f/approvalhelperagent-0.1/approvalhelperagent-0.1.dist-info/metadata.json
解决方案
这是由于较新版本的车轮造成的。恢复到 wheel 版本 0.30 将解决此问题。参考https://github.com/VOLTTRON/volttron/issues/1652
请从开发分支更新到最新的 bootstrap.py,然后运行
python bootstrap.py --force
这应该使用正确版本的 wheel 创建一个新的虚拟环境文件夹。
推荐阅读
- go - 我想通过将文件名作为用户输入来读取文件
- font-awesome-5 - 自定义 Fontawesome SVG 图标集
- python - 如何修复 Python 中的“无法从 'api' 导入名称 'get_seomoz_data'”错误
- python - 如何在游戏的 GUI 中添加时间(滴答声)
- css - 我需要改变一个班级的风格
- ruby-on-rails - 在 Heroku 上,我可以使用 Rails 将生成的音频文件返回到我的 React Native 前端吗?
- reactjs - Redux 不会从 API 请求中获取数据
- c++ - 指向类的不同组件的指针
- encryption - 如何在 gatsby-config.js 中使用 AWS Amplify 环境变量?
- angular - Angular Material Table如何将对象传递给displayedColumns而不是数组