Import Error: No module named - After manual Install

0

I am attempting to use the following code on a computer that does not have Internet access.

https://github.com/williballenthin/EVTXtract

I followed this procedure to download the files using PIP, copied the files to the computer without Internet access, and performed the installation. There were no error messages and everything was done with python 2.7.14 on both computers.

https://stackoverflow.com/questions/36725843/installing-python-packages-without-internet-and-using-source-code-as-tar-gz-and

Also, on my machine with Internet access I used PIP to install EVTXtract.

The result is that both machines have a file named evtxtract.exe in the C:\Python27\Scripts directory. The machine where PIP was used to install from the Internet runs the application successfully. The machine without Internet access throws the following error:

C:\Python27\Scripts>evtxtract.exe
Traceback (most recent call last):
  File "C:\python27\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Scripts\evtxtract.exe\__main__.py", line 5, in <module>
ImportError: No module named evtxtract.main

I feel like this is something simple, but I don't have any experience doing an installation this way. I found plenty of posts with a similar error, but nothing I tried worked. I modified environmental variables based on a couple of posts I saw, but I won't go into detail on that unless needed.

The computer with Internet access is running Windows 10 and the computer without Internet access is running Windows Server 2012 R2.

Matt

Posted 2018-02-09T16:12:58.690

Reputation: 133

>

  • What files does pip show -f evtxtract return? 2. What is in your syspath? Run python -c "import sys; print(sys.path)" to check that.
  • < – hoefling – 2018-04-01T21:47:27.770

    No answers