astropy/astropy — pull request #1126 by iguananaut (2013-07-19 23:22:48+00:00)
Title: python3 incompatibility in configuration.py when using virtualenv + python setup.py develop

This error occurs if I install astropy with `python3 setup.py develop` using virtual python. It does not occur if I use `python3 setup.py install`, or if I use the system-wide `python3` with `setup.py develop`. I'm testing with `astropy-0.2.2` (stable branch)

Here's the error:
```
regenerating default astroquery.cfg file
Generation of default configuration item failed! Stdout and stderr are shown below.
Stdout:

Stderr:
Traceback (most recent call last):
File "", line 1, in
File "/Volumes/disk5/Users/adam/repos/astropy/astropy/config/configuration.py", line 626, in generate_all_config_items
if isinstance(pkgornm, basestring):
NameError: global name 'basestring' is not defined

Traceback (most recent call last):
File "", line 1, in
File "./astroquery/__init__.py", line 16, in
from .version import version as __version__
File "./astroquery/version.py", line 3, in
from astropy.version_helpers import update_git_devstr, get_git_devstr
File "/Volumes/disk5/Users/adam/repos/astropy/astropy/__init__.py", line 126, in
from .logger import _init_log
File "/Volumes/disk5/Users/adam/repos/astropy/astropy/logger.py", line 45, in
"Threshold for the logging messages. Logging "
File "/Volumes/disk5/Users/adam/repos/astropy/astropy/config/configuration.py", line 140, in __init__
isinstance(defaultvalue, basestring)):
NameError: global name 'basestring' is not defined
```