V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yourmoonlight
V2EX  ›  Python

各位大神,小弟最近用 python 结合一些库写了一个搜索引擎,在本地运行都正常,想部署到 GAE 上,结果出了各种问题,目前遇到的这个问题, google 了一圈也没找到解决方案,各位大神有空的话,嘿嘿,帮我瞅两眼呗?先谢谢啦~

  •  
  •   yourmoonlight · 2015-04-22 15:56:02 +08:00 · 3359 次点击
    这是一个创建于 3285 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2015-04-20 22:50:38.294
    * Running on http://127.0.0.1:5000/
    E 2015-04-20 22:50:38.356
    Traceback (most recent call last):
    File "/base/data/home/apps/s~ysunews/1.383739100392018697/main.py", line 40, in <module>
    app.run()
    File "/base/data/home/apps/s~ysunews/1.383739100392018697/flask/app.py", line 772, in run
    run_simple(host, port, self, **options)
    File "/base/data/home/apps/s~ysunews/1.383739100392018697/werkzeug/serving.py", line 706, in run_simple
    test_socket.bind((hostname, port))
    File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/socket.py", line 222, in meth
    return getattr(self._sock,name)(*args)
    File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/remote_socket/_remote_socket.py", line 676, in bind
    raise _SystemExceptionFromAppError(e)
    error: [Errno 13] Permission denied
    8 条回复    2015-04-23 09:23:28 +08:00
    Livid
        1
    Livid  
    MOD
       2015-04-22 16:35:44 +08:00   ❤️ 2
    你源代码中的 test_socket.bind((hostname, port)) 需要用到 socket,但是 GAE 上的 Python 环境是无法使用 raw socket 的。
    Feiox
        2
    Feiox  
       2015-04-22 16:37:50 +08:00   ❤️ 1
    v2ex 被墙了也防不住各种 “各位大神,小弟最近用”er ~
    deben
        3
    deben  
       2015-04-22 16:40:19 +08:00
    @Feiox V2 已经翻墙回家了
    yourmoonlight
        4
    yourmoonlight  
    OP
       2015-04-22 16:48:28 +08:00
    @Livid 老大回复我,感激涕零。。
    ledzep2
        5
    ledzep2  
       2015-04-23 00:01:21 +08:00   ❤️ 1
    @Livid 具体说应该是只能做随机outbound, 不能bind和listen
    yourmoonlight
        6
    yourmoonlight  
    OP
       2015-04-23 00:13:42 +08:00
    @ledzep2 仔细去看了一下,好像是这样的,谢谢你啊。
    ryd994
        7
    ryd994  
       2015-04-23 01:10:17 +08:00 via Android   ❤️ 1
    你开付费就行了
    即使开了付费,如果用量不超过免费额度的话还是不收费的
    同时可以设置每月费用上限,你设成一块钱就好
    yourmoonlight
        8
    yourmoonlight  
    OP
       2015-04-23 09:23:28 +08:00
    @ryd994 付费已经开了的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1017 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:02 · PVG 03:02 · LAX 12:02 · JFK 15:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.