Dfxml report of disk image with fiwalk results in AttributeError
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 20
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dfxml-working-group/dfxml_python
-
dfxml-working-group/dfxml_python#43 · 1 comment · 1 assignee ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
dfxml-working-group/dfxml_python#36 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Setup CODECOV Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
dfxml-working-group/dfxml_python#9 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
dfxml-working-group/dfxml_python#4 · 1 comment ·
All issues in dfxml-working-group/dfxml_python
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·