douban / code

[DEPRECATED]Douban CODE

Home Page:http://douban-code.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

安装过程中报错

lanrenwo opened this issue · comments

CentOS 6.4 (64位)
Python 2.6.6

RuntimeError: maximum recursion depth exceeded
/usr/local/soft/code/venv/build/MySQL-python/distribute-0.6.28-py2.6.egg
Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/usr/local/soft/code/venv/build/MySQL-python/setup.py", line 7, in <module>
    use_setuptools()
  File "distribute_setup.py", line 145, in use_setuptools
    return _do_download(version, download_base, to_dir, download_delay)
  File "distribute_setup.py", line 125, in _do_download
    _build_egg(egg, tarball, to_dir)
  File "distribute_setup.py", line 116, in _build_egg
    raise IOError('Could not build the egg.')
IOError: Could not build the egg.
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /usr/local/soft/code/venv/build/MySQL-python
Storing debug log for failure in /root/.pip/pip.log
Start serveing!!!
./quick_start.sh: line 18: gunicorn: command not found

@phpcleps 参考 #9pip install -r前更新一下distribute

感谢xtao的及时回复,在发issue之前,我有参考过,还是不行。

#!/bin/sh

#echo "Setup database..."
#. ./setup_databases.sh

echo "Init virtualenv..."
virtualenv venv
. venv/bin/activate
pip install -U setuptools
pip install cython
easy_install distribute==0.6.28
pip install -r requirements.txt

echo "Start serveing!!!"
echo
echo
deactivate
. venv/bin/activate
gunicorn -w 2 -b 0.0.0.0:8000 app:app

看起来是没有gunicorn命令
你执行下下面2句,看看输出结果:

python -c 'import gunicorn;print gunicorn'

which gunicorn

是root权限的,以下是执行结果。

[root@localhost soft]# python -c 'import gunicorn;print gunicorn'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named gunicorn
[root@localhost soft]# which gunicorn
/usr/bin/which: no gunicorn in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

额 我懂了 @xtao quick_start.sh脚本是假定mysql和mysql_config已经设置才能安装MySQL-python.

看这个mysql-python-install-could-not-build-the-egg

@phpcleps 说明你的
pip install -r requirements.txt没正确执行 因为是按requirements.txt的一行一行安装依赖,在第一行直接报错退出了 你参考下上面的答案

试试将 requirements.txtMySQL-python 版本号改成 1.2.5.

MySQL-python==1.2.4 -> MySQL-python==1.2.5

@liluo 别,sqlstore不兼容1.2.5

@xtao 此恨绵绵无绝期...

@dongweiming 是的,文档写的还不全面,我改一下。

1、我直接下载 MySQL-python 1.2.4,执行python setup.py install,一点都没问题。
然而,通过pip install "mysql-python<1.2.5",就出问题。。。安装1.2.5没问题。
2、我的$PATH,都有包含mysql/bin目录
.... /root/bin:/usr/local/mysql/bin

@phpcleps 鉴于这种情况,你升级一下pip? pip install -U pip

@phpcleps 升级前你看一下你的pip的版本号,跟我说一下~

升级后,还是一样的问题。
(venv)[root@localhost code]# pip --version
pip 1.5.2 from /usr/local/soft/code/venv/lib/python2.6/site-packages (python 2.6)

我把错误日志,已经发送至你的douban邮箱,麻烦过目。

这个问题是因为mysql-python1.2.4自带的distribute_setup.py指定下载0.6.28的distribute, 但是代码里面的逻辑有问题:

try:
            import pkg_resources
            if not hasattr(pkg_resources, '_distribute'):
                if not no_fake:
                    _fake_setuptools()
                raise ImportError
        except ImportError:
            return _do_download(version, download_base, to_dir, download_delay)

pkg_resources用的是系统自带(额 我正在研究怎么产生的),而不是distribute里面的.hasattr(pkg_resources, '_distribute')永远为False造成不断的raise ImportError

我刚刚修改为 MySQL-python==1.2.3,不报错了。。。不知道,有没有什么影响。

