richard-better / pushbullet.py

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

ImportError: cannot import name Pushbullet #134

Closed Cristianistrate closed 5 years ago

Cristianistrate commented 6 years ago

Hi, After I installed the lib on 2.7 Win x64 it worked. After reboot I got cannot import Pushbullet The solution: uninstall Python, reinstall and it works but after first reboot the same issue. Please help. On Raspbian is ok!

simonporter007 commented 6 years ago

How did you install the library? Are you using virtualenv or anything similar? Have you searched the sys.path for the pushbulletpy dir?

import sys
for path in sys.path:
  print(path)
Cristianistrate commented 6 years ago

Install: python setup.py install no virtualenv result from print(path):

C:/Python27 C:\Python27\Lib\idlelib C:\WINDOWS\SYSTEM32\python27.zip C:\Python27\DLLs C:\Python27\lib C:\Python27\lib\plat-win C:\Python27\lib\lib-tk C:\Python27 C:\Python27\lib\site-packages

simonporter007 commented 6 years ago

Can you confirm pushbullet directory gets created in site-packages once you install first time? Is it there on the next reboot?

If the directory is removed it sounds like there's some external issue going on. pushbulletpy certainly shouldn't unload itself from site-packages.

Cristianistrate commented 6 years ago

Yes: C:\Python27\Lib\site-packages\pushbullet

simonporter007 commented 6 years ago

And does it exist on reboot?

Cristianistrate commented 6 years ago

Yes

simonporter007 commented 6 years ago

It doesn't sound like an issue with pushbulletpy then. Good luck.