执行“paster shell example.ini”时出错在 reddit.com 上

发布于 2024-08-22 11:17:13 字数 4153 浏览 8 评论 0原文

朋友们!!!自从过去五天致力于实施以来,我感到沮丧 reddit.com 在 ubuntu 9.10 机器上。

是的,我知道 reddit.com 已经在 ubuntu intrepid 上进行了测试。但 现在我想在U9.10上安装它

我已经安装了postgresql数据库,创建的用户复制了文件, 并安装了所有依赖项。

一切都按照文档中的描述完美安装 http://code.reddit.com/wiki/RedditStartToFinishIntrepid 直到行:

$ Paster shell example.ini

这行给了我一个错误,我无法弄清楚问题出在哪里 谎言。

Error:
/home/ubuntu/reddit/r2/r2/lib/utils/utils.py:29: DeprecationWarning:
the sha module is deprecated; use the hashlib module instead
  import re, datetime, math, random, string, sha, os
/home/ubuntu/reddit/r2/r2/lib/contrib/memcache.py:50:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  from md5 import md5
Traceback (most recent call last):
  File "/usr/local/bin/paster", line 8, in <module>
    load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')
()
  File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py", line 123, in invoke
    exit_code = runner.run(args)
  File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py", line 218, in run
    result = self.command()
  File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.6.2-
py2.6.egg/pylons/commands.py", line 341, in command
    conf = appconfig(config_name, relative_to=here_dir)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 215, in appconfig
    global_conf=global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 248, in loadcontext
    global_conf=global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 278, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 409, in get_context
    section)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 431, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 361, in get_context
    global_conf=global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 248, in loadcontext
    global_conf=global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 285, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 561, in get_context
    object_type, name=name)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 587, in find_egg_entry_point
    possible.append((entry.load(), protocol, entry.name))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1913,
in load
    entry = __import__(self.module_name, globals(),globals(),
['__name__'])
  File "/home/ubuntu/reddit/r2/r2/__init__.py", line 26, in <module>
    from r2.config.middleware import make_app
  File "/home/ubuntu/reddit/r2/r2/config/middleware.py", line 30, in
<module>
    from pylons.error import error_template
  File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.6.2-
py2.6.egg/pylons/error.py", line 18, in <module>
    from pylons.middleware import media_path
  File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.6.2-
py2.6.egg/pylons/middleware.py", line 11, in <module>
    from webhelpers.rails.asset_tag import javascript_path
**ImportError: No module named rails.asset_tag**

请好心人帮助我,带我走出沮丧。

提前致谢

Friends!!! I am frustated since last five days working on implementing
reddit.com on a ubuntu 9.10 machine.

Yes, I know that reddit.com has been tested on ubuntu intrepid. But
now i want to install it on U9.10

I have installed postgresql database, created user copied the files,
and installed all the dependencies.

Everything is installed perfectly as described in the document
http://code.reddit.com/wiki/RedditStartToFinishIntrepid
until the line:

$ paster shell example.ini

this line gives me a error and i couldnt figure out where the problem
lies.

Error:
/home/ubuntu/reddit/r2/r2/lib/utils/utils.py:29: DeprecationWarning:
the sha module is deprecated; use the hashlib module instead
  import re, datetime, math, random, string, sha, os
/home/ubuntu/reddit/r2/r2/lib/contrib/memcache.py:50:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  from md5 import md5
Traceback (most recent call last):
  File "/usr/local/bin/paster", line 8, in <module>
    load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')
()
  File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py", line 123, in invoke
    exit_code = runner.run(args)
  File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py", line 218, in run
    result = self.command()
  File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.6.2-
py2.6.egg/pylons/commands.py", line 341, in command
    conf = appconfig(config_name, relative_to=here_dir)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 215, in appconfig
    global_conf=global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 248, in loadcontext
    global_conf=global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 278, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 409, in get_context
    section)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 431, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 361, in get_context
    global_conf=global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 248, in loadcontext
    global_conf=global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 285, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 561, in get_context
    object_type, name=name)
  File "/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.3.3-
py2.6.egg/paste/deploy/loadwsgi.py", line 587, in find_egg_entry_point
    possible.append((entry.load(), protocol, entry.name))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1913,
in load
    entry = __import__(self.module_name, globals(),globals(),
['__name__'])
  File "/home/ubuntu/reddit/r2/r2/__init__.py", line 26, in <module>
    from r2.config.middleware import make_app
  File "/home/ubuntu/reddit/r2/r2/config/middleware.py", line 30, in
<module>
    from pylons.error import error_template
  File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.6.2-
py2.6.egg/pylons/error.py", line 18, in <module>
    from pylons.middleware import media_path
  File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.6.2-
py2.6.egg/pylons/middleware.py", line 11, in <module>
    from webhelpers.rails.asset_tag import javascript_path
**ImportError: No module named rails.asset_tag**

Kindly guys please help me, take me out of my own frustration.

Thanks in Advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

苦行僧 2024-08-29 11:17:13

Newer version of python-webhelpers doesn't have asset_tag.py, you need to install an older version (0.6.4) for Pylons 0.9.6:

wget http://pypi.python.org/packages/source/W/WebHelpers/WebHelpers-0.6.4.tar.gz && tar -xf WebHelpers-0.6.4.tar.gz && cd WebHelpers-0.6.4 && python setup.py build && sudo python setup.py install && cd .. && sudo rm -r WebHelpers-0.6.4*

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文