Still puzzling about this... Now I have tried to get ldap to really work. And got "Failed to load application: No module named flask_version". I did apt-get install python-flask, but it didn't help. I used sage -sh and said "easy_install flask", but just got "Flask 0.9 is already the active version in easy-install.pth"

Someone, somewhere, must have been able to use ldap with sage 5.x. In what system? Ubuntu, Fedora, Debian? 64bit, 32bit?

There is whole error message about flask:



root@sage:/usr/local/sage-5.1# sage
----------------------------------------------------------------------
| Sage Version 5.1, Release Date: 2012-07-09                         |
| Type "notebook()" for the browser-based notebook interface.        |
| Type "help()" for help.                                            |
----------------------------------------------------------------------
sage: notebook()
The notebook files are stored in: sage_notebook.sagenb
**************************************************
*                                                *
* Open your web browser to http://localhost:8080 *
*                                                *
**************************************************
Executing twistd --pidfile="sage_notebook.sagenb/sagenb.pid" -ny "sage_notebook.sagenb/twistedconf.tac"
Unhandled Error
Traceback (most recent call last):
File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 652, in run
    runApp(config)
File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/scripts/twistd.py", line 23, in runApp
    _SomeApplicationRunner(config).run()
File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 386, in run
    self.application = self.createOrGetApplication()
File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 451, in createOrGetApplication
    application = getApplication(self.config, passphrase)
--- <exception caught here> ---
File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 462, in getApplication
    application = service.loadApplication(filename, style, passphrase)
File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/application/service.py", line 405, in loadApplication application = sob.loadValueFromFile(filename, 'application', passphrase) File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-x86_64.egg/twisted/persisted/sob.py", line 210, in loadValueFromFile
    exec fileObj in d, d
  File "sage_notebook.sagenb/twistedconf.tac", line 15, in <module>
    import base as flask_base
File "/usr/local/sage-5.1/devel/sagenb/flask_version/base.py", line 87, in <module>
    base = Module('flask_version.base')
File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Flask-0.9-py2.7.egg/flask/module.py", line 39, in __init__
    subdomain=subdomain, template_folder='templates')
File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Flask-0.9-py2.7.egg/flask/blueprints.py", line 95, in __init__
    _PackageBoundObject.__init__(self, import_name, template_folder)
File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Flask-0.9-py2.7.egg/flask/helpers.py", line 786, in __init__
    self.root_path = get_root_path(self.import_name)
File "/usr/local/sage-5.1/local/lib/python2.7/site-packages/Flask-0.9-py2.7.egg/flask/helpers.py", line 676, in get_root_path
    loader = pkgutil.get_loader(import_name)
File "/usr/local/sage-5.1/local/lib/python/pkgutil.py", line 464, in get_loader
    return find_loader(fullname)
File "/usr/local/sage-5.1/local/lib/python/pkgutil.py", line 474, in find_loader
    for importer in iter_importers(fullname):
File "/usr/local/sage-5.1/local/lib/python/pkgutil.py", line 430, in iter_importers
    __import__(pkg)
exceptions.ImportError: No module named flask_version

Failed to load application: No module named flask_version

---------------------------------------------------------------------------
error Traceback (most recent call last)

/usr/local/sage-5.1/<ipython console> in <module>()

/usr/local/sage-5.1/local/lib/python2.7/site-packages/sagenb-0.10.1-py2.7.egg/sagenb/notebook/notebook_object.pyc in __call__(self, *args, **kwds)
    217     """
    218     def __call__(self, *args, **kwds):
--> 219         return self.notebook(*args, **kwds)
    220
    221     notebook = run_notebook.notebook_run

/usr/local/sage-5.1/local/lib/python2.7/site-packages/sagenb-0.10.1-py2.7.egg/sagenb/notebook/run_notebook.pyc in notebook_run(self, directory, port, interface, port_tries, secure, reset, accounts, openid, server_pool, ulimit, timeout, upload, automatic_login, start_path, fork, quiet, server, profile, subnets, require_login, open_viewer, address)
    614     os.chdir(cwd)
    615     if e == 256:
--> 616         raise socket.error
    617
    618 def get_admin_passwd():

error:
sage:


--
Jori Mäntysalo

--
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org



Reply via email to