pybliometrics-dev / pybliometrics

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

"'fname' is not defined" error after not adding Authtoken #110

Closed katrinleinweber closed 5 years ago

katrinleinweber commented 5 years ago

Hello and thanks for publishing this tool!

I just tried the ScopusSearch example with Python 3.7.4 installed on Windows 8.1, applied the "issue pybliometrics.scopus.utils.create_config() to start" advice and pasted my API Key.

At the "Authtoken authentication", I "press[ed] Enter" and this was returned.

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\...\AppData\Roaming\Python\Python37\site-packages\pybliometrics\scopus\utils\create_config.py", line 44, in create_config
    print("Configuration file successfully created at {}".format(fname))
NameError: name 'fname' is not defined

However, the config file looks OK, and the examples run fine.

Michael-E-Rose commented 5 years ago

I guess this one was fixed with #108. It's just not live yet. But the development version is already functional.

Michael-E-Rose commented 5 years ago

The patch is live in 2.1.3

katrinleinweber commented 5 years ago

Ah, OK! I searched for NameError and only found another, apparently unrelated issue. Thanks for https://github.com/pybliometrics-dev/pybliometrics/commit/35a2bae54f524194616c733678a4064af324244b :-)