简体   繁体   中英

Google App Engine ImportError

I've come to run my app in development locally this morning, in the Google App Engine Launcher for Windows. Up until yesterday this has been working fine, and the code hasn't been changed since then.

Now, when I try to run the app on localhost I get the yellow warning sign in the Launcher and the log shows the following;

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)

I've only ever had Python 2.7 installed on this machine, nothing has ever attempted to use python26.dll before as far as I know...

Also, I've checked the Launcher for updates, nothing found. Has anybody experienced this before? The most baffling thing to me is that it's changed behaviour since yesterday...

Solved: As per commenter's hints, I tried closing all applications running which had been installed since the last successful run. This amounted to only one; Google Drive. Stopping that process allows the App Engine Launcher to run the app just fine, so the conflict's coming from two Google apps!

Thanks for the help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM