denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

ddr import error when external_url and access_path fields filled #130

Closed pkikawa closed 5 years ago

pkikawa commented 5 years ago

error with external_url and access_path. was not seeing this behavior without the access_path field filled

AttributeError at _ui_collection_ddr-testing-40168_importfiles.txt

pkikawa commented 5 years ago

resolved. problem was between the keyboard and chair on my end

pkikawa commented 5 years ago

ddrimport_file_traceback.txt

pkikawa commented 5 years ago

i think this is related to the line breaks that we were seeing in libre office. we saw something similar before with topics which is why we moved to the -- rather than ;?

gjost commented 5 years ago

Can you upload a copy of the CSV you're trying to import? I can't replicate it if I don't know what the inputs are.

pkikawa commented 5 years ago

ddr-testing-40173-objects.zip

gjost commented 5 years ago

I get an error when importing ddr-testing-40173-objects.csv but it's a totally different one from ddrimport_file_traceback.txt.

$ ddrimport entity /tmp/ddr-testing-40173-objects.csv /var/www/media/ddr/ddr-testing-40173/
...
2019-04-08 12:32:53,652 INFO     Validating headers
2019-04-08 12:32:53,653 ERROR    Bad headers
2019-04-08 12:32:53,653 ERROR    *
2019-04-08 12:32:53,653 ERROR    *
2019-04-08 12:32:53,654 ERROR    FAIL
2019-04-08 12:32:53,654 INFO     Validating rows
2019-04-08 12:32:53,659 INFO     ok
2019-04-08 12:32:53,660 ERROR    FAIL
...

Also, the issue is about importing files, but since you reopened it everything is about importing entities.

pkikawa commented 5 years ago

I am having trouble replicating this error. gimmie a sec

pkikawa commented 5 years ago

what's the error you get when importing that test csv?

gjost commented 5 years ago

what's the error you get when importing that test csv?

The last block of code is what I see. (note: edited out a bunch of lines, just showing the part where it fails)

pkikawa commented 5 years ago

hmmm. i am still unable to replicate this so it probably was user error (mine) initially. if i cannot replicate this within a couple of hours i will reclose this issue. again

pkikawa commented 5 years ago

cannot replicate