2010-02-20 63 views
1

朋友們!!!自從最近五天在Ubuntu 9.10機器上實施 reddit.com以來,我感到很沮喪。在reddit.com上執行「paster shell example.ini」時出錯

是的,我知道reddit.com已經在ubuntu上測試過了。但是 現在我想把它安裝在U9.10上

我已經安裝了postgresql數據庫,創建的用戶複製了文件 並安裝了所有的依賴關係。

一切都完美地安裝的文件 http://code.reddit.com/wiki/RedditStartToFinishIntrepid 中的闡述行:

$貼膜外殼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** 

請大家幫幫我,帶我走出我自己的沮喪。

由於提前

回答

4

更新的版本中的python-webhelpers不具備asset_tag.py,你需要爲塔0.9.6安裝舊版本(0.6.4):

wget的http://pypi.python.org/packages/source/W/WebHelpers/WebHelpers-0.6.4.tar.gz & &焦油-xf WebHelpers-0.6.4.tar.gz & & CD WebHelpers-0.6.4 & &蟒蛇的setup.py建立& & sudo的蟒蛇的setup.py安裝& & CD .. & &須藤RM -r WebHelpers-0.6.4 *

+0

詳情參見討論:http://groups.google.com/group/reddit-dev/browse_thread/thread/15ccb9346cdbf0a0/344fd022ce271d7a?#344fd022ce271d7a – 2011-10-14 13:33:57

+0

謝謝。這幫助了我。 – 2012-06-16 08:36:21