From 4b1a31fd03e9649d56eff09739b7a881f3f24f49 Mon Sep 17 00:00:00 2001 From: J Hancock <123655328+J-A-Ha@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:47:44 +0100 Subject: [PATCH] fixing error in pybliometrics import --- art/importers/scopus.py | 2 +- pyproject.toml | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/art/importers/scopus.py b/art/importers/scopus.py index efa4f58..4460c12 100644 --- a/art/importers/scopus.py +++ b/art/importers/scopus.py @@ -8,7 +8,7 @@ import pybliometrics # type: ignore blockPrint() -pybliometrics.scopus.create_config(keys = [api_key]) +pybliometrics.scopus.init(keys = [api_key]) enablePrint() from pybliometrics.scopus import AbstractRetrieval, ScopusSearch # type: ignore diff --git a/pyproject.toml b/pyproject.toml index 213e2cf..5a633f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ "python-docx>=1.1.0", "python-igraph>=0.10.6", "python-Levenshtein>=0.25.0", - "pybliometrics", + "pybliometrics>=4.1", "pybtex", "igraph>=0.10.6", "Levenshtein>=0.25.0", diff --git a/requirements.txt b/requirements.txt index 7480e3b..4a53892 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ PyPDF2>=3.0.1 python-docx>=1.1.0 python-igraph>=0.10.6 python-Levenshtein>=0.25.0 -pybliometrics +pybliometrics>=4.1 pybtex igraph>=0.10.6 Levenshtein>=0.25.0