OpenShift Requirements.txt Pip错误

时间:2015-06-13 20:55:12

标签: python pip openshift

我想将一个Python应用程序部署到OpenShift,该应用程序正在使用其中的tweepy库。对于tweepy,easy_install无法正常工作,所以我创建了一个只有一行" tweepy"的requirements.txt文件,但是我收到错误parse_requirements()得到了一个意外的关键字参数'会议'并且许可被拒绝。真的不知道它是什么。我搜索了很多,但没有一个解决方案有效。作为一个解决方案,我尝试手动安装它,但我无法达到sudo级别,它不允许我使用pip。提前谢谢。

    Checking for pip dependency listed in requirements.txt file..                                     
    remote: Downloading/unpacking tweepy (from -r /var/lib/openshift/556db0635004460bb70000f6/app-root/runtime
    /repo/requirements.txt (line 1))                                                                          
    remote:   Downloading tweepy-3.3.0.tar.gz                                                                 
    remote:   Running setup.py egg_info for package tweepy                                                    
    remote:     Traceback (most recent call last):                                                            
    remote:       File "<string>", line 16, in <module>                                                       
    remote:       File "/var/lib/openshift/556db0635004460bb70000f6/app-root/runtime/dependencies/python/virte
    nv/build/tweepy/setup.py", line 17, in <module>                                                           
    remote:         install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())               
    remote:     TypeError: parse_requirements() got an unexpected keyword argument 'session'                  
    remote:     Complete output from command python setup.py egg_info:                                        
    remote:     Traceback (most recent call last):                                                            
    remote: 
    remote:   File "<string>", line 16, in <module>                                                           
    remote: 
    remote:   File "/var/lib/openshift/556db0635004460bb70000f6/app-root/runtime/dependencies/python/virtenv/b
    uild/tweepy/setup.py", line 17, in <module>                                                               
    remote: 
    remote:     install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())                   
    remote: 
    remote: TypeError: parse_requirements() got an unexpected keyword argument 'session' 
remote: ----------------------------------------                                                          
remote: Cleaning up...                                                                                    
remote: Command python setup.py egg_info failed with error code 1 in /var/lib/openshift/556db0635004460bb7
0000f6/app-root/runtime/dependencies/python/virtenv/build/tweepy                                          
remote: Traceback (most recent call last):                                                                
remote:   File "/var/lib/openshift/556db0635004460bb70000f6/python/virtenv/bin/pip", line 12, in <module> 
remote:     load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()                                    
remote:   File "/var/lib/openshift/556db0635004460bb70000f6/app-root/runtime/dependencies/python/virtenv/l
ib/python2.6/site-packages/pip/__init__.py", line 148, in main                                            
remote:     return command.main(args[1:], options)                                                        
remote:   File "/var/lib/openshift/556db0635004460bb70000f6/app-root/runtime/dependencies/python/virtenv/l
ib/python2.6/site-packages/pip/basecommand.py", line 171, in main                                         
remote:     log_fp = open_logfile(log_fn, 'w')                                                            
remote:   File "/var/lib/openshift/556db0635004460bb70000f6/app-root/runtime/dependencies/python/virtenv/l
ib/python2.6/site-packages/pip/basecommand.py", line 200, in open_logfile                                 
remote:     os.makedirs(dirname)                                                                          
remote:   File "/var/lib/openshift/556db0635004460bb70000f6/python/virtenv/lib64/python2.6/os.py", line 15
7, in makedirs                                                                                            
remote:     mkdir(name, mode)                                                                             
remote: OSError: [Errno 13] Permission denied: '/var/lib/openshift/556db0635004460bb70000f6/.pip'     

0 个答案:

没有答案