richard-better / pushbullet.py

A python client for http://pushbullet.com
MIT License
575 stars 110 forks source link

No module named Pushbullet #89

Closed kamos69 closed 8 years ago

kamos69 commented 8 years ago

I'm using pushbullet for the first time and having some trouble. I've installed pushbullet.py but when I do from pushbullet import Pushbullet I get ImportError: No module named pushbullet error.

[kamos@Boxee-Ubuntu-1604]:(4.9kb)~$ python
Python 2.7.11+ (default, Apr 17 2016, 14:00:29)
[GCC 5.3.1 20160413] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pushbullet import Pushbullet
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pushbullet
[kamos@Boxee-Ubuntu-1604]:(4.9kb)~$ ls -l /usr/local/lib/python3.5/dist-packages
total 120
drwxr-sr-x  7 root staff  4096 Jul 20 10:59 acdcli
drwxr-sr-x  2 root staff  4096 Jul 20 10:59 acdcli-0.3.1.egg-info
drwxr-sr-x  3 root staff  4096 Jul 20 10:59 colorama
drwxr-sr-x  2 root staff  4096 Jul 20 10:59 colorama-0.3.7.dist-info
drwxr-sr-x  5 root staff  4096 Jul 20 10:59 dateutil
-rw-r--r--  1 root staff   217 Jul 20 10:57 easy-install.pth
-rw-r--r--  1 root staff 31017 Apr  5 02:19 fuse.py
drwxr-sr-x  2 root staff  4096 Jul 20 10:59 fusepy-2.0.4.egg-info
-rw-r--r--  1 root staff  9127 Jun  6 00:52 magic.py
drwxr-sr-x  4 root staff  4096 Jul 20 10:57 pip-8.1.2-py3.5.egg
drwxr-sr-x  3 root staff  4096 Jul 26 14:23 pushbullet
drwxr-sr-x  2 root staff  4096 Jul 26 14:23 pushbullet.py-0.10.0.dist-info
drwxr-sr-x  2 root staff  4096 Jul 26 14:23 __pycache__
drwxr-sr-x  2 root staff  4096 Jul 20 10:59 python_dateutil-2.5.3.dist-info
drwxr-sr-x  2 root staff  4096 Jul 26 14:23 python_magic-0.4.12.egg-info
drwxr-sr-x  4 root staff  4096 Jul 20 10:59 requests
drwxr-sr-x  2 root staff  4096 Jul 20 10:59 requests-2.10.0.dist-info
drwxr-sr-x 10 root staff  4096 Jul 20 10:59 requests_toolbelt
drwxr-sr-x  2 root staff  4096 Jul 20 10:59 requests_toolbelt-0.6.2.dist-info
drwxr-sr-x  4 root staff  4096 Jul 26 14:23 websocket
drwxr-sr-x  2 root staff  4096 Jul 26 14:23 websocket_client-0.37.0.egg-info
kovacsbalu commented 8 years ago

Hi @KaMoS69

You try to import pushbullet from py27 but you installed for py3.5?!

kamos69 commented 8 years ago

Please forgive my ignorance but I'm not quite sure what you mean @kovacsbalu ? Am I importing the module incorrectly? If so, what is the correct way of doing so?

kovacsbalu commented 8 years ago

[kamos@Boxee-Ubuntu-1604]:(4.9kb)~$ python Python 2.7.11+ (default, Apr 17 2016, 14:00:29) [GCC 5.3.1 20160413] on linux2

[kamos@Boxee-Ubuntu-1604]:(4.9kb)~$ ls -l /usr/local/lib/python3.5/dist-packages total 120

Can you please try the import with python3.5?

kamos69 commented 8 years ago

Got it. I'm an idiot. Thanks!

kovacsbalu commented 8 years ago

Cheers!

craig14 commented 4 years ago

worked for me too, thanks @kovacsbalu pip3 install pushbullet.py==0.10.0

sarwat33 commented 2 years ago

If anyone is having problem regarding the python version of pushbullet to run on pythonanywhere then try using the command "pip3.9 install --user pushbullet.py"