轨道发射问题:“ ConfigParser.NoSectionError:没有部分:“格式化程序” ”

发布于 2024-11-10 01:12:33 字数 1233 浏览 4 评论 0原文

我正在尝试启动 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冰之心 2024-11-17 01:12:33

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

眼藏柔 2024-11-17 01:12:33

以防万一有人想要 C&P 我根据 sid 的建议添加的代码。如果有用,请为他的答案投票,而不是这个!

# new logging configuration using the python stdlib logging.fileConfig
[loggers]
keys = root,orbited,orbited_TCPConnectionResource

[handlers]
keys = console,errors,connections

[formatters]
keys = generic

[logger_root]
level = NOTSET
handlers = console

[logger_orbited]
level = WARN
handlers = errors
qualname = orbited

[logger_orbited_TCPConnectionResource]
level = DEBUG
handlers = connections
qualname = orbited.cometsession.TCPConnectionResource

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = INFO
formatter = generic

[handler_errors]
class = FileHandler
args = ('error.log', 'w')
level = WARN
formatter = generic

[handler_connections]
class = FileHandler
level = DEBUG
formatter = generic
args = ('connections.log', 'w')

[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s

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!

# new logging configuration using the python stdlib logging.fileConfig
[loggers]
keys = root,orbited,orbited_TCPConnectionResource

[handlers]
keys = console,errors,connections

[formatters]
keys = generic

[logger_root]
level = NOTSET
handlers = console

[logger_orbited]
level = WARN
handlers = errors
qualname = orbited

[logger_orbited_TCPConnectionResource]
level = DEBUG
handlers = connections
qualname = orbited.cometsession.TCPConnectionResource

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = INFO
formatter = generic

[handler_errors]
class = FileHandler
args = ('error.log', 'w')
level = WARN
formatter = generic

[handler_connections]
class = FileHandler
level = DEBUG
formatter = generic
args = ('connections.log', 'w')

[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文