question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: apikey argument is now required

See original GitHub issue

I’m getting an error when trying to run:

####################
# Starting tvnamer
# Found 92 episodes
Traceback (most recent call last):
  File "/usr/local/bin/tvnamer", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/tvnamer/main.py", line 449, in main
    tvnamer(paths = sorted(args))
  File "/usr/local/lib/python2.7/dist-packages/tvnamer/main.py", line 351, in tvnamer
    cache=cache,
  File "/usr/local/lib/python2.7/dist-packages/tvdb_api.py", line 681, in __init__
    raise ValueError("apikey argument is now required - an API key can be easily registered at https://thetvdb.com/api-information")
ValueError: apikey argument is now required - an API key can be easily registered at https://thetvdb.com/api-information

I see you added an API key ~3 months ago, but that doesn’t seem to be released, at least in pip (it’s not the version I get when I pip install tvnamer).

It also seems like we maybe should have a way to define an API key in the config, so we can use our own API key and not have to rely on a centralized one.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dbrcommented, Jun 28, 2020

I’ve released tvnamer 2.5.1 which should address this:

(tvntest) [dbr@slate:~]$ pip install tvnamer==2.5.0
(tvntest) [dbr@slate:~]$ touch lost.s01e01.avi
(tvntest) [dbr@slate:~]$ tvnamer lost.s01e01.avi
[...snip...]
ValueError: apikey argument is now required - an API key can be easily registered at https://thetvdb.com/api-information
(tvntest) [dbr@slate:~]$ pip install --upgrade tvnamer
[...snip...]
Successfully installed tvdb-api-2.0 tvnamer-2.5.1
(tvntest) [dbr@slate:~]$ tvnamer lost.s01e01.avi
[...snip...]
####################
Old filename: lost.s01e01.avi
New filename: Lost - [01x01] - Pilot (1).avi
Rename?
([y]/n/a/q)
1reaction
dbrcommented, Jun 27, 2020

Being able to use your own API key is a good idea also; I’ve split that into a separate ticket #183

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Missing required arguments: api-key, api-secret" with correct ...
Passing secrets on command line is generally not a good idea.
Read more >
Why I get error "This service requires an API key"?
As described in the documentation of text search, the parameter need to be in GET method. You supplied it as POST.
Read more >
Solved: Error: "Label and key in API Key can not be empty"...
In the Security section of the Custom Connector wizard, I set the Authentication Type as "API Key". And I set the Parameter Label...
Read more >
Error Messages | Maps JavaScript API - Google Developers
If this error message persists you may need to get a new API key or create a new ... The signature parameter is...
Read more >
Why am I getting The API key is invalid error? - Zoho Cares
If you have registered your API key in EU domain(. eu) and configured API requests to US domain( .com), and vice versa, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found