vagrant@precise64:~/MySQL-python-1.2.4$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import pkg_resources
>>> pkg_resources
<module 'pkg_resources' from '/usr/local/lib/python2.7/dist-packages/distribute-0.6.28-py2.7.egg/pkg_resources.pyc'>
>>> hasattr(pkg_resources, '_distribute')
True
>>> exit()
vagrant@precise64:~/MySQL-python-1.2.4$ . venv/bin/activate
-bash: venv/bin/activate: No such file or directory
vagrant@precise64:~/MySQL-python-1.2.4$ cd
vagrant@precise64:~$ cd code/
vagrant@precise64:~/code$ . venv/bin/activate
(venv)vagrant@precise64:~/code$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources #**注意这个**
<module 'pkg_resources' from '/home/vagrant/code/venv/local/lib/python2.7/site-packages/pkg_resources.pyc'> 
>>> hasattr(pkg_resources, '_distribute')
False

安装memcached时,报错了。

cmemcached_imp.c:12819: error: ‘MEMCACHED_AUTH_FAILURE’ undeclared (first use in this function)
cmemcached_imp.c:12831: error: ‘MEMCACHED_AUTH_CONTINUE’ undeclared (first use in this function)
cmemcached_imp.c:12843: error: ‘MEMCACHED_PARSE_ERROR’ undeclared (first use in this function)
cmemcached_imp.c:12855: error: ‘MEMCACHED_PARSE_USER_ERROR’ undeclared (first use in this function)
cmemcached_imp.c:12867: error: ‘MEMCACHED_DEPRECATED’ undeclared (first use in this function)
cmemcached_imp.c:12879: error: ‘MEMCACHED_IN_PROGRESS’ undeclared (first use in this function)
cmemcached_imp.c:12891: error: ‘MEMCACHED_SERVER_TEMPORARILY_DISABLED’ undeclared (first use in this function)
cmemcached_imp.c:12903: error: ‘MEMCACHED_SERVER_MEMORY_ALLOCATION_FAILURE’ undeclared (first use in this function)

error: command 'gcc' failed with exit status 1
---------------------------------------
Cleaning up...
Command /usr/local/soft/code/venv/bin/python -c "import setuptools, tokenize; __file__='/usr/local/soft/code/venv/src/python-libmemcached/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps failed with error code 1 in /usr/local/soft/code/venv/src/python-libmemcached

@phpcleps @xtao 我找到了2种办法,但我觉得应该有更好的

  1. 安装virtualenv使用系统包管理工具,不要使用pip install virtualenv,比如ubuntu

sudo apt-get install python-virtualenv

  1. 创建了venv后,删掉其自带的pkg_resources文件:

rm /home/vagrant/code/venv/local/lib/python2.7/site-packages/pkg_resources.py*

@dongweiming 多谢,我先使用1.2.3,观察看看。目前安装时,提示memcached错误,等待支援。

@phpcleps 我也在安装code(ubuntu),也遇到了你说的问题,供参考:

sudo apt-get install libmemcached-dev build-essential g++
wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
git clone https://github.com/douban/python-libmemcached
tar zxf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18
patch -p1 < ../python-libmemcached/patches/1.0/behavior.patch #好像没成功
patch -p1 < ../python-libmemcached/patches/1.0/empty_string.patch 
patch -p1 < ../python-libmemcached/patches/1.0/touch_expire-1.0.patch
./configure && make && sudo make install

@dongweiming 呵呵,多谢!后来我也有找到,python-libmemcached的版本有要求,正在处理中。

注意到 @dongweiming 是 python 2.7 而 @phpcleps 是 python 2.6, 不知有没有影响

Memcached问题解决了,又碰到新问题。

(venv)[root@localhost code]# gunicorn -w 2 -b 127.0.0.1:8000 app:app
2014-02-17 17:07:16 [7149] [INFO] Starting gunicorn 18.0
2014-02-17 17:07:16 [7149] [INFO] Listening at: http://127.0.0.1:8000 (7149)
2014-02-17 17:07:16 [7149] [INFO] Using worker: sync
2014-02-17 17:07:16 [7154] [INFO] Booting worker with pid: 7154
2014-02-17 17:07:16 [7155] [INFO] Booting worker with pid: 7155
/usr/local/soft/code/venv/src/python-libmemcached/cmemcached.py:50: DeprecationWarning: object.__init__() takes no parameters
  cmemcached_imp.Client.__init__(self, logger)
