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?
For anyone coming across this looking for an answer, the following command:
sudo apt-get install python-setuptools
will properly set up setuptools, then
sudo python setup.py install
will work. Cheers
For 64 bit
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1 /lib/libz.so
For 32 bit
sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib
Also install:
lib32z1
& lib32z1-dev
for 32 bit packages
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.