Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Dfxml report of disk image with fiwalk results in AttributeError

Abierto
#39 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
backend

Línea de trabajo

Start in dfxml/fiwalk.py around line 138 and inspect fiwalk_xml_stream together with E01_glob to determine the expected imagefile input type. Reproduce the reported call with a disk image, then add or update a focused regression test. Done means the documented disk-image use case no longer raises AttributeError and the expected invocation is documented.

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

Descripción

I'm trying to use the module to generate dfxml reports of disk images. I can't find any examples of this in either the documentation or in the examples, but after digging a bit into the code I came up with this:

#! /usr/bin/env python3

import os
from dfxml import fiwalk

imageFile = os.path.abspath("1a330188-23d0-11ed-a1cf-3dad24cfc09f.img")
test = fiwalk.fiwalk_xml_stream(imagefile=imageFile)
print(test)

But this results in:

Traceback (most recent call last):
  File "./test-fiwalk.py", line 7, in <module>
    test = fiwalk.fiwalk_xml_stream(imagefile=imageFile)
  File "/home/johan/.local/lib/python3.8/site-packages/dfxml/fiwalk.py", line 138, in fiwalk_xml_stream
    p = Popen(cmd + E01_glob(imagefile.name),stdout=PIPE)
AttributeError: 'str' object has no attribute 'name'

Not sure if this is some bug, or perhaps I'm just doing something completely wrong here myself? In any case, as this seems one of the most obvious use cases for this software, it would be helpful to provide some documentation or example.

Lenguaje dominante
Python
Estrellas
20
Forks
6
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 dfxml-working-group/dfxml_python

Todos los issues de dfxml-working-group/dfxml_python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.