/usr/local/soft/code/venv/src/python-libmemcached/cmemcached.py:50: DeprecationWarning: object.__init__() takes no parameters
  cmemcached_imp.Client.__init__(self, logger)
2014-02-17 17:07:16 [7154] [ERROR] Exception in worker process:
Traceback (most recent call last):
  File "/usr/local/soft/code/venv/lib/python2.6/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
    worker.init_process()
  File "/usr/local/soft/code/venv/lib/python2.6/site-packages/gunicorn/workers/base.py", line 106, in init_process
    self.wsgi = self.app.wsgi()
  File "/usr/local/soft/code/venv/lib/python2.6/site-packages/gunicorn/app/base.py", line 114, in wsgi
    self.callable = self.load()
  File "/usr/local/soft/code/venv/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
    return self.load_wsgiapp()
  File "/usr/local/soft/code/venv/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/local/soft/code/venv/lib/python2.6/site-packages/gunicorn/util.py", line 354, in import_app
    __import__(module)
  File "/usr/local/soft/code/app.py", line 5, in <module>
    from web import app as web
  File "/usr/local/soft/code/web.py", line 17, in <module>
    from code.views.util import is_mobile_device
  File "/usr/local/soft/code/code/views/__init__.py", line 9, in <module>
    from code.views.users import UserUI
  File "/usr/local/soft/code/code/views/users/__init__.py", line 6, in <module>
    from code.models.project import Project
  File "/usr/local/soft/code/code/models/project.py", line 9, in <module>
    from code.models.git.repo import ProjectRepo
  File "/usr/local/soft/code/code/models/git/repo.py", line 329
    commits = {c['sha']: c for c in commits}
                             ^
SyntaxError: invalid syntax

你的python小于2.7 这个语法是2.7加入的

@xtao 我建议code修改代码为这样的方式,不要用这种字典解析,因为python2.7和3.3以上才支持
http://www.python.org/dev/peps/pep-0274/

还是用这样

dict([c['sha'], c] for c in commits)

可以了,感谢大伙! @xtao @dongweiming @liluo @kebot

可以跑了,另外我有2个问题:
1、请问在admin管理账号吗?
2、请问有中文版吗?

@dongweiming 建议直接支持到Python2.7,放弃Python2.6

@phpcleps 没有管理员帐号,需自己注册。没有中文版。目前还是尝鲜状态,我们会继续跟进开发的。

@qingfeng 强制python2.7其实也可以 但是需要在setup.py添加个对python版本的判断:

if sys.version_info < (2, 7):
    raise Exception('CODE requires Python 2.7.')

之类, 否则折腾半天才发现版本不够高, 甚至对python不熟都不理解上面的错误是因为什么

commented

osx 10.9.1
python 2.7.5
刚获取最新代码,还是和 @phpcleps 一样的错误

恩 主干代码没有修改,你可以参考聊天记录看看能否解决. 额 我的osx10.8.5安装完全都没有问题

python依赖包真是蛋疼。

通过下载.tar.gz包,然后sudo python venv/bin/python setup.py install安装成功。应该是需要distribute 0.6.28的依赖造成pip install出现的问题。

@dongweiming 你说的第一种方法好用
具体的操作:

pip uninstall virtualenv
curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.tar.gz
tar xvfz virtualenv-1.9.tar.gz
cd virtualenv-1.9
[sudo] python setup.py install

接着再执行pip install -r requirements.txt就畅通无阻了

@liaofeng 你是什么环境下安装的?我的10.10.1 Yosemite 一直装不了,正在CentOS上试

报错

