2012-08-02 44 views
0

我来的发展今天上午在本地运行我的应用程序,在谷歌应用程序引擎启动的Windows。直到昨天这一直工作正常,从那时起代码没有改变。谷歌应用程序引擎导入错误

现在,当我尝试运行在本地主机上的应用程序,我得到了黄色的警告标志在启动和日志显示以下;

2012-08-02 08:37:54 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files\\Google\\google_appengine\\dev_appserver.py', '--admin_console_server=', '--port=8080', 'C:\\Documents and Settings\\preston\\My Documents\\Google Drive\\Development\\Instance']" 
Traceback (most recent call last): 
    File "C:\Program Files\Google\google_appengine\dev_appserver.py", line 133, in <module> 
    run_file(__file__, globals()) 
    File "C:\Program Files\Google\google_appengine\dev_appserver.py", line 129, in run_file 
    execfile(script_path, globals_) 
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver_main.py", line 157, in <module> 
    from google.appengine.tools import appcfg 
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 41, in <module> 
    import mimetypes 
    File "C:\Python27\lib\mimetypes.py", line 29, in <module> 
    import urllib 
    File "C:\Python27\lib\urllib.py", line 26, in <module> 
    import socket 
    File "C:\Python27\lib\socket.py", line 47, in <module> 
    import _socket 
ImportError: Module use of python26.dll conflicts with this version of Python. 
2012-08-02 08:37:55 (Process exited with code 1) 
我只曾有的Python 2.7这台机器上安装

,什么都尝试过,据我所知之前,使用python26.dll ...

另外,我检查启动更新,没有发现。有没有人经历过这个?最令人费解的事情对我来说,它的改变行为,因为昨天...

+1

最近安装了其他软件吗?至少在你的机器上添加了python26.dll。 – 2012-08-02 07:48:54

+0

import _socket < - 是底层的C库吗?只需重新安装应用程序引擎? – 2012-08-02 07:52:05

+0

@MartijnPieters请记住,我确实安装了Google云端硬盘,我会尽量将其关闭。 – unwitting 2012-08-02 08:00:54

回答

2

解决:根据评论者的提示,我试图关闭自上次成功运行,其已安装的所有应用程序的运行。这只有一个; Google云端硬盘。停止该过程可让App Engine启动器运行该应用程序,因此冲突来自两个Google应用程序!

感谢您的帮助。

+2

非常令人惊讶的是Google Drive进程(确实使用Python 2.6)正在干扰App Engine SDK。但是,我再也没有使用过Windows,并且在任何一个版本中都有链接错误,导致Windows在加载* a * python.dll时导致Windows使用错误的.dll文件。 – 2012-08-02 08:06:06

+0

我也试图解决它,我认为那一定是它 - 如果有一个Python dll已经链接到某个地方,我们似乎只是尝试使用那个! – unwitting 2012-08-02 08:11:55

相关问题