轨道发射问题:“ ConfigParser.NoSectionError:没有部分:“格式化程序” ”
我正在尝试启动 Orbited,但不幸的是我遇到了很多问题!首先,easy_install 的问题(已解决)。然后,按照 http://mischneider.net/?p=125 中的说明继续操作。但是当使用 orbited -c Orbited.cnf 时,我得到以下信息:
Traceback (most recent call last):
File "C:\Python27\Scripts\orbited-script.py", line 8, in <module>
load_entry_point('orbited==0.7.11beta3', 'console_scripts', 'orbited')()
File "C:\Python27\lib\site-packages\orbited-0.7.11beta3-py2.7.egg\orbited\star
t.py", line 133, in main
logging.config.fileConfig(options.config)
File "C:\Python27\lib\logging\config.py", line 70, in fileConfig
formatters = _create_formatters(cp)
File "C:\Python27\lib\logging\config.py", line 106, in _create_formatters
flist = cp.get("formatters", "keys")
File "C:\Python27\lib\ConfigParser.py", line 567, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'formatters'
这是我的配置文件(orbited.cnf):(
[listen]
http://:9000
stomp://:61613
[access]
* -> localhost:61613
[global]
session.ping_interval = 300
编辑:我可能需要 [format] 部分?) 我一无所有,我找到的大部分资源都指向 Orbited.org,自从我对 Orbited 感兴趣的那天起,该网站就已经关闭了。请帮助我!我真的很想开始开发很酷的实时 django 应用程序!
I'm trying to get Orbited started, but unfortunately I'm running into more than a few problems! First, problems with easy_install (solved). Then, proceeded on with instructions from http://mischneider.net/?p=125. But when using orbited -c orbited.cnf
I get the following:
Traceback (most recent call last):
File "C:\Python27\Scripts\orbited-script.py", line 8, in <module>
load_entry_point('orbited==0.7.11beta3', 'console_scripts', 'orbited')()
File "C:\Python27\lib\site-packages\orbited-0.7.11beta3-py2.7.egg\orbited\star
t.py", line 133, in main
logging.config.fileConfig(options.config)
File "C:\Python27\lib\logging\config.py", line 70, in fileConfig
formatters = _create_formatters(cp)
File "C:\Python27\lib\logging\config.py", line 106, in _create_formatters
flist = cp.get("formatters", "keys")
File "C:\Python27\lib\ConfigParser.py", line 567, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'formatters'
And here's my config file (orbited.cnf):
[listen]
http://:9000
stomp://:61613
[access]
* -> localhost:61613
[global]
session.ping_interval = 300
(Edit: I may need a [format] section?)
I have absolutely nothing, and most of the resources I find point to orbited.org, which has been down since like, the day since I got interested in orbited. Help me please! I really want to start working on cool live django apps!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
tar 文件中有一个示例配置文件。
您可以在 https://bitbucket.org/desmaj/orbited/src/ 在线找到它1a8a47861f1d/daemon/orbited.cfg.example
只需复制 [loggers] 部分开始的所有内容。
在需要更多调试信息的地方设置相关级别 = DEBUG
-- sid
There is a sample config file in the tar file.
You can find it online at https://bitbucket.org/desmaj/orbited/src/1a8a47861f1d/daemon/orbited.cfg.example
just copy everything from the [loggers] section onwards.
set relevant level=DEBUG wherever you want more debug information
-- sid
以防万一有人想要 C&P 我根据 sid 的建议添加的代码。如果有用,请为他的答案投票,而不是这个!
Just in case anyone wants to just C&P the code I added as per sid's suggestion. If it's useful please upvote his answer, not this one!