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

AttributeError: 'TuyaScanner' object has no attribute 'transport' #12

Open
zeroand1 opened this issue Sep 21, 2020 · 7 comments
Open

AttributeError: 'TuyaScanner' object has no attribute 'transport' #12

zeroand1 opened this issue Sep 21, 2020 · 7 comments

Comments

@zeroand1
Copy link

python -m aiotuya -e **********@gmail.com -p ********** -s Meepo -P ********** -d
DEBUG: Using selector: SelectSelector
Hit "Enter" to start
Use Ctrl-C to quit

Traceback (most recent call last):
File "C:\Users\samar\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\samar\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\Study Work\Story\Valorant\new_env\lib\site-packages\aiotuya_main
.py", line 240, in
scanner.close()
File "D:\Study Work\Story\Valorant\new_env\lib\site-packages\aiotuya\aiotuya.py", line 794, in close
if self.transport:
AttributeError: 'TuyaScanner' object has no attribute 'transport'
'

Is this an handled exception? Pls guide me.

@zeroand1 zeroand1 changed the title AttributeError: 'TuyaScanner' object has no attribute 'close' AttributeError: 'TuyaScanner' object has no attribute 'transport' Sep 21, 2020
@ashmoreinc
Copy link

Just getting the same Exception myself.

@michelvw
Copy link
Contributor

Ran into the same issue, fixed it by adding:
self.transport = None

on aiotuya.py line 768

@frawau
Copy link
Owner

frawau commented Jan 20, 2021 via email

@michelvw
Copy link
Contributor

I used the pip package and i am on win32. Not sure what @zeroand1 was using

@ashmoreinc
Copy link

Pip install and win64

@frawau
Copy link
Owner

frawau commented Jan 21, 2021 via email

@michelvw
Copy link
Contributor

I created PR #16

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

4 participants