manual Normalization failed with normalization.csv

16 views
Skip to first unread message

romain guedj

unread,
May 18, 2022, 2:09:23 AM5/18/22
to archivematica
Hi All,

Manual Normalization fails with AM 1.13.2. due to an option used to parse normalization.csv here: archivematica/fileOperations.py at stable/1.13.x · artefactual/archivematica (github.com) 
line 347
# use universal newline mode to support unusual newlines, like \r
with open(csv_path, "rbU") as csv_file:
        reader = csv.reader(csv_file)
        
instead of 
# use universal newline mode to support unusual newlines, like \r
    with open(csv_path, "rU") as csv_file:
        reader = csv.reader(csv_file)

The binary option failed. It has been changed to another part of the code when AM parses metadata.csv :
archivematica/archivematicaCreateMETSMetadataCSV.py at stable/1.13.x · artefactual/archivematica (github.com)
line 101

# use universal newline mode to support unusual newlines, like \r
with open(metadataCSVFilePath, "rU") as f:
     reader = csv.reader(f)

here the option b has been removed from the AM 1.12
line 100

# use universal newline mode to support unusual newlines, like \r
with open(metadataCSVFilePath, "rbU") as f:
    reader = csv.reader(f)


Sarah Romkey

unread,
May 18, 2022, 3:31:11 AM5/18/22
to archiv...@googlegroups.com
Hi Romain,

Thanks for your detailed report, appreciate it!

Sarah Romkey, MAS,MLIS
Archivematica Program Manager
@archivematica / @accesstomemory




--
You received this message because you are subscribed to the Google Groups "archivematica" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archivematic...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archivematica/6a3407fa-9d82-44a2-b2dd-253b8f0e3125n%40googlegroups.com.

Guedj Romain

unread,
May 18, 2022, 4:36:59 AM5/18/22
to archiv...@googlegroups.com

Hi Sarah,

You are welcome!

 

Cheers,

 

Meilleures salutations

 

Romain Guedj, e-Archiviste

Romain...@fr.ch, T +41 26 305 13 74

Bibliothèque cantonale et universitaire BCU

Kantons- und Universitätsbibliothek KUB

Secteur technologies du web et infrastructure informatique

Abteilung Webtechnologien und Informatik-Infrastruktur

Rue de la Carrière 22, Case postale, 1701 Fribourg

T +41 26 305 13 33, www.fr.ch/bcuf

Direction de la formation et des affaires culturelles DFAC
Direktion für Bildung und kulturelle Angelegenheiten BKAD

ETAT DE FRIBOURG

STAAT FREIBURG

 

P Be green ! Keep it on the screen…

 

De : archiv...@googlegroups.com <archiv...@googlegroups.com> De la part de Sarah Romkey
Envoyé : mercredi 18 mai 2022 09:31
À : archiv...@googlegroups.com
Objet : Re: [archivematica] manual Normalization failed with normalization.csv

Reply all
Reply to author
Forward
0 new messages