GustavoKatel / pushbullet-cli

Access Pushbullet from the command line
MIT License
282 stars 31 forks source link

Can't seem to push any text/link/file #59

Closed johenkel closed 5 years ago

johenkel commented 5 years ago

I am using pushbullet-cli v 0.7.6 on Ubuntu 18.04 / python 3.5

I can use pb to send a text message (sms) but cannot use it to push simple text/link or a file. It throws an error shown below:

`johenkel@localhost:~$ pb list-devices

  1. Chrome
  2. Motorola XT1585

johenkel@localhost:~$ pb push "test" Traceback (most recent call last): File "/usr/local/bin/pb", line 11, in sys.exit(main()) File "/usr/local/lib/python3.5/site-packages/click/core.py", line 764, in call return self.main(args, kwargs) File "/usr/local/lib/python3.5/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.5/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.5/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/local/lib/python3.5/site-packages/click/core.py", line 555, in invoke return callback(args, **kwargs) TypeError: push() got an unexpected keyword argument 'file'`

Not sure where to start to figure the problem. Any help would be appreciated.

Twizzes commented 5 years ago

I got the same error. It looks like the pypi repository for pushbullet-cli is out of date/has a bug...

If you run these commands on windows, you will install the latest pushbullet-cli and it should work:

git clone "https://github.com/GustavoKatel/pushbullet-cli.git"

cd .\pushbullet-cli\

python setup.py install

Running the equivalent code on unix should work, as well.

clove3am commented 5 years ago

Thanks @Twizzes. Got it working in Ubuntu with the following code, adapted from your comment.

git clone --depth=1 https://github.com/GustavoKatel/pushbullet-cli.git && \
cd ~/pushbullet-cli && \
python setup.py install --user && \
rm -rfv ~/pushbullet-cli
GustavoKatel commented 5 years ago

Thank you for pointing this. There's a compatibility issue with some Click versions. I have fixed in the repo, but I didn't had time to release in PyPI yet. I should upload it soon tho.

GustavoKatel commented 5 years ago

I've just pushed a new version to PyPi. Feel free to install from it, if you'd like and re-open this issue if any problems. Thanks :)