pybliometrics-dev / pybliometrics

Python-based API-Wrapper to access Scopus
https://pybliometrics.readthedocs.io/en/stable/
Other
407 stars 127 forks source link

TypeError: create_config() takes 0 positional arguments but 1 was given #252

Closed gchlepos closed 2 years ago

gchlepos commented 2 years ago

I can't use the prompt to enter the api key so im trying to provide the optional parameter(api_key) to create_config but I get this error: TypeError: create_config() takes 0 positional arguments but 1 was given. Is there any other way to to submit my api_key without using the prompt? Thanks!!

Michael-E-Rose commented 2 years ago

Which version of pybliometrics are you using?

gchlepos commented 2 years ago

I am using 3.1.0

Michael-E-Rose commented 2 years ago

And how do you think is code, that was introduced in in 3.2.0 supposed to work for your case?

Lessons learned:

  1. Always upgrade your package before thinking about writing an issue
  2. Do not remove the template in the issue, which clearly asks you to state the version you are using.