Dropbox SDK无法导入?

时间:2015-04-05 18:04:03

标签: python django dropbox

我在导入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没问题。

  • 通过点播重新安装dropbox,问题仍然存在

  • ./manage runserver以及WSGI服务器中运行。两者都屈服 同样的错误。

  • 导入不同的第三方模块,例如django-facebook,no 误差

1 个答案:

答案 0 :(得分:0)

问题已解决。我忘记了运行Migrate。业余错误。不会再做了。