Dfxml report of disk image with fiwalk results in AttributeError
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 20
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dfxml-working-group/dfxml_python
-
Specify directory to walk Aperta
dfxml-working-group/dfxml_python#43 · 1 commento · 1 assegnatario ·
-
Instructions for updating Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
dfxml-working-group/dfxml_python#36 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Setup CODECOV Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
dfxml-working-group/dfxml_python#9 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
dfxml-working-group/dfxml_python#4 · 1 commento ·
Tutte le issue di dfxml-working-group/dfxml_python
Issue simili
-
essnmx good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
[Feature] 奇物选择添加优先级 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Giskard-AI/giskard-oss#2840 · 1 commento ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Apertaarea: repo bug perceived difficulty: 2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yeti-platform/yeti#1380 ·