【问题标题】:Cannot find verticle vertx.web-server-v1.0找不到verticle vertx.web-server-v1.0
【发布时间】:2014-02-15 12:54:49
【问题描述】:

您好,我是 Vertx 的新手。 今天我用python实现了非常简单的vertx应用程序 但它不起作用

这里是python代码

web_server_conf = {
  'port' : 8080,
  'host' : 'localhost'
}

# Start the web server, with the config we defined above
import vertx

vertx.deploy_verticle('vertx.web-server-v1.0', web_server_conf)

但我遇到了如下错误

C:\dev\tools\vert.x-1.3.0.final>vertx 运行 app.py 找不到verticle vertx.web-server-v1.0

我已经在 $VERTX_HOME\mods 中安装了模块 并且示例的 javascript 版本运行良好,

load('vertx.js');

var webServerConf = {  
  port: 8080,
  host: 'localhost'
};

// Start the web server, with the config we defined above

vertx.deployModule('vertx.web-server-v1.0', webServerConf);

你能指导我吗?

【问题讨论】:

  • 示例 vertxio-hornmicro.rhcloud.com/python_web_tutorial.html 使用 'web-server' 而不是 'vertx.web-server-v1.0' ...这有帮助吗?
  • 据我所知样本不正确。
  • 模块似乎安装得很好。我使用“vertx runmod vertx.web-server-v1.0”检查了模块的完整性。有用。我认为问题仅来自 python vertx。
  • 您使用的是 vertx 1.3 而不是 2.0.2?
  • 1.3.现在我认识并修复了它。谢谢

标签: python module vert.x


【解决方案1】:

我用的是 1.3 我升级到2.1M3。

在互联网上,有很多基于旧版本的 vertx 和模块的示例。 所以最好启动官方页面。 (vertx.io) 它可以减少混乱。

仅供参考..

另外thanx @tim_yates

【讨论】:

    猜你喜欢
    • 2020-12-26
    • 1970-01-01
    • 2018-12-21
    • 2012-01-19
    • 2018-06-24
    • 2021-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多