scottrice / Ice

Application to automatically add ROMs to Steam
http://scottrice.github.io/Ice/
MIT License
834 stars 96 forks source link

[TypeError:'NoneType' object is not iterable] when exec python -m ice #406

Open Marukesu opened 7 years ago

Marukesu commented 7 years ago

when I run python -m ice happens this error:

gustavo@IamSad:~/Downloads/Ice-master$ python -m ice.py
/usr/bin/python: No module named ice.py
gustavo@IamSad:~/Downloads/Ice-master$ sudo python -m ice.py
/usr/bin/python: No module named ice.py
gustavo@IamSad:~/Downloads/Ice-master$ sudo python -m ice
[ERROR] An exception occurred while running Ice
Traceback (most recent call last):
  File "ice/decorators.py", line 10, in wrapped
    func(*args, **kwargs)
  File "ice/cli/runner.py", line 84, in run
    self.get_steam(app_settings.config),
  File "ice/tasks/engine.py", line 27, in __init__
    self.users = filter(is_user_context, steam_module.local_user_contexts(self.steam))
TypeError: 'NoneType' object is not iterable

Close the window, or hit enter to exit...
balthazarbux commented 7 years ago

Have you tried installing python-dev?

sudo apt-get install python-dev

mdhausman commented 7 years ago

I'm having this same problem. I am using python-dev and followed the instructions.

maura@Mephistopheles:~/Software/Ice$ python --version
Python 2.7.12
maura@Mephistopheles:~/Software/Ice$ python -m ice
[ERROR] An exception occurred while running Ice
Traceback (most recent call last):
  File "ice/decorators.py", line 10, in wrapped
    func(*args, **kwargs)
  File "ice/cli/runner.py", line 84, in run
    self.get_steam(app_settings.config),
  File "ice/tasks/engine.py", line 27, in __init__
    self.users = filter(is_user_context, steam_module.local_user_contexts(self.steam))
TypeError: 'NoneType' object is not iterable

Close the window, or hit enter to exit...

maura@Mephistopheles:~/Software/Ice$ 
indivisible commented 7 years ago

pysteam has a hardcoded path for linux that is sometimes incorrect. Try running ln -s ~/.steam/steam ~/.local/share/Steam in a terminal, it will probably fix it.

But this should really be fixed in the pysteam module.