Table of Contents


SOFA Won't Start

Sorry! But we can probably fix it. Make sure you are installing the latest version of SOFA Statistics Sourceforge SOFA downloads. Newer versions are sometimes better at handling problems.

Here are some things which might help:

Using Sofastats Recovery

Check to see if you have a local sofastats_recovery folder. E.g.

Next to your local sofastats_recovery folder should be a local sofastats folder. Delete your local “sofastats” folder and rename the “sofastats_recovery” folder to “sofastats”. When you restart SOFA Statistics, everything should now work.

:!: The “sofastats_recovery” folder only includes a clean install of the SOFA database, variable defintions and projects. Any modifications you have made will be lost if you wipe the “sofastats” folder. You can always keep a copy of your original “sofastats” folder so you can recover individual items e.g. the internal SOFA database from “sofastats/_internal/sofa_db”.

  1. Delete the sofastats folder
  2. Rename the sofastats_recovery folder to sofastats

Ask for Help

Specific Errors

AttributeError: 'module' object has no attribute 'DATA_DETS'

This problem may have happened on Windows when some old pyc files survived the upgrade. Solution: delete all pyc files (e.g. get_data.pyc) from your SOFA program folder e.g. C:\Program Files\sofastats. SOFA will rebuild the pyc files and they will be based on the latest code. How is this problem possible? If the pyc files were generated during the last install, but the py files are older than that install date.

Database locked

Does rebooting help?

If not, it may be necessary to start again with a fresh copy of the default database. If you're lucky, you haven't put anything into the default database yet, or your data was derived from a spreadsheet and you can re-import it. It is still not clear what causes this problem or how to properly fix it but there is a workaround of sorts. After closing SOFA, locate your default sofa database (e.g. “\Users\username\sofastats\_internal\sofa_db”). Rename it to “sofa_db_hide”, take a fresh copy of sofa_db from your sofa_recovery folder, and put it in the sofastats\_internal folder. Re-start SOFA and re-import any data etc.

Hopefully there will be a better solution at some point.