My setting: Ubuntu 10.04, Dropbox SDK 1.5.1, and python 2.7.3
I am setting up the Dropbox SDK, but encounter a problem.
My python works fine, but when I was executing
python setup.py install
to install Dropbox SDK, it shows a message
Traceback (most recent call last):
File "setup.py", line 6, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools
I googled this message and found that I don't have setuptools. So I turned to install python setuptools. However, I failed again.
I tried to execute
sudo apt-get install python-setuptools
but the installation of Dropbox shows the same message.
I also went to http://pypi.python.org/pypi/setuptools downloading the file setuptools-0.6c11-py2.7.egg Then I executed
sudo sh setuptools-0.6c11-py2.7.egg
However, I got another error message
Traceback (most recent call last):
File "<string>", line 1, in <module>
zipimport.ZipImportError: can't decompress data; zlib not available
I found that probably I further need to install zlib related stuffs. Thus, I followed the advice to execute
sudo apt-get install zlib1g-dev
but the situation seems to be the same. I always got the message
Traceback (most recent call last):
File "<string>", line 1, in <module>
zipimport.ZipImportError: can't decompress data; zlib not available
I even used Ubuntu's Synaptic package manager, and checked and installed every package with zlib keyword. But I still have the same problem.
Could anyone give me some advice of how can I install Dropbox SDK in Ubuntu 10.04?