(test)www-data@aws:~$ python
Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
[GCC 4.3.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
»> from pit import Pit
»> Pit.get(‘tactserver-twitter’)
Traceback (most recent call last):
File “”, line 1, in
File “/home/www/.ve/test/lib/python2.5/site-packages/pit.py”, line 42,
in get
load_data = Pit._load()
File “/home/www/.ve/test/lib/python2.5/site-packages/pit.py”, line 77,
in _load
Pit.switch(Pit.config()[‘profile’])
TypeError: ‘NoneType’ object is unsubscriptable (test)www-data@aws:~$ python
Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
[GCC 4.3.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
»> from pit import Pit
»> print Pit.config()
None »> Pit._config
‘/home/www/.pit/pit.yaml’ (admin)www-data@aws:~/.pit$ ls -l /home/www/.pit/pit.yaml
-rw———- 1 www-data www-data 0 2010-01-15 13:10 /home/www/.pit/pit.yaml (admin)www-data@aws:~/.pit$ echo “profile: default” >
/home/www/.pit/pit.yaml »> Pit.config()
{‘profile’: ‘default’} »> Pit.get(‘hogehoge’)
{‘username’: ‘hoge’, ‘password’: ‘hoge’}
Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
[GCC 4.3.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
»> from pit import Pit
»> Pit.get(‘tactserver-twitter’)
Traceback (most recent call last):
File “”, line 1, in
File “/home/www/.ve/test/lib/python2.5/site-packages/pit.py”, line 42,
in get
load_data = Pit._load()
File “/home/www/.ve/test/lib/python2.5/site-packages/pit.py”, line 77,
in _load
Pit.switch(Pit.config()[‘profile’])
TypeError: ‘NoneType’ object is unsubscriptable (test)www-data@aws:~$ python
Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
[GCC 4.3.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
»> from pit import Pit
»> print Pit.config()
None »> Pit._config
‘/home/www/.pit/pit.yaml’ (admin)www-data@aws:~/.pit$ ls -l /home/www/.pit/pit.yaml
-rw———- 1 www-data www-data 0 2010-01-15 13:10 /home/www/.pit/pit.yaml (admin)www-data@aws:~/.pit$ echo “profile: default” >
/home/www/.pit/pit.yaml »> Pit.config()
{‘profile’: ‘default’} »> Pit.get(‘hogehoge’)
{‘username’: ‘hoge’, ‘password’: ‘hoge’}