【求助】ImportError: No module named fcntl

235 views
Skip to first unread message

张锐

unread,
Dec 12, 2013, 8:21:44 AM12/12/13
to sae-python
【问题描述】:在使用tornado框架时,
      import tornado.auth
   
导致如下错误:

Traceback (most recent call last):
  File "/data1/www/htdocs/554/zhangrui/8/index.wsgi", line 4, in <module>
    from urls import urls
  File "/data1/www/htdocs/554/zhangrui/8/urls.py", line 4, in <module>
    from apps import code, admin
  File "/data1/www/htdocs/554/zhangrui/8/apps/code.py", line 8, in <module>
    import tornado.auth
  File "/usr/local/sae/python/lib/python2.7/site-packages/tornado/auth.py", line 57, in <module>
    from tornado import httpclient
  File "/usr/local/sae/python/lib/python2.7/site-packages/tornado/httpclient.py", line 36, in <module>
    from tornado.ioloop import IOLoop
  File "/usr/local/sae/python/lib/python2.7/site-packages/tornado/ioloop.py", line 49, in <module>
    from tornado.platform.auto import set_close_exec, Waker
  File "/usr/local/sae/python/lib/python2.7/site-packages/tornado/platform/auto.py", line 31, in <module>
    from tornado.platform.posix import set_close_exec, Waker
  File "/usr/local/sae/python/lib/python2.7/site-packages/tornado/platform/posix.py", line 19, in <module>
    import fcntl
ImportError: No module named fcntl

是因为没有fcntl库导致该问题吗?

------------------
 
您好,我是张锐
如需联系:Tel:13934621958
                  QQ:75993971
欢迎访问我的博客:http://blog.sina.com.cn/fd1413
 

张锐

unread,
Dec 12, 2013, 10:43:57 AM12/12/13
to sae-python
SAE把fcntl给干掉了
 
------------------
 
您好,我是张锐
如需联系:Tel:13934621958
                  QQ:75993971
欢迎访问我的博客:http://blog.sina.com.cn/fd1413
 


------------------ Original ------------------
From: "张锐"<7599...@qq.com>;
Date: 2013年12月12日(星期四) 晚上9:21
To: "sae-python";
Subject: [SAEpy] 【求助】ImportError: No module named fcntl
--
邮件来自: SAE Python 邮件列表
发言: sae-python@googlegroups.com
退订: sae-python+unsubscribe@googlegroups.com (向此发空信即退!)

陈峰

unread,
Dec 12, 2013, 9:21:21 PM12/12/13
to sae-p...@googlegroups.com
tornado.httpclient只有使用tornado worker,在异步模式下才可以使用。



 

--
邮件来自: SAE Python 邮件列表
发言: sae-p...@googlegroups.com
退订: sae-python+...@googlegroups.com (向此发空信即退!)

Reply all
Reply to author
Forward
0 new messages