Problem with Python 3.4 traceback

Abierto
#541 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

No se menciona ningún archivo del repositorio ni ninguna prueba. Empieza reproduciendo el ejemplo de Python 3.4 en torno a context.register(sumit) y context.sumit(la), y después inspecciona el manejo del módulo construido dinámicamente; el trabajo estará terminado cuando se identifique si DistArray o Python/IPython es responsable del fallo del traceback secundario y se documente o corrija ese ámbito.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug prio-low

DistArray error or Python 3.4 bug? Maybe something to do with our dynamically constructed local modules. (Note: should just be a NameError, since la was undefined).

In [19]: def sumit(la):
   ....:     return sum(la)
   ....:

In [20]: context.register(sumit)

In [21]: context.sumit(la)
ERROR: Internal Python error in the inspect module.
Below is the traceback from this internal error.

Traceback (most recent call last):
  File "/Users/robertgrant/anaconda/lib/python3.4/site-packages/IPython/core/interactiveshell.py", line 2883, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-21-268373916429>", line 1, in <module>
    context.sumit(la)
NameError: name 'la' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/robertgrant/anaconda/lib/python3.4/site-packages/IPython/core/interactiveshell.py", line 1753, in showtraceback
    stb = value._render_traceback_()
AttributeError: 'NameError' object has no attribute '_render_traceback_'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/robertgrant/anaconda/lib/python3.4/site-packages/IPython/core/ultratb.py", line 776, in structured_traceback
    records = _fixed_getinnerframes(etb, context, tb_offset)
  File "/Users/robertgrant/anaconda/lib/python3.4/site-packages/IPython/core/ultratb.py", line 230, in wrapped
    return f(*args, **kwargs)
  File "/Users/robertgrant/anaconda/lib/python3.4/site-packages/IPython/core/ultratb.py", line 259, in _fixed_getinnerframes
    records  = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
  File "/Users/robertgrant/anaconda/lib/python3.4/inspect.py", line 1332, in getinnerframes
    framelist.append((tb.tb_frame,) + getframeinfo(tb, context))
  File "/Users/robertgrant/anaconda/lib/python3.4/inspect.py", line 1292, in getframeinfo
    filename = getsourcefile(frame) or getfile(frame)
  File "/Users/robertgrant/anaconda/lib/python3.4/inspect.py", line 583, in getsourcefile
    if getattr(getmodule(object, filename), '__loader__', None) is not None:
  File "/Users/robertgrant/anaconda/lib/python3.4/inspect.py", line 629, in getmodule
    os.path.realpath(f)] = module.__name__
AttributeError: 'module' object has no attribute '__name__'

Unfortunately, your original traceback can not be constructed.
Lenguaje dominante
Python
Estrellas
5
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de enthought/distarray

Todos los issues de enthought/distarray

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.