GAE 的 ImportError: No module named _ctypes 解決


基本上好像只要升到Mac OS 的 10.6 版本就會發生
解決方法其實算是蠻簡單,到現在都好像沒完沒了?
期待 Python 2.6 的 GAE ..

以下是解決 ImportError: No module named 的問題

1
2
3
4
1. 停掉錯誤的 app
2. command + , (打開 GoogleAppEngineLauncher 的喜好設定)
3. python path 中填入 /usr/bin/python2.5
4. 打開 console 按下 clear 之後重開 app

之後會發現以下的 startup message…應該就可以了

1
2
3
*** Running dev_appserver with the following flags:
--admin_console_server= --port=8080
Python command: /usr/bin/python2.5