Troubleshooting

Obtaining sunpy version

To find out your sunpy version number, import it and print the __version__ attribute:

>>> import sunpy   
>>> sunpy.__version__   

System Info

To quickly collect information on your system, you can use our convenience function system_info which you can run through:

>>> import sunpy
>>> sunpy.util.system_info()   

The output should look something like:

==========================================================
 SunPy Installation Information

 Sunday, 18. November 2012 11:06PM UT
==========================================================

###########
 General
###########
OS: Mac OS X 10.8.2 (i386)
Python: 2.7.3 (64bit)

####################
 Required libraries
####################
SunPy: 0.1
NumPy: 1.6.2
SciPy: 0.10.1
Matplotlib: 1.2.x
PyFITS: 3.0.8
pandas: 0.8.1

#######################
 Recommended libraries
#######################
beautifulsoup4: 4.1.1
PyQt: 4.9.4
SUDS: 0.4'

This information is especially useful if you are running into a bug and need help.

sunpy install location

You can find what directory sunpy is installed in by importing it and printing the __file__ attribute:

>>> import sunpy   
>>> sunpy.__file__   

.sunpy directory location

Each user should have a .sunpy/ directory which should contain a sunpyrc file. To locate your .sunpy/ directory, use sunpy.print_config():

>>> import sunpy as sun   
>>> sun.print_config()   

On unix-like systems, this directory is generally located in your HOME directory. On windows, it is in your documents and settings directory by default.

If you would like to use a different configuration directory, you can do so by specifying the location in your SUNPY_CONFIGDIR environment variable.