manosim / manosim/django-rest-framework-docs

pip install fails with missing `setuptools.command` error

Open
#120 12 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
641
Forks
178
PR merge metrics
No merged PRs in 30d

Description

I get the following stack trace trying to pip install or upgrate drfdocs, using Python 2.7, on both a mac running OS X 10.11.5 and a Ubuntu 14.04 machine.

```
[ubuntu@SEA] pip install --upgrade drfdocs
Downloading/unpacking drfdocs from https://pypi.python.org/packages/e5/9e/3a9aa6908ad7bd95b46f7fe05256681f4101de9a7769b6928159a986ef61/drfdocs-0.0.11.tar.gz#md5=ae42aba1e598ac110de74bdad0f3d3f4
Downloading drfdocs-0.0.11.tar.gz (771kB): 771kB downloaded
Running setup.py (path:/build/drfdocs/setup.py) egg_info for package drfdocs
Traceback (most recent call last):
File "", line 3, in
ImportError: No module named setuptools.command
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 3, in

ImportError: No module named setuptools.command

----------------------------------------
Cleaning up...
```

Both installs were done within virtualenvs with django1.9 installed. `pip` versions were 1.5.4 & 1.5.6

I didn't find this behavior with any other pip modules. Don't know if it's something DrfDocs is doing in its setup or some other setup-related issue.

Cheers!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the Python 2.7 virtualenv setup described, using pip install --upgrade drfdocs. Start with setup.py and the python setup.py egg_info entry point shown in the traceback; done means the package installs or upgrades without the missing setuptools.command error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.