Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plaso-20180524-amd64 missing dfvfs/lib/cpio.yaml #1917

Closed
johnmccash opened this issue May 29, 2018 · 20 comments
Closed

plaso-20180524-amd64 missing dfvfs/lib/cpio.yaml #1917

johnmccash opened this issue May 29, 2018 · 20 comments
Assignees
Labels
bug deployment Changes to deployment or development utility scripts

Comments

@johnmccash
Copy link

When running the new plaso-20180524-amd64 windows binary of log2timeline against an E01 image, I get the following errors:

log2timeline --workers 28 --status_view window plaso_dump image.E01
Checking availability and versions of dependencies.
[OPTIONAL] missing: lzma.
[OK]

Traceback (most recent call last):
File "tools\log2timeline.py", line 68, in
File "tools\log2timeline.py", line 54, in Main
File "plaso\cli\log2timeline_tool.py", line 368, in ExtractEventsFromSources
File "plaso\cli\storage_media_tool.py", line 1099, in ScanSource
File "site-packages\dfvfs\helpers\source_scanner.py", line 565, in Scan
File "site-packages\dfvfs\helpers\source_scanner.py", line 366, in _ScanNode
File "site-packages\dfvfs\resolver\resolver.py", line 55, in OpenFileEntry
File "site-packages\dfvfs\resolver\resolver.py", line 158, in OpenFileSystem
File "site-packages\dfvfs\resolver\resolver.py", line 35, in GetResolverHelper
File "C:\Projects\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 396, in load_module
File "site-packages\dfvfs\resolver_helpers_init
.py", line 10, in
File "C:\Projects\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 396, in load_module
File "site-packages\dfvfs\resolver_helpers\cpio_resolver_helper.py", line 10, in
File "C:\Projects\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 396, in load_module
File "site-packages\dfvfs\vfs\cpio_file_system.py", line 6, in
File "C:\Projects\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 396, in load_module
File "site-packages\dfvfs\lib\cpio.py", line 43, in
File "site-packages\dfvfs\lib\cpio.py", line 52, in CPIOArchiveFile
IOError: [Errno 2] No such file or directory: u'D:\DOWNLO~1\PLASO-~1\dfvfs\lib\cpio.yaml'
[11652] Failed to execute script log2timeline

@Onager Onager added the deployment Changes to deployment or development utility scripts label May 29, 2018
@Onager
Copy link
Contributor

Onager commented May 29, 2018

This looks like an issue with the new dtFabric support in dfvfs. @rgayon and @joachimmetz can you take a look at this please?

@joachimmetz joachimmetz self-assigned this May 29, 2018
@Onager Onager added this to the 2018 June release milestone Jun 8, 2018
@joachimmetz
Copy link
Member

Looks like the yaml files are not copied by Pyinstaller. I'll update the build script.

@joachimmetz
Copy link
Member

@johnmccash a work around is to copy the dfvfs and dfwinreg yaml files into the corresponding subdirectories within the Pyinstaller packaged directory.

@joachimmetz
Copy link
Member

@joachimmetz
Copy link
Member

yes see my previous comment for a patch

@joachimmetz
Copy link
Member

joachimmetz commented Jun 13, 2018

Though this bug should not affect CentOS. @flyp3navy could you give more information about how you installed plaso.

@joachimmetz
Copy link
Member

@flyp3navy this is a different issue

Unable to create struct object from data type definition with error: Struct() argument 1 must be string, not unicode

This looks like a version of the struct Python module that does not support a unicode argument.

What version of Python 2.7 do you run:

python -V

@joachimmetz
Copy link
Member

Try:

python2.7 -V

@joachimmetz
Copy link
Member

That is quite an old version. I've created: libyal/dtfabric#11

One way would be to upgrade your version of Python.

I can try to build in a backward compatibility work around, but I would need to figure out when the struct module changed its interface first.

@joachimmetz
Copy link
Member

joachimmetz commented Jun 13, 2018

the latest if 2.7 version if you can but definitely anything later than 2.7.10 due to fixes for SSL/TSL issues

@johnmccash
Copy link
Author

Joachim - Per your comment "@johnmccash a work around is to copy the dfvfs and dfwinreg yaml files into the corresponding subdirectories within the Pyinstaller packaged directory."

Where do I find those files to copy them?

@johnmccash
Copy link
Author

johnmccash commented Jun 19, 2018

@joachimmetz
Copy link
Member

Closing issue. Scripts updated to fix next deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug deployment Changes to deployment or development utility scripts
Projects
None yet
Development

No branches or pull requests

4 participants
@Onager @johnmccash @joachimmetz and others