This is an old revision of the document!
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:
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”.
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.
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.