AttributeError: 'module' object has no attribute 'logger'


Y

youssef.mahdia

hi all, when installing sage, there is a problem with emacs.py
so, this screen appeared after rynning ./sage
----------------------------------------------------------------------
| Sage Version 4.4.2, Release Date: 2010-05-19 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/zid/sage/local/bin/sage-ipython", line 18, in <module>
import IPython
File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line
58, in <module>
__import__(name,glob,loc,[])
File "/usr/lib/python2.7/dist-packages/IPython/ipstruct.py", line
17, in <module>
from IPython.genutils import list2dict2
File "/usr/lib/python2.7/dist-packages/IPython/genutils.py", line
114, in <module>
import IPython.rlineimpl as readline
File "/usr/lib/python2.7/dist-packages/IPython/rlineimpl.py", line
18, in <module>
from pyreadline import *
File "/usr/local/lib/python2.7/dist-packages/pyreadline-2.0_dev1-
py2.7.egg/pyreadline/__init__.py", line 11, in <module>
from . import unicode_helper, logger, clipboard, lineeditor,
modes, console
File "/usr/local/lib/python2.7/dist-packages/pyreadline-2.0_dev1-
py2.7.egg/pyreadline/modes/__init__.py", line 3, in <module>
from . import emacs, notemacs, vi
File "/usr/local/lib/python2.7/dist-packages/pyreadline-2.0_dev1-
py2.7.egg/pyreadline/modes/emacs.py", line 11, in <module>
import pyreadline.logger as logger
AttributeError: 'module' object has no attribute 'logger'



any one can help me pleaseeee

regards
Zid
 
Ad

Advertisements

J

Jean-Michel Pichavant

hi all, when installing sage, there is a problem with emacs.py
so, this screen appeared after rynning ./sage
----------------------------------------------------------------------
| Sage Version 4.4.2, Release Date: 2010-05-19 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/zid/sage/local/bin/sage-ipython", line 18, in <module>
import IPython
File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line
58, in <module>
__import__(name,glob,loc,[])
File "/usr/lib/python2.7/dist-packages/IPython/ipstruct.py", line
17, in <module>
from IPython.genutils import list2dict2
File "/usr/lib/python2.7/dist-packages/IPython/genutils.py", line
114, in <module>
import IPython.rlineimpl as readline
File "/usr/lib/python2.7/dist-packages/IPython/rlineimpl.py", line
18, in <module>
from pyreadline import *
File "/usr/local/lib/python2.7/dist-packages/pyreadline-2.0_dev1-
py2.7.egg/pyreadline/__init__.py", line 11, in <module>
from . import unicode_helper, logger, clipboard, lineeditor,
modes, console
File "/usr/local/lib/python2.7/dist-packages/pyreadline-2.0_dev1-
py2.7.egg/pyreadline/modes/__init__.py", line 3, in <module>
from . import emacs, notemacs, vi
File "/usr/local/lib/python2.7/dist-packages/pyreadline-2.0_dev1-
py2.7.egg/pyreadline/modes/emacs.py", line 11, in <module>
import pyreadline.logger as logger
AttributeError: 'module' object has no attribute 'logger'



any one can help me pleaseeee

regards
Zid
You probably have the wrong version of pyreadline. Try to install the
last stable 1.7.1 or look for emacs.py requirement for the pyreadline
version.

Non constructive solution : use vim :eek:)

JM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top