Python Installation problem with 0.7.10

Asked by Kevin Beierle

Installing duplicity-0.7.10 on Ubuntu 14.0.4, received the following error message:
File "setup.py", line 25 in <module>
from setuptools import setup, Extension
ImportError: No module named setuptools

Any idea why it isn't recognizing setuptools module? Downloaded this directly from code.launchpad.net...thanks!

Kevin

Question information

Language:
English Edit question
Status:
Solved
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Solved by:
Kevin Beierle
Solved:
Last query:
Last reply:
Revision history for this message
Kenneth Loafman (kenneth-loafman) said :
#1

No clue. duplicity has been installed many thousands of times and no one
has reported problems.

Is Python 2 the default? If not, use:
$ sudo python2 setup.py install
to do the install.

On Tue, Aug 30, 2016 at 3:43 PM, Kevin Beierle <
<email address hidden>> wrote:

> New question #374333 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/374333
>
> Installing duplicity-0.7.10 on Ubuntu 14.0.4, received the following error
> message:
> File "setup.py", line 25 in <module>
> from setuptools import setup, Extension
> ImportError: No module named setuptools
>
> Any idea why it isn't recognizing setuptools module? Downloaded this
> directly from code.launchpad.net...thanks!
>
> Kevin
>
> --
> You received this question notification because your team duplicity-team
> is an answer contact for Duplicity.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~duplicity-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~duplicity-team
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Kevin Beierle (kbeierle) said :
#2

Thanks Kenneth...yea, I know it's been installed by many, which I thought was bizarre that I would get that error message at the start. Relatively new release 10 days ago..not sure if that may be the contributor. Tried using sudo, but received the same error message. Still searching for the cause...appreciate the feedback!

Kevin

Revision history for this message
Kevin Beierle (kbeierle) said :
#3

Looking at the setup.py file, here's the first set of commands that it fails on:
import sys
import os
from setuptools import setup, Extension (it fails on this line)
from setuptools.command.test import test
from setuptools.command.install import install
from setuptools.command.sdist import sdist

I'm wondering if there's an extension to the setuptools (setuptools.XXXX) that may be missing?

Hopefully this might help diagnose what's going on...thanks!

Kevin

Revision history for this message
Kevin Beierle (kbeierle) said :
#4

I looked to see if the setuptools module was an installed module within Python, and it wasn't listed as installed. All of the Python packages have been installed and are the latest versions:
apt-get install ncftp python-paramiko python-pycryptopp lftp python-boto python-dev librsync-dev

Researching how to install the setuptools module...realize that python-pip is not installed...installed pip, and then ran the duplicty install and it installed clean...learned alot in this troubleshooting exercise...cheers!

Kevin