求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解决?谢谢

头像
白鳍豚
帖子: 2354
注册时间: 2009-01-19 23:03
送出感谢: 5 次
接收感谢: 0

求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解决?谢谢

#1

帖子 白鳍豚 » 2013-10-06 2:58

python /usr/share/goagent/server/uploader.zip
Traceback (most recent call last):
File "/usr/lib/python3.3/runpy.py", line 142, in _run_module_as_main
mod_name, loader, code, fname = _get_main_module_details()
File "/usr/lib/python3.3/runpy.py", line 189, in _get_main_module_details
return _get_module_details(main_name)
File "/usr/lib/python3.3/runpy.py", line 114, in _get_module_details
code = loader.get_code(mod_name)
File "/usr/share/goagent/server/uploader.zip/__main__.py", line 34
print BANNER.decode('utf-8').encode(sys.getfilesystemencoding(), 'replace')
^
SyntaxError: invalid syntax
头像
oneleaf
论坛管理员
帖子: 10341
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 113 次

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#2

帖子 oneleaf » 2013-10-06 11:33

换 python 2.7
头像
momova
帖子: 3381
注册时间: 2007-07-11 21:43
系统: archlinux
来自: 东江边
送出感谢: 15 次
接收感谢: 7 次

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#3

帖子 momova » 2013-10-06 14:46

顶一叶
我来了,我看见了,我征服了!
求勾搭,不管饭。
头像
dtph
帖子: 94
注册时间: 2009-05-14 19:29
系统: arch64
送出感谢: 0
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#4

帖子 dtph » 2013-10-07 16:31

python2 /usr/share/goagent/server/uploader.zip
头像
白鳍豚
帖子: 2354
注册时间: 2009-01-19 23:03
送出感谢: 5 次
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#5

帖子 白鳍豚 » 2013-10-12 7:26

dtph 写了:python2 /usr/share/goagent/server/uploader.zip
谢谢!不过不行
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/share/goagent/server/uploader.zip/__main__.py", line 35, in <module>
File "/usr/share/goagent/server/uploader.zip/__main__.py", line 30, in main
File "/usr/share/goagent/server/uploader.zip/appcfg.py", line 103, in main
File "/usr/share/goagent/server/uploader.zip/appcfg.py", line 86, in upload
IOError: [Errno 13] Permission denied: 'python/app.yaml'
头像
白鳍豚
帖子: 2354
注册时间: 2009-01-19 23:03
送出感谢: 5 次
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#6

帖子 白鳍豚 » 2013-10-12 7:28

oneleaf 写了:换 python 2.7
谢谢! :em02
头像
cjxgm
帖子: 1950
注册时间: 2010-04-23 20:40
系统: Arch Linux
来自: 浙江·杭州
送出感谢: 1 次
接收感谢: 30 次
联系:

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#7

帖子 cjxgm » 2013-10-12 8:15

代码: 全选

sudo python2 /usr/share/goagent/server/uploader.zip
试试?
头像
白鳍豚
帖子: 2354
注册时间: 2009-01-19 23:03
送出感谢: 5 次
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#8

帖子 白鳍豚 » 2013-10-13 14:58

cjxgm 写了:

代码: 全选

sudo python2 /usr/share/goagent/server/uploader.zip
试试?
输入密码之后
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/share/goagent/server/uploader.zip/__main__.py", line 35, in <module>
File "/usr/share/goagent/server/uploader.zip/__main__.py", line 30, in main
File "/usr/share/goagent/server/uploader.zip/appcfg.py", line 103, in main
File "/usr/share/goagent/server/uploader.zip/appcfg.py", line 91, in upload
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appcfg.py", line 3873, in main
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appcfg.py", line 2443, in Run
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appcfg.py", line 3638, in __call__
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appcfg.py", line 3141, in Rollback
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appcfg.py", line 3158, in _Rollback
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appcfg.py", line 2018, in Rollback
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appcfg.py", line 1698, in Send
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appengine_rpc.py", line 378, in Send
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appengine_rpc.py", line 436, in _Authenticate
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appengine_rpc.py", line 280, in _Authenticate
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appengine_rpc.py", line 232, in _GetAuthToken
File "/usr/share/goagent/server/uploader.zip/google/appengine/tools/appengine_rpc.py", line 94, in __init__
AttributeError: can't set attribute
头像
白鳍豚
帖子: 2354
注册时间: 2009-01-19 23:03
送出感谢: 5 次
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#9

帖子 白鳍豚 » 2013-10-13 15:36

make 2.7之后貌似连上了
:em06 不会用 还是出不去 :em06
Application: ×××××××××××; version: 1
Host: appengine.google.com

