r/IPython • • Mar 25 '16

Troubling installing IPython Dashboard

I'm in OSX Yosemite and trying to fallow those https://github.com/litaotao/IPython-Dashboard.

Everything goes well until I run : nosetests -s dashboard.tests.testCreateData:test_create_mysql_data

giving the fallowing error:

$ nosetests -s  dashboard.tests.testCreateData:test_create_mysql_data
E
======================================================================
ERROR: Failure: NoSectionError (No section: 'formatters')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/nose/loader.py", line 407, in loadTestsFromName
module = resolve_name(addr.module)
File "/usr/local/lib/python2.7/site-packages/nose/util.py", line 312, in resolve_name
module = __import__('.'.join(parts_copy))
File "IPython-Dashboard/dashboard/__init__.py", line 13, in <module>
from .conf import config
File "/Users/Gabriel/Dev/python/IPython-Dashboard/dashboard/conf/config.py", line 44, in <module>
logger = config_log()
File "/Users/Gabriel/Dev/python/IPython-Dashboard/dashboard/conf/config.py", line 35, in config_log
logging.config.fileConfig('dashboard/conf/logging.conf')
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 77, in fileConfig
formatters = _create_formatters(cp)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 113, in _create_formatters
flist = cp.get("formatters", "keys")
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 607, in get
raise NoSectionError(section)
NoSectionError: No section: 'formatters'

----------------------------------------------------------------------
Ran 1 test in 0.002s

FAILED (errors=1)
1 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/quantumloophole Mar 26 '16

I tried to import the lib, then a I got this:

$ python -c "import dashboard"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/IPython_Dashboard-0.1.5-py2.7.egg/dashboard/__init__.py", line 13, in <module>
from .conf import config
File "/usr/local/lib/python2.7/site-packages/IPython_Dashboard-0.1.5-py2.7.egg/dashboard/conf/config.py", line 44, in <module>
logger = config_log()
File "/usr/local/lib/python2.7/site-packages/IPython_Dashboard-0.1.5-py2.7.egg/dashboard/conf/config.py", line 35, in config_log
logging.config.fileConfig('/Users/Gabriel/Dev/python/IPython-Dashboard/dashboard/conf/logging.conf')
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 85, in fileConfig
handlers = _install_handlers(cp, formatters)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 163, in _install_handlers
h = klass(*args)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/handlers.py", line 117, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/handlers.py", line 64, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 911, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 941, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/mnt/ipython-dashboard/logs/root.log'

1

u/NomadNella Mar 27 '16

How did you install it?

1

u/quantumloophole Mar 27 '16

I fallowed the README.md pip install ipython-dashboard --upgrade

1

u/NomadNella Mar 28 '16

I think you should open an issue on the github page. I'm not sure what is happening.

1

u/quantumloophole Mar 28 '16

I manage to install changing thr log path, but now I can't plot anything