Re: [Arches] Issues exporting data from V3

2017-09-19 Thread Adam Cox
Hi Darcy, this may not be the most elegant answer, but with the basic testing I can do now I believe it will work. Add the following function to the top of the file in question , right under the im

Re: [Arches] Issues exporting data from V3

2017-09-18 Thread Darcy Christ
Hi Adam, Still not sure how to get past this. I see it is an n-dash (I should have looked this up, rather than assumed it was related to Chinese). The question for me is why is this code assuming all ascii since it allowed an ndash into the database? Is there a way to fix this code, rather upd

Re: [Arches] Issues exporting data from V3

2017-09-15 Thread Adam Cox
Darcy, it looks like this is not a chinese character, but a long dash. This issue seems to be well-summed up in this stack exchange answer: https://stackoverflow.com/a/5387966/3873885 Essentially, in this line csvwriter.writerow({k: str(v).encode('utf8') for k, v in csv_record.items()}) the str

[Arches] Issues exporting data from V3

2017-09-14 Thread Darcy Christ
I am having trouble exporting data from v3 I have add this to my config: EXPORT_CONFIG = os.path.normpath(os.path.join(PACKAGE_ROOT, 'source_data', 'business_data', 'resource_export_mappings.json')) And then I get an error while trying to export. Given that it is related to encoding, could it