studioimaginaire / phue

A Python library for the Philips Hue system
Other
1.53k stars 267 forks source link

Can not import Bridge #91

Closed neodd70 closed 7 years ago

neodd70 commented 7 years ago

I am trying to set this up and please forgive me as I am new to this but after I installed phue I tried to do a test and I keep getting this error

Traceback (most recent call last): File "phue.py", line 2, in from phue import Bridge File "/home/mike/hue/phue.py", line 2, in from phue import Bridge ImportError: cannot import name Bridge

can anyone shed some light as to what might be causing this error?

natcl commented 7 years ago

Sounds like the library is not installed properly, how did you install it ?

demosdemon commented 7 years ago

Your script can't be called phue.py and also import a module called phue. Python treats that as a recursive import. Rename your script file to anything else.