Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named "Queue" #16

Open
Hatom1K opened this issue Jul 17, 2018 · 5 comments
Open

No module named "Queue" #16

Hatom1K opened this issue Jul 17, 2018 · 5 comments

Comments

@Hatom1K
Copy link

Hatom1K commented Jul 17, 2018

I have an issue when i try this API.

When i launch my .py file, i have this error:

root@jeedomVM:/var/www/html/plugins/dyson# python script.py 
Traceback (most recent call last):
  File "script.py", line 1, in <module>
    from libpurecoollink.dyson import DysonAccount
  File "/usr/local/lib/python2.7/dist-packages/libpurecoollink/dyson.py", line 10, in <module>
    from .dyson_360_eye import Dyson360Eye
  File "/usr/local/lib/python2.7/dist-packages/libpurecoollink/dyson_360_eye.py", line 10, in <module>
    from .dyson_device import DysonDevice, NetworkDevice, DEFAULT_PORT
  File "/usr/local/lib/python2.7/dist-packages/libpurecoollink/dyson_device.py", line 5, in <module>
    from queue import Queue
ImportError: No module named queue

Thanks

@exking
Copy link

exking commented Jul 17, 2018

use python3

@Hatom1K
Copy link
Author

Hatom1K commented Jul 17, 2018

Ok done, it's okay.
But now i find nothing on my dyson account::

root@jeedomVM:/var/www/html/plugins/dyson# python3 script.py 
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:845: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
Traceback (most recent call last):
  File "script.py", line 21, in <module>
    connected = devices[0].connect("192.168.1.14")
IndexError: list index out of range

i can intereact with my fan by the android app .. :/

@TheLion
Copy link

TheLion commented Jul 22, 2018

I have the same "list index out of range" error with my DP04 and using Python3.

@exking
Copy link

exking commented Jul 22, 2018

New TP04 and DP04 machines are only supported with PR#15 which @CharlesBlonde is yet to merge...

@TheLion
Copy link

TheLion commented Jul 22, 2018

OK, thanks. Will keep an eye out for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants