I hate this. Its fixed (stable) for the time being, but cant clearly identify the cause. I'm sure that there is a still memory leak and it may appear again.. Early in the process, Ubuntu was acting similarly to Windows 7 i.e. consuming memory when importing the csv file and eventually failing.
Steps taken were: - installed psycopg2 (still had issues) - took the table definition in the DAL back to the first few fields (imported OK) - Gradually added the fields back in (import OK on each iteration) - when the complete/ original table imported, re imported the entire app data (OK) The table definition in the DAL has approx 150 fields (and string fields had been left at their default length) --