Starting update of app: ××××××××, version: 1
Scanning files on local disk.
APPID:********
Application: ********
Host: appengine.google.com
Rolling back the update.
Email: ********@gmail.com
Password for ********@gmail.com:
Application: ********; version: 1
Host: appengine.google.com

Starting update of app: ********, version: 1
Scanning files on local disk.
Email:
上次由 白鳍豚 在 2013-10-13 15:53,总共编辑 2 次。
头像
白鳍豚
帖子: 2354
注册时间: 2009-01-19 23:03
送出感谢: 5 次
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#10

帖子 白鳍豚 » 2013-10-13 15:40

sudo python /usr/share/goagent/server/python/wsgi.py
Traceback (most recent call last):
File "/usr/share/goagent/server/python/wsgi.py", line 480, in <module>
import gevent
ImportError: No module named gevent
头像
白鳍豚
帖子: 2354
注册时间: 2009-01-19 23:03
送出感谢: 5 次
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#11

帖子 白鳍豚 » 2013-10-13 15:43

sudo python /usr/share/goagent/local/proxy.py
WARNING - [Oct 13 15:41:01] python-openssl not found, please install it!
certutil: function failed: SEC_ERROR_BAD_DATABASE: security library: bad database.
certutil: function failed: SEC_ERROR_BAD_DATABASE: security library: bad database.
WARNING - [Oct 13 15:41:01] install root certificate failed, Please run as administrator/root/sudo
------------------------------------------------------
GoAgent Version : 3.0.3 (python/2.7 ( pyopenssl/Disabled)
Listen Address : 127.0.0.1:8087
GAE Mode : https
GAE Profile : google_cn
GAE APPID : **********
Pac Server : http://127.0.0.1:8086/proxy.pac
Pac File : file:///usr/share/goagent/local/proxy.pac
------------------------------------------------------
Traceback (most recent call last):
File "/usr/share/goagent/local/proxy.py", line 2251, in <module>
main()
File "/usr/share/goagent/local/proxy.py", line 2236, in main
server = LocalProxyServer((common.PAC_IP, common.PAC_PORT), PACServerHandler)
File "/usr/local/lib/python2.7/SocketServer.py", line 408, in __init__
self.server_bind()
File "/usr/local/lib/python2.7/SocketServer.py", line 419, in server_bind
self.socket.bind(self.server_address)
File "/usr/local/lib/python2.7/socket.py", line 222, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
头像
白鳍豚
帖子: 2354
注册时间: 2009-01-19 23:03
送出感谢: 5 次
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#12

帖子 白鳍豚 » 2013-10-13 15:58

python openssl
sudo yaourt -Ss openssl
core/openssl 1.0.1.e-3 [installed]
The Open Source toolkit for Secure Sockets Layer and Transport Layer
Security
extra/perl-crypt-openssl-bignum 0.04-9
OpenSSL's multiprecision integer arithmetic
extra/perl-crypt-openssl-random 0.06-1
Interface to OpenSSL PRNG methods
extra/perl-crypt-openssl-rsa 0.28-4
Interface to OpenSSL RSA methods
extra/perl-crypt-ssleay 0.64-2
OpenSSL glue that provides LWP https support
extra/perl-net-ssleay 1.55-1
Perl extension for using OpenSSL
extra/python-pyopenssl 0.13-2 [installed]
Python3 wrapper module around the OpenSSL library
extra/python2-pyopenssl 0.13-2 [installed]
Python2 wrapper module around the OpenSSL library
community/lua51-sec 0.4.1-4
Lua bindings for OpenSSL library to provide TLS/SSL communication.
community/python2-ndg-httpsclient 0.3.2-2
Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL
community/tls 1.6-4
OpenSSL extension to Tcl
multilib/lib32-openssl 1.0.1.e-2 [installed]
The Open Source toolkit for Secure Sockets Layer and Transport Layer
Security (32-bit)
aur/bcpkix 1.48-1 (2)
Java cryptography APIs (Bouncy Castle) package for
PKIX/CMS/EAC/DVCS/PKCS/TSP/OPENSSL
aur/chicken-openssl 1.4-4 (0)
Chicken Scheme Egg: Bindings to the OpenSSL SSL/TLS library
aur/cl-ssl-cvs 20090814-2 (3)
A Common Lisp interface to OpenSSL
aur/engine_pkcs11 0.1.8-3 (15)
Implementation of a PKCS11 engine for OpenSSL
aur/haskell-hopenssl 1.6.1-18 (2)
FFI bindings to OpenSSL's EVP digest interface
aur/haskell-hsopenssl 0.8.0.2-3 (Out of Date) (3)
(Incomplete) OpenSSL binding for Haskell
aur/haskell-nano-hmac 0.2.0-4 (3)
Bindings to OpenSSL HMAC.
aur/haskell-nano-md5 0.1.2-3 (3)
Efficient, ByteString bindings to OpenSSL.
aur/lib32-openssl-stackrealign 1.0.1c/[a-z]/.1.0.1c//[0-9.]/}}- (4)
The Open Source toolkit for Secure Sockets Layer and Transport Layer
Security (32-bit). Added -mstackrealign so that it works OK with wine.
aur/lib32-openssl098 0.9.8.y-1 (324)
The Open Source toolkit for Secure Sockets Layer and Transport Layer
Security (32-bit, 0.9.8 branch)
aur/libassl 1.4.1-1 (0)
Provides a much simpler and sane programming interface to OpenSSL
aur/libcryptoplus 2.0-1 (7)
A C++ wrapper around the OpenSSL cryptographic library
aur/libx32-openssl 1.0.1.c-1.2 (1)
The Open Source toolkit for Secure Sockets Layer and Transport Layer
Security (x32 ABI)
aur/loudmouth-ossl 1.4.3-5 (0)
A lightweight Jabber client library written in C/Glib. Build with OpenSSL
instead of gnutsl (build with gnutls don't work with latest mcabber)
aur/lua51-sec-prosody 0.5-1 (2)
Lua bindings for OpenSSL library to provide TLS/SSL communication.
aur/luacrypto 0.2.0-2 (8)
Lua frontend to the OpenSSL cryptographic library.
aur/luasec-hg 45.5be249c0ae71-2 (3)
Lua bindings for OpenSSL library to provide TLS/SSL communication.
aur/mingw-w64-openssl 1.0.1e-3 (6)
The Open Source toolkit for Secure Sockets Layer and Transport Layer
Security (mingw-w64)
aur/mingw32-openssl 1.0.1e-1 (23)
The Open Source toolkit for Secure Sockets Layer and Transport Layer
Security (mingw32)
aur/mingw32-openssl-static 1.0.1c-1 (8)
The Open Source toolkit for Secure Sockets Layer and Transport Layer
Security (mingw32, static)
aur/objopenssl-git 20130402-1 (0)
OpenSSL bindings for ObjFW.
aur/openssl-cisco-dtls 0.9.8k-2 (12)
openssl/crypto libraries only (with patch for Cisco DTLS) (does not
conflict with standard package)
aur/openssl098 0.9.8.y-1 (369)
The Open Source toolkit for Secure Sockets Layer and Transport Layer
Security (0.9.8 branch)
aur/openssl_tpm_engine 0.4.2-2 (7)
OpenSSL engine which interfaces with the TSS API
aur/perl-crypt-openssl-aes 0.02-2 (4)
Interface to AES functionality in OpenSSL
aur/perl-crypt-openssl-dsa 0.14-1 (8)
Digital Signature Algorithm using OpenSSL
aur/pkcs11-helper 1.10-3 (23)
A library that simplifies the interaction with PKCS11 providers for
end-user applications using a simple API and optional OpenSSL engine.
aur/pyncrypt 0.6.4-3 (1)
PyNCrypt: Yet another OpenSSL wrapper for python
aur/pyopensslproxy 0.1-1 (0)
Provides HTTPS proxy support to httplib and urllib2 classes.
aur/python26-pyopenssl 0.11-2 (1)
Python2 wrapper module around the OpenSSL library
aur/ruby-jruby-openssl 0.8.8-1 (0)
JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL
native library.
aur/tls-cvs 20080127-1 (4)
OpenSSL extension to Tcl from CVS
aur/vim-openssl 3.2-4 (12)
Edit OpenSSL encrypted files and turn Vim into a password safe
aur/xca 0.9.3-1 (43)
graphical user interface to OpenSSL, RSA/DSA public keys, certificates,
signing requests and revokation lists
有安装啊
头像
dtph
帖子: 94
注册时间: 2009-05-14 19:29
系统: arch64
送出感谢: 0
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#13

帖子 dtph » 2013-10-19 22:29

autoproxy装了没?
头像
白鳍豚
帖子: 2354
注册时间: 2009-01-19 23:03
送出感谢: 5 次
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#14

帖子 白鳍豚 » 2013-10-20 10:42

dtph 写了:autoproxy装了没?
谢谢!没有,正在安装
sudo yaourt -Ss autoproxy
aur/firefox-extension-autoproxy 0.4b2-10 (0)
头像
dtph
帖子: 94
注册时间: 2009-05-14 19:29
系统: arch64
送出感谢: 0
接收感谢: 0

Re: 求助:运行python /usr/share/goagent/server/uploader.zip错误,如何解

#15

帖子 dtph » 2013-10-20 21:42

证书导入了没有?
终端运行 python2 /opt/goagent/local/proxy.py 窗口别关。
firefox autoproxy配置一下使用goagent,福呈绿色是使用代理。
回复

回到 “Arch发行版”