Python unbup script for McAfee .bup files (with some additional fun features). This script is fully implemented in python it's not just another wrapper around 7zip!
When i try to run punbup on Ubuntu 16.04 LTS i get an error that olefile is not installed even though it is, below i've included the outputs of when i try to install olefile by pip, apt-get install and from the zip pulled decalage's page.
I have the punbup.py file located in /opt/punbup/punbup.py and refer to it by an alias stored in ~/.bash_aliases
alias punbup='python /opt/punbup/punbup.py'
$punbup 7e23db241020.bup
Error - Please ensure you install the OleFileIO_PL library before running this script (https://bitbucket.org/decalage/olefileio_pl): No module named OleFileIO_PL
$pip install olefile
Requirement already satisfied: olefile in /usr/local/lib/python2.7/dist-packages/olefile-0.45.1-py2.7.egg
$pip install -U olefile
Requirement already up-to-date: olefile in /usr/local/lib/python2.7/dist-packages/olefile-0.45.1-y2.7.egg
olefile-master$ sudo python setup.py install
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
running install
running bdist_egg
running egg_info
creating olefile.egg-info
writing olefile.egg-info/PKG-INFO
writing top-level names to olefile.egg-info/top_level.txt
writing dependency_links to olefile.egg-info/dependency_links.txt
writing manifest file 'olefile.egg-info/SOURCES.txt'
reading manifest file 'olefile.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'doc/_build'
writing manifest file 'olefile.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/olefile
copying olefile/init.py -> build/lib.linux-x86_64-2.7/olefile
copying olefile/olefile.py -> build/lib.linux-x86_64-2.7/olefile
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/olefile
copying build/lib.linux-x86_64-2.7/olefile/init.py -> build/bdist.linux-x86_64/egg/olefile
copying build/lib.linux-x86_64-2.7/olefile/olefile.py -> build/bdist.linux-x86_64/egg/olefile
byte-compiling build/bdist.linux-x86_64/egg/olefile/init.py to init.pyc
byte-compiling build/bdist.linux-x86_64/egg/olefile/olefile.py to olefile.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying olefile.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying olefile.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying olefile.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying olefile.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/olefile-0.45.1-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing olefile-0.45.1-py2.7.egg
Copying olefile-0.45.1-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding olefile 0.45.1 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/olefile-0.45.1-py2.7.egg
Processing dependencies for olefile==0.45.1
Finished processing dependencies for olefile==0.45.1
When i try to run punbup on Ubuntu 16.04 LTS i get an error that olefile is not installed even though it is, below i've included the outputs of when i try to install olefile by pip, apt-get install and from the zip pulled decalage's page.
I have the punbup.py file located in /opt/punbup/punbup.py and refer to it by an alias stored in ~/.bash_aliases alias punbup='python /opt/punbup/punbup.py'
$punbup 7e23db241020.bup Error - Please ensure you install the OleFileIO_PL library before running this script (https://bitbucket.org/decalage/olefileio_pl): No module named OleFileIO_PL
$pip install olefile Requirement already satisfied: olefile in /usr/local/lib/python2.7/dist-packages/olefile-0.45.1-py2.7.egg
$pip install -U olefile Requirement already up-to-date: olefile in /usr/local/lib/python2.7/dist-packages/olefile-0.45.1-y2.7.egg
olefile-master$ sudo python setup.py install /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) running install running bdist_egg running egg_info creating olefile.egg-info writing olefile.egg-info/PKG-INFO writing top-level names to olefile.egg-info/top_level.txt writing dependency_links to olefile.egg-info/dependency_links.txt writing manifest file 'olefile.egg-info/SOURCES.txt' reading manifest file 'olefile.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'doc/_build' writing manifest file 'olefile.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/olefile copying olefile/init.py -> build/lib.linux-x86_64-2.7/olefile copying olefile/olefile.py -> build/lib.linux-x86_64-2.7/olefile creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/olefile copying build/lib.linux-x86_64-2.7/olefile/init.py -> build/bdist.linux-x86_64/egg/olefile copying build/lib.linux-x86_64-2.7/olefile/olefile.py -> build/bdist.linux-x86_64/egg/olefile byte-compiling build/bdist.linux-x86_64/egg/olefile/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/olefile/olefile.py to olefile.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying olefile.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying olefile.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying olefile.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying olefile.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist/olefile-0.45.1-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing olefile-0.45.1-py2.7.egg Copying olefile-0.45.1-py2.7.egg to /usr/local/lib/python2.7/dist-packages Adding olefile 0.45.1 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/olefile-0.45.1-py2.7.egg Processing dependencies for olefile==0.45.1 Finished processing dependencies for olefile==0.45.1