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

'NoneType' object is not iterable #81

Open
tmaier opened this issue Nov 10, 2018 · 3 comments
Open

'NoneType' object is not iterable #81

tmaier opened this issue Nov 10, 2018 · 3 comments

Comments

@tmaier
Copy link

tmaier commented Nov 10, 2018

I get the error 'NoneType' object is not iterable with socos.

socos> set 192.168.178.31
'NoneType' object is not iterable
socos> list
'NoneType' object is not iterable

I reproduced this also with a barebone docker container (to have a consistent environment)
$ docker container run --rm -ti --entrypoint=/bin/bash python and then pip install socos

@tLupus1978
Copy link

got the same issue.
Executed
import soco for zone in soco.discover(): print(zone.player_name)
and got:
Traceback (most recent call last): File "find.py", line 2, in <module> for zone in soco.discover(): TypeError: 'NoneType' object is not iterable

@JessaTehCrow
Copy link

I found out that it works after nmapping the network.
try: nmap -sn [localip]/24
and after that, rerun the soco.discover() and it'll work.. weird workaround but it works, for me atleast

@a3020
Copy link

a3020 commented Apr 28, 2019

I think this is related to SoCo/SoCo#662 (PR) and SoCo/SoCo#660 (issue)

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