1

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?

2
  • Did you install zlib1g? Commented Feb 14, 2013 at 17:40
  • yes, already has installed zlib1g Commented Feb 14, 2013 at 18:14

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

Comments

0

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

25 Comments

This does not work. I executed it. I again tried "sudo sh setuptools-0.6c11-py2.7.egg" but it showed the same zlib1g error message. I tried "sudo python setup.py install" and it showed the same setuptools error message
Try this: wget pypi.python.org/packages/source/s/setuptools/… tar zxvf setuptools-0.6c11.tar.gz cd setuptools-0.6c11 python setup.py build python setup.py install
I have already tried these instructions... but they did not work
Run apt-get build-dep python and try setuptool again
Its 32bit or 64bit? If 32bit then install lib32z1
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.