Closed johenkel closed 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.
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
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.
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 :)
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
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.