mac_apt
mac_apt copied to clipboard
Failed building wheel for fastchunking
Installing on Windows 11. Got this error after installing requirements.txt. Followed the instructions below for changing temp location and still got same error.
mkdir C:\temp1 set TEMP=C:\temp1 set TMP=C:\temp1 pip install -r requirements.txt
I was doing it in Powershell and noticed it was not using the specified temp folder. Switched to cmd and ran as administrator. It used the new temp folder but still failed on the fastchunking.
do a pip install pybindgen should resolve this in your venv.
installing pybindgen manually first isn't required, fastchunking lists it as a dependency
default %temp% should be writable anyway, it's just %localappdata%\temp (and the pip install process will use it extensively before rabinkarprh.cpp is created in there, anyway)
installing fastchunking from git master works fine:
git clone https://github.com/netleibi/fastchunking.git
cd fastchunking
pip -r install requirements.txt
pip install .
but then, trying to install https://github.com/aff4/pyaff4 fails because aff4-snappy dependency also fails on windows.
instead of dealing with all this bitrotted stuff, since i was only interested in apfs extraction anyway, I just commented out aff4 stuff (turned out some code related to args.password_file was also broken...):
diff --git a/extract_apfs_fs.py b/extract_apfs_fs.py
index e25acc8..5126e3e 100644
--- a/extract_apfs_fs.py
+++ b/extract_apfs_fs.py
@@ -29,7 +29,7 @@ import sys
import textwrap
import time
import traceback
-from plugins.helpers.aff4_helper import EvidenceImageStream
+#from plugins.helpers.aff4_helper import EvidenceImageStream
from plugins.helpers.apfs_reader import ApfsContainer, ApfsDbInfo
from plugins.helpers.writer import *
from plugins.helpers.disk_report import *
@@ -444,13 +444,7 @@ except Exception as ex:
log.error("Failed to load image. Error Details are: " + str(ex))
Exit()
-if args.password_file:
- try:
- mac_info.password = ReadPasswordFromFile(args.password_file)
- except OSError as ex:
- log.error(f"Failed to read password from file {args.password_file}\n Error Details are: " + str(ex))
- Exit()
-elif args.password:
+if args.password:
mac_info.password = args.password
mac_info.use_native_hfs_parser = True #False if args.use_tsk else True
mac_info.dont_decrypt = True if args.dont_decrypt else False
diff --git a/plugin.py b/plugin.py
index 36fd526..8c39236 100644
--- a/plugin.py
+++ b/plugin.py
@@ -17,7 +17,7 @@ import sys
import pyewf
import pytsk3
import pyvmdk
-import pyaff4
+#import pyaff4^M
import traceback
def ImportPlugins(plugins, mode):
@@ -139,4 +139,4 @@ def LogLibraryVersions(log):
log.info('Pytsk version = {}'.format(pytsk3.get_version()))
log.info('Pyewf version = {}'.format(pyewf.get_version()))
log.info('Pyvmdk version = {}'.format(pyvmdk.get_version()))
- log.info('PyAFF4 version = {}'.format(pyaff4._version.raw_versions()['version']))
\ No newline at end of file
+ #log.info('PyAFF4 version = {}'.format(pyaff4._version.raw_versions()['version']))
\ No newline at end of file
do a
pip install pybindgenshould resolve this in your venv.
Yes, this is a weird one that I have seen before but haven't had time to investigate. As pointed out it is a listed dependency so should already be installed but ...? Not sure why, but usually the above fixes it.
I'll test this on windows 11 this weekend.