Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21201 > unrolled thread

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

Started byyoussef.mahdia@hotmail.com
First post2012-03-04 07:34 -0800
Last post2012-03-05 11:56 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  AttributeError: 'module' object has no attribute 'logger' youssef.mahdia@hotmail.com - 2012-03-04 07:34 -0800
    Re: AttributeError: 'module' object has no attribute 'logger' Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-03-05 11:56 +0100

#21201 — AttributeError: 'module' object has no attribute 'logger'

Fromyoussef.mahdia@hotmail.com
Date2012-03-04 07:34 -0800
SubjectAttributeError: 'module' object has no attribute 'logger'
Message-ID<b0ffcbbb-d5f6-4dc3-badb-0be2e3799acc@ge5g2000vbb.googlegroups.com>
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





[toc] | [next] | [standalone]


#21228

FromJean-Michel Pichavant <jeanmichel@sequans.com>
Date2012-03-05 11:56 +0100
Message-ID<mailman.402.1330945014.3037.python-list@python.org>
In reply to#21201
youssef.mahdia@hotmail.com wrote:
> 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 :o)

JM

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web