Start app...
2015-01-23 07:58:19 [13884] [INFO] Starting gunicorn 18.0
2015-01-23 07:58:19 [13884] [INFO] Listening at: http://127.0.0.1:8000 (13884)
2015-01-23 07:58:19 [13884] [INFO] Using worker: sync
2015-01-23 07:58:19 [13889] [INFO] Booting worker with pid: 13889
2015-01-23 07:58:19 [13889] [ERROR] Exception in worker process:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
    worker.init_process()
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line 106, in init_process
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 114, in wsgi
    self.callable = self.load()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
    return self.load_wsgiapp()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python2.7/site-packages/gunicorn/util.py", line 354, in import_app
    __import__(module)
  File "/home/ec2-user/code/scripts/code/app.py", line 5, in <module>
    from web import app as web
  File "/home/ec2-user/code/scripts/code/web.py", line 11, in <module>
    from vilya import views as controllers
  File "/home/ec2-user/code/scripts/code/vilya/views/__init__.py", line 8, in <module>
    from vilya.views.organizations import OrganizationUI
  File "/home/ec2-user/code/scripts/code/vilya/views/organizations/__init__.py", line 6, in <module>
    from vilya.models.organization import Organization
  File "/home/ec2-user/code/scripts/code/vilya/models/organization.py", line 5, in <module>
    from vilya.libs.store import OrzField, store, IntegrityError, OrzBase
  File "/home/ec2-user/code/scripts/code/vilya/libs/store.py", line 6, in <module>
    from douban.mc import mc_from_config, create_decorators
  File "/usr/lib/python2.7/site-packages/DoubanMC-0.0.1-py2.7.egg/douban/mc/__init__.py", line 9, in <module>
    import cmemcached
ImportError: No module named cmemcached
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
    worker.init_process()
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line 106, in init_process
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 114, in wsgi
    self.callable = self.load()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
    return self.load_wsgiapp()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python2.7/site-packages/gunicorn/util.py", line 354, in import_app
    __import__(module)
  File "/home/ec2-user/code/scripts/code/app.py", line 5, in <module>
    from web import app as web
  File "/home/ec2-user/code/scripts/code/web.py", line 11, in <module>
    from vilya import views as controllers
  File "/home/ec2-user/code/scripts/code/vilya/views/__init__.py", line 8, in <module>
    from vilya.views.organizations import OrganizationUI
  File "/home/ec2-user/code/scripts/code/vilya/views/organizations/__init__.py", line 6, in <module>
    from vilya.models.organization import Organization
  File "/home/ec2-user/code/scripts/code/vilya/models/organization.py", line 5, in <module>
    from vilya.libs.store import OrzField, store, IntegrityError, OrzBase
  File "/home/ec2-user/code/scripts/code/vilya/libs/store.py", line 6, in <module>
    from douban.mc import mc_from_config, create_decorators
  File "/usr/lib/python2.7/site-packages/DoubanMC-0.0.1-py2.7.egg/douban/mc/__init__.py", line 9, in <module>
    import cmemcached
ImportError: No module named cmemcached
2015-01-23 07:58:19 [13889] [INFO] Worker exiting (pid: 13889)
2015-01-23 07:58:19 [13890] [INFO] Booting worker with pid: 13890
2015-01-23 07:58:19 [13890] [ERROR] Exception in worker process:
......

重新编译python-libmemcached后,错误消失。新的问题是:

......
2015-01-23 08:09:44 [14018] [INFO] Starting gunicorn 18.0
2015-01-23 08:09:44 [14018] [INFO] Listening at: http://127.0.0.1:8000 (14018)
2015-01-23 08:09:44 [14018] [INFO] Using worker: sync
2015-01-23 08:09:44 [14023] [INFO] Booting worker with pid: 14023
2015-01-23 08:09:45 [14023] [ERROR] Exception in worker process:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
    worker.init_process()
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line 106, in init_process
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 114, in wsgi
    self.callable = self.load()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
    return self.load_wsgiapp()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python2.7/site-packages/gunicorn/util.py", line 354, in import_app
    __import__(module)
  File "/home/ec2-user/code/app.py", line 5, in <module>
    from web import app as web
  File "/home/ec2-user/code/web.py", line 11, in <module>
    from vilya import views as controllers
  File "/home/ec2-user/code/vilya/views/__init__.py", line 8, in <module>
    from vilya.views.organizations import OrganizationUI
  File "/home/ec2-user/code/vilya/views/organizations/__init__.py", line 6, in <module>
    from vilya.models.organization import Organization
  File "/home/ec2-user/code/vilya/models/organization.py", line 5, in <module>
    from vilya.libs.store import OrzField, store, IntegrityError, OrzBase
  File "/home/ec2-user/code/vilya/libs/store.py", line 6, in <module>
    from douban.mc import mc_from_config, create_decorators
  File "/usr/lib/python2.7/site-packages/DoubanMC-0.0.1-py2.7.egg/douban/mc/__init__.py", line 11, in <module>
    from douban.utils.config import read_config
