blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.71k stars 304 forks source link

plex_api_invite.py error: the following arguments are required: --user #245

Closed sirloinofbeef closed 4 years ago

sirloinofbeef commented 4 years ago

Describe the bug When trying to invite a user I get "error: the following arguments are required: --user"

Link to script with bug/issue plex_api_invite.py

To Reproduce Steps to reproduce the behavior: 1.Execute plex_api_invite.py --allLibraries --user USERXXX (where USERXXX is a valid username which I can add / remove from Plex manually)

  1. Receive error "error: the following arguments are required: --user"

Expected behavior Add USERXXX to Plex and share all libraries

Desktop (please complete the following information):

Additional context I have tried various usernames and variations, all with the same result.

blacktwin commented 4 years ago

I'm unable to confirm on my end. Can you provide a screenshot/copy&paste of your terminal showing the command executed and the error?

sirloinofbeef commented 4 years ago
Screenshot 2020-10-02 231424
blacktwin commented 4 years ago

image image

Worked on python 3.7 and 3.8. Weird. You're not misspelling --user and there is nothing appended to it. Try without --allLibraries and just the --user USER.

sirloinofbeef commented 4 years ago

Solved! --user was not the issue. It seems adding 'python' to the start of the command makes a difference :)