Open testtomat opened 6 months ago
Indeed a normal pip installation will not work offline, because it needs to download a number of dependencies (listed in requirements.txt and setup.py). To install offline, you need to get every dependency first, and then install them one by one in the correct order, with oletools at the end. This would need to be added to the documentation.
Okay, thanks.
Is this the only way or is it possible to make a Copy 'n Paste deployment of all installed packages from a development machine to a production machine? Sorry, I'm a C#-developer and not familar with Python environment.
In theory yes, you could copy the site-packages
directory where Python stores all external packages, assuming you have the same python version on both machines.
But you need to pay attention how external packages have been installed in the first place:
But all in all, I would recommend to download all dependencies locally and install them with pip (with a script, to automate things). It's probably a bit more work, but it would avoid any install glitches.
Affected tool: pip install oletool
Describe the bug Can not install oletool offline, because installation process tries to load dependent files from internet
File/Malware sample to reproduce the bug
How To Reproduce the bug 1.) Download https://github.com/decalage2/oletools/releases/download/v0.60.1/oletools-0.60.1.zip 2.) run pip3.xx.exe install -U "\oletools-0.60.1.zip" WITHOUT active internet connection
Expected behavior under offline installation I don't expect to have an active internet connection
Console output / Screenshots
Version information:
Additional context Add any other context about the problem here.