ImportError: No module named utils.config
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
    worker.init_process()
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line 106, in init_process
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 114, in wsgi
    self.callable = self.load()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
    return self.load_wsgiapp()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python2.7/site-packages/gunicorn/util.py", line 354, in import_app
    __import__(module)
  File "/home/ec2-user/code/app.py", line 5, in <module>
    from web import app as web
  File "/home/ec2-user/code/web.py", line 11, in <module>
    from vilya import views as controllers
  File "/home/ec2-user/code/vilya/views/__init__.py", line 8, in <module>
    from vilya.views.organizations import OrganizationUI
  File "/home/ec2-user/code/vilya/views/organizations/__init__.py", line 6, in <module>
    from vilya.models.organization import Organization
  File "/home/ec2-user/code/vilya/models/organization.py", line 5, in <module>
    from vilya.libs.store import OrzField, store, IntegrityError, OrzBase
  File "/home/ec2-user/code/vilya/libs/store.py", line 6, in <module>
    from douban.mc import mc_from_config, create_decorators
  File "/usr/lib/python2.7/site-packages/DoubanMC-0.0.1-py2.7.egg/douban/mc/__init__.py", line 11, in <module>
    from douban.utils.config import read_config
ImportError: No module named utils.config
2015-01-23 08:09:45 [14023] [INFO] Worker exiting (pid: 14023)
2015-01-23 08:09:45 [14024] [INFO] Booting worker with pid: 14024
2015-01-23 08:09:45 [14024] [ERROR] Exception in worker process:
Traceback (most recent call last):
......

安装 https://github.com/douban/douban-utils 后错误消失。

目前问题是:
ImportError: /usr/lib64/python2.7/site-packages/_pygit2.so: undefined symbol: libssh2_channel_free

@jumping 你的 pygit2 是如何安装的?

@xtao 非常感谢你的回复。
我是先git clone https://github.com/douban/pygit2 ,然后按照的。

@jumping 你的依赖不正确,应该按照README里面的方式安装,https://github.com/douban/code/blob/master/requirements.txt 这个文件里面有指定版本号。

我用pip install -r requirements.txt
https://github.com/douban/code/blob/master/requirements.txt 后,出现如下错误

...
lve and .require separately.
Obtaining DoubanUtils from git+
https://github.com/douban/douban-utils.git@5ca697545da191dab3fbe308e6b6776d8da83bd5#egg=DoubanUtils
(from -r requirements.txt (line 11))
  Updating ./src/doubanutils clone (to
5ca697545da191dab3fbe308e6b6776d8da83bd5)
  Could not find a tag or branch
'5ca697545da191dab3fbe308e6b6776d8da83bd5', assuming commit.
    /usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown
distribution option: 'install_package_data'
      warnings.warn(msg)
    /home/ec2-user/code/src/doubanutils/setup.py:12: DeprecationWarning:
Parameters to load are deprecated.  Call .resolve and .require separately.
      KEYWORDS = ""
Obtaining DoubanSQLStore from git+
https://github.com/douban/douban-sqlstore.git@d7136b7cac1075f0b285e8c763af2e85124f8b76#egg=DoubanSQLStore
(from -r requirements.txt (line 12))
  Updating ./src/doubansqlstore clone (to
d7136b7cac1075f0b285e8c763af2e85124f8b76)
  Could not find a tag or branch
'd7136b7cac1075f0b285e8c763af2e85124f8b76', assuming commit.
    /usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown
distribution option: 'install_package_data'
      warnings.warn(msg)
    /home/ec2-user/code/src/doubansqlstore/setup.py:12: DeprecationWarning:
Parameters to load are deprecated.  Call .resolve and .require separately.
      KEYWORDS = "MySQL"
Obtaining DoubanMC from git+
https://github.com/douban/douban-mc.git@f594ab28af464f25a54263d1cc312e895e65b1f4#egg=DoubanMC
(from -r requirements.txt (line 13))
  Updating ./src/doubanmc clone (to
f594ab28af464f25a54263d1cc312e895e65b1f4)
  Could not find a tag or branch
'f594ab28af464f25a54263d1cc312e895e65b1f4', assuming commit.
    /usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown
distribution option: 'install_package_data'
      warnings.warn(msg)
    /home/ec2-user/code/src/doubanmc/setup.py:12: DeprecationWarning:
Parameters to load are deprecated.  Call .resolve and .require separately.
      KEYWORDS = ""
Obtaining ORZ from git+
https://github.com/douban/douban-orz.git@208b48177dc847ef2afdadfda302868c39797bdf#egg=ORZ
(from -r requirements.txt (line 14))
  Updating ./src/orz clone (to 208b48177dc847ef2afdadfda302868c39797bdf)
  Could not find a tag or branch
'208b48177dc847ef2afdadfda302868c39797bdf', assuming commit.
    /home/ec2-user/code/src/orz/setup.py:12: DeprecationWarning: Parameters
to load are deprecated.  Call .resolve and .require separately.
      CLASSIFIERS = []
Obtaining Quixote from git+
https://github.com/douban/douban-quixote.git@72fd1b6f1224519709df2c031afc4bd9dbe611e4#egg=Quixote
(from -r requirements.txt (line 15))
  Updating ./src/quixote clone (to 72fd1b6f1224519709df2c031afc4bd9dbe611e4)
  Could not find a tag or branch
'72fd1b6f1224519709df2c031afc4bd9dbe611e4', assuming commit.
    /home/ec2-user/code/src/quixote/setup.py:12: DeprecationWarning:
Parameters to load are deprecated.  Call .resolve and .require separately.
Obtaining pygit2 from git+
https://github.com/douban/pygit2.git@c7b13237e9934b5620cf0c351ae7eaea7d14ffc3#egg=pygit2
(from -r requirements.txt (line 16))
  Updating ./src/pygit2 clone (to c7b13237e9934b5620cf0c351ae7eaea7d14ffc3)
  Could not find a tag or branch
'c7b13237e9934b5620cf0c351ae7eaea7d14ffc3', assuming commit.
    checkout libgit2 source
    build libgit2 embed
    /home/ec2-user/code/src/pygit2/setup.py:12: DeprecationWarning:
Parameters to load are deprecated.  Call .resolve and .require separately.
      # version of this file into combinations with other programs,
Obtaining ellen from git+
https://github.com/douban/ellen.git@e092eddd933a4676c53f016d11782897807f873a#egg=ellen
(from -r requirements.txt (line 17))
  Cloning https://github.com/douban/ellen.git (to
e092eddd933a4676c53f016d11782897807f873a) to ./src/ellen
  Could not find a tag or branch
'e092eddd933a4676c53f016d11782897807f873a', assuming commit.
    /home/ec2-user/code/src/ellen/setup.py:12: DeprecationWarning:
Parameters to load are deprecated.  Call .resolve and .require separately.
      with open('README.md') as long_description_file:
Obtaining python-libmemcached from git+
https://github.com/douban/python-libmemcached.git@71fb66d473bbab82c2b6ddb410a386dd84417fa3#egg=python_libmemcached
(from -r requirements.txt (line 18))
  Cloning https://github.com/douban/python-libmemcached.git (to
71fb66d473bbab82c2b6ddb410a386dd84417fa3) to ./src/python-libmemcached
  Could not find a tag or branch
'71fb66d473bbab82c2b6ddb410a386dd84417fa3', assuming commit.
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/home/ec2-user/code/src/python-libmemcached/setup.py", line 5,
in <module>
        from Cython.Distutils import build_ext
    ImportError: No module named Cython.Distutils
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

      File "<string>", line 20, in <module>

      File "/home/ec2-user/code/src/python-libmemcached/setup.py", line 5,
in <module>

        from Cython.Distutils import build_ext

    ImportError: No module named Cython.Distutils

    ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in
/home/ec2-user/code/src/python-libmemcached

Best Regards,
Jumping Qu


Failure will absolutely happen. Things will absolutely go wrong. The best
way to deal with failure is to expect it and have a contingency plan in
place.

On Sat, Jan 24, 2015 at 9:49 AM, Xu Tao notifications@github.com wrote:

@jumping https://github.com/jumping 你的依赖不正确,应该按照README里面的方式安装,
https://github.com/douban/code/blob/master/requirements.txt 这个文件里面有指定版本号。


Reply to this email directly or view it on GitHub
#14 (comment).

在Ubuntu 14.04上部署/启动都正常。

image

好素净的界面