Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Installation problems #9

Open
ringemup opened this issue Dec 5, 2011 · 4 comments
Open

Installation problems #9

ringemup opened this issue Dec 5, 2011 · 4 comments

Comments

@ringemup
Copy link

ringemup commented Dec 5, 2011

On OS X with Python 2.6.1 and pip 1.0.2, I'm getting the following error when attempting to install linaro-django-pagination in a virtualenv:

Traceback (most recent call last):
File "", line 14, in
File "/Users//virtualenvs/consolidated2/src/linaro-django-pagination/setup.py", line 35, in
include_package_data=True
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 "build/bdist.linux-i686/egg/setuptools/dist.py", line 260, in init
File "build/bdist.linux-i686/egg/setuptools/dist.py", line 284, in fetch_build_eggs
File "build/bdist.linux-i686/egg/pkg_resources.py", line 563, in resolve
plugin_projects = list(plugin_env)
File "build/bdist.linux-i686/egg/pkg_resources.py", line 799, in best_match
File "build/bdist.linux-i686/egg/pkg_resources.py", line 811, in obtain
File "build/bdist.linux-i686/egg/setuptools/dist.py", line 327, in fetch_build_egg
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 446, in easy_install
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 476, in install_item
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 655, in install_eggs
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 930, in build_and_install
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 919, in run_setup
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 62, in run_setup
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 105, in run
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 64, in
File "setup.py", line 29, in
tests_require=[
File "/var/folders/+e/+e-fXew0EJmWDLZpODM0IU+++TM/-Tmp-/easy_install-quDYyr/versiontools-1.8.1/versiontools/init.py", line 354, in format_version
File "/var/folders/+e/+e-fXew0EJmWDLZpODM0IU+++TM/-Tmp-/easy_install-quDYyr/versiontools-1.8.1/versiontools/init.py", line 183, in from_tuple
File "/var/folders/+e/+e-fXew0EJmWDLZpODM0IU+++TM/-Tmp-/easy_install-quDYyr/versiontools-1.8.1/versiontools/init.py", line 126, in new
File "/var/folders/+e/+e-fXew0EJmWDLZpODM0IU+++TM/-Tmp-/easy_install-quDYyr/versiontools-1.8.1/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:
Traceback (most recent call last):
File "", line 14, in
File "/Users//virtualenvs/consolidated2/src/linaro-django-pagination/setup.py", line 35, in
include_package_data=True
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 "build/bdist.linux-i686/egg/setuptools/dist.py", line 260, in init
File "build/bdist.linux-i686/egg/setuptools/dist.py", line 284, in fetch_build_eggs
File "build/bdist.linux-i686/egg/pkg_resources.py", line 563, in resolve
plugin_projects = list(plugin_env)
File "build/bdist.linux-i686/egg/pkg_resources.py", line 799, in best_match
File "build/bdist.linux-i686/egg/pkg_resources.py", line 811, in obtain
File "build/bdist.linux-i686/egg/setuptools/dist.py", line 327, in fetch_build_egg
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 446, in easy_install
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 476, in install_item
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 655, in install_eggs
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 930, in build_and_install
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 919, in run_setup
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 62, in run_setup
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 105, in run
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 64, in
File "setup.py", line 29, in
tests_require=[
File "/var/folders/+e/+e-fXew0EJmWDLZpODM0IU+++TM/-Tmp-/easy_install-quDYyr/versiontools-1.8.1/versiontools/init.py", line 354, in format_version
File "/var/folders/+e/+e-fXew0EJmWDLZpODM0IU+++TM/-Tmp-/easy_install-quDYyr/versiontools-1.8.1/versiontools/init.py", line 183, in from_tuple
File "/var/folders/+e/+e-fXew0EJmWDLZpODM0IU+++TM/-Tmp-/easy_install-quDYyr/versiontools-1.8.1/versiontools/init.py", line 126, in new
File "/var/folders/+e/+e-fXew0EJmWDLZpODM0IU+++TM/-Tmp-/easy_install-quDYyr/versiontools-1.8.1/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

I'll continue to troubleshoot and post back if I find a resolution.

@zyga
Copy link
Owner

zyga commented Dec 5, 2011

Which OSX is that, Leopard?

@ringemup
Copy link
Author

ringemup commented Dec 5, 2011

OK, basically, if you don't already have versiontools installed, pip (or setuptools) will choke on the setup_requires line. Installing versiontools before attempting to install linaro-django-pagination results in a successful installation. It might be worth documenting this.

@ringemup
Copy link
Author

ringemup commented Dec 5, 2011

Snow Leopard (10.6)

@zyga
Copy link
Owner

zyga commented Dec 5, 2011

Good point, would you like to provide a few lines of documentation in the README file for that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants