【发布时间】: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.现在我认识并修复了它。谢谢