Closed paschulke closed 2 days ago
Dear @paschulke, sorry for this.
For the 404 error, this (and another problem regarding user matching) should be already resolved in the latest dev branch. The f-string does not cause any problems in my Python version (3.12.1), which is why I never encountered this error. I fixed it for you (also in the dev branch).
I am currently working on a larger update so it will take me a while to merge into the master. Thank you for your patience.
Best, Julia
Issue Summary
When attempting to import data from OpenAlex using the
import_data.py
script in OSIRIS v1.3.6, the following errors occur:Error with
HTTPError: 404
:Using a custom
config.ini
file results in a404 Client Error: NOT FOUND
for certainissn
values during the execution ofopenalex_parser.py
. This error also occurs when using the defaultconfig.default.ini
, but with differentissn
values.Syntax error in
openalex_parser.py
on line 156:A syntax error occurs due to incorrect usage of f-string formatting in the code, causing an unmatched
[
inprint(f'Activity type {work['type']} is unknown (DOI: {doi}).')
. The error is resolved by replacing{work['type']}
with{work["type"]}
.Error with custom
config.ini
:Error with default
config.default.ini
:Syntax error in
openalex_parser.py
(line 156):Steps to Reproduce
import_data.py
using either customconfig.ini
orconfig.default.ini
.issn
values in the API requests.openalex_parser.py
.Affected Version
v1.3.6
Pip Environment
Workaround
For the syntax error on line 156 of
openalex_parser.py
, I replaced:with: