jezdez/django_compressor — Issue #181: Installation Error
Author: trent
Created: 2011-12-14 20:05:43+00:00
State: open

I keep running into issues when installing django_compressor on my Mac running Snow Leopard and XCode 4.0. I've tried installing via `pip install django-compressor`, which results in the error:

```
Downloading/unpacking django-compressor==1.1.1 (from -r src/src-tower/requirements.txt (line 3))
Downloading django_compressor-1.1.1.tar.gz (59Kb): 59Kb downloaded
Running setup.py egg_info for package django-compressor

Installed /Users/trent/dev/sites/tower.io/build/django-compressor/versiontools-1.8.2-py2.6.egg
Traceback (most recent call last):
File "", line 14, in
File "/Users/trent/dev/sites/tower.io/build/django-compressor/setup.py", line 129, in
'versiontools >= 1.6',
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 113, in setup
_setup_distribution = dist = klass(attrs)
File "/Users/trent/dev/sites/tower.io/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/dist.py", line 264, in __init__
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 270, in __init__
self.finalize_options()
File "/Users/trent/dev/sites/tower.io/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/dist.py", line 297, in finalize_options
File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 412, in handle_version

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 352, in format_version

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 197, in from_tuple_and_hint

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 183, in from_tuple

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 126, in __new__

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 279, in _find_source_tree

File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 936, in getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 911, in getframeinfo
lines, lnum = findsource(frame)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 573, in findsource
if pat.match(lines[lnum]): break
IndexError: list index out of range
Complete output from command python setup.py egg_info:

Installed /Users/trent/dev/sites/tower.io/build/django-compressor/versiontools-1.8.2-py2.6.egg

Traceback (most recent call last):

File "", line 14, in

File "/Users/trent/dev/sites/tower.io/build/django-compressor/setup.py", line 129, in

'versiontools >= 1.6',

File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 113, in setup

_setup_distribution = dist = klass(attrs)

File "/Users/trent/dev/sites/tower.io/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/dist.py", line 264, in __init__

File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 270, in __init__

self.finalize_options()

File "/Users/trent/dev/sites/tower.io/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/dist.py", line 297, in finalize_options

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 412, in handle_version

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 352, in format_version

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 197, in from_tuple_and_hint

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 183, in from_tuple

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 126, in __new__

File "build/bdist.macosx-10.6-universal/egg/versiontools/__init__.py", line 279, in _find_source_tree

File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 936, in getouterframes

framelist.append((frame,) + getframeinfo(frame, context))

File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 911, in getframeinfo

lines, lnum = findsource(frame)

File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 573, in findsource

if pat.match(lines[lnum]): break

IndexError: list index out of range
```

Oddly, if I install versiontools first, then install django-compressor, I don't have an issues. But I have to install those via separate pip commands and can't use a requirements.txt.