2015-04-05 168 views
0

我在導入Dropbox SDK時遇到了這個奇怪的問題。在服務器上我得到錯誤信息Dropbox SDK無法導入?

ImportError at /supplier/ 
No module named client 
Request Method: GET 
Request URL: http://localhost:8000/supplier/ 
Django Version: 1.7.7 
Exception Type: ImportError 
Exception Value:  
No module named client 
Exception Location: /home/yonk/projects/apple/supplier/dropbox_adapter.py in <module>, line 3 
Python Executable: /home/yonk/projects/apple/venv/bin/python 
Python Version: 2.7.6 
Python Path:  
['/home/yonk/projects/apple', 
'/home/yonk/Desktop/eclipse/plugins/org.python.pydev_3.9.2.201502050007/pysrc', 
'/home/yonk/projects/apple', 
'/home/yonk/projects/apple/venv/lib/python2.7', 
'/home/yonk/projects/apple/venv/lib/python2.7/lib-dynload', 
'/usr/lib/python2.7', 
'/usr/lib/python2.7/plat-x86_64-linux-gnu', 
'/usr/lib/python2.7/lib-tk', 
'/home/yonk/projects/apple/venv/local/lib/python2.7/site-packages', 
'/home/yonk/projects/apple/venv/lib/python2.7/plat-x86_64-linux-gnu', 
'/home/yonk/projects/apple/venv/lib/python2.7/lib-tk', 
'/home/yonk/projects/apple/venv/lib/python2.7/lib-old'] 
Server time: Sun, 5 Apr 2015 17:51:22 +0000 

view.py文件看起來像這樣,只有一條線,試圖導入SDK

import dropbox 
#EOF 

嘗試至今:

  • 刪除行import dropbox和錯誤消失,但該 擊敗目的

  • ./manage shell和我能夠導入dropbox沒有問題。

  • 通過PIP重新安裝Dropbox的,問題仍然存在

  • ./manage runserver以及通過WSGI服務器運行。兩者收益率 同樣的錯誤。

  • 導入不同的第三方模塊如django的-臉譜,沒有 錯誤

回答

0

問題固定。我忘了運行Migrate。業餘的錯誤。不會再做。