NYPL / ami-tools

MIT License
16 stars 6 forks source link

undetermined installation issue #30

Closed bturkus closed 3 years ago

bturkus commented 6 years ago

not sure what's causing this...help!

NYPLPAMIC04sPro:~ nypl_pami_c04$ pamidb_to_json.py -i /Users/nypl_pami_c04/Documents/JSON_Export/2019_003_pami_090_wilson2.mer -o /Volumes/NYPL_15968/2019_003_pami_090_wilson2/PreservationMasters 

/usr/local/bin/pamidb_to_json.py: line 1: import: command not found

/usr/local/bin/pamidb_to_json.py: line 2: import: command not found

/usr/local/bin/pamidb_to_json.py: line 3: import: command not found

/usr/local/bin/pamidb_to_json.py: line 5: dtypes: command not found

/usr/local/bin/pamidb_to_json.py: line 6: digitizationProcess.analogDigitalConverter.serialNumber:: command not found

/usr/local/bin/pamidb_to_json.py: line 7: digitizationProcess.captureSoftware.version:: command not found

/usr/local/bin/pamidb_to_json.py: line 8: digitizationProcess.playbackDevice.serialNumber:: command not found

/usr/local/bin/pamidb_to_json.py: line 9: digitizationProcess.timeBaseCorrector.serialNumber:: command not found

/usr/local/bin/pamidb_to_json.py: line 10: digitizationProcess.phonoPreamp.serialNumber:: command not found

/usr/local/bin/pamidb_to_json.py: line 11: physicalDescription.properties.stockProductID:: command not found

/usr/local/bin/pamidb_to_json.py: line 12: syntax error near unexpected token `}'

/usr/local/bin/pamidb_to_json.py: line 12: `}'
nkrabben commented 6 years ago

Seems to be parsing the python script incorrectly. Does it work if you python3 path/to/script?

On Tue, Jul 31, 2018, 11:20 bturkus notifications@github.com wrote:

not sure what's causing this...help!

NYPLPAMIC04sPro:~ nypl_pami_c04$ pamidb_to_json.py -i /Users/nypl_pami_c04/Documents/JSON_Export/2019_003_pami_090_wilson2.mer -o /Volumes/NYPL_15968/2019_003_pami_090_wilson2/PreservationMasters

/usr/local/bin/pamidb_to_json.py: line 1: import: command not found

/usr/local/bin/pamidb_to_json.py: line 2: import: command not found

/usr/local/bin/pamidb_to_json.py: line 3: import: command not found

/usr/local/bin/pamidb_to_json.py: line 5: dtypes: command not found

/usr/local/bin/pamidb_to_json.py: line 6: digitizationProcess.analogDigitalConverter.serialNumber:: command not found

/usr/local/bin/pamidb_to_json.py: line 7: digitizationProcess.captureSoftware.version:: command not found

/usr/local/bin/pamidb_to_json.py: line 8: digitizationProcess.playbackDevice.serialNumber:: command not found

/usr/local/bin/pamidb_to_json.py: line 9: digitizationProcess.timeBaseCorrector.serialNumber:: command not found

/usr/local/bin/pamidb_to_json.py: line 10: digitizationProcess.phonoPreamp.serialNumber:: command not found

/usr/local/bin/pamidb_to_json.py: line 11: physicalDescription.properties.stockProductID:: command not found

/usr/local/bin/pamidb_to_json.py: line 12: syntax error near unexpected token `}'

/usr/local/bin/pamidb_to_json.py: line 12: `}'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NYPL/ami-tools/issues/30, or mute the thread https://github.com/notifications/unsubscribe-auth/ADV8vyedRRXkCwNRcW3fcH0Z0xLaVaj0ks5uMHXTgaJpZM4Vod7t .

-- Head of Digital Preservation, NYPL Library Services Center 205B x39596

bturkus commented 6 years ago

we did try that; apologies for the terribly reported issue. with python3 at the head, we get:

 (null): can't open file 'pamidb_to_json.py': [Errno 2] No such file or directory
nkrabben commented 3 years ago

Is this still an issue? Will close if not.

bturkus commented 3 years ago

i'll close thanks