Skip to content

Error: Failed To Generate Your Payload :(, Please Try Again! #77

Description

@sarahkhandev3

I'm trying to build the project on Windows. The build process runs to completion, and PyInstaller reports that the executable was built successfully. However, the program ultimately exits with:

[!] Failed To Generate Your Payload :(, Please Try Again!

I also noticed the following during the PyInstaller analysis:

5037 ERROR: Hidden import 'keylogger' not found

I'm not sure whether this error is the cause of the final failure or if there is another issue. Is there an additional dependency or setup step required?

Environment

  • OS: Windows 10 (64-bit)
  • Python: 3.7.4
  • PyInstaller: 3.5

Full Build Log

Click to expand
[ * * * * * * * * * * * * * * * * * * * * * * * * * ]

[?] Are the above mentioned credentials correct? (y/n) : y

[*] Checking Dependencies...
[+] All Dependencies are Installed on this system ;)

[*] Validating Email Credentials...
[+] Credentials Verified :)

[*] Generating Please wait for a while...

[*] Encrypting Source Codes...
[+] Operation Completed Successfully!

417 INFO: PyInstaller: 3.5
417 INFO: Python: 3.7.4
417 INFO: Platform: Windows-10-10.0.19041-SP0
433 INFO: wrote <PROJECT_PATH>\test.spec
435 INFO: UPX is not available.
438 INFO: Extending PYTHONPATH with paths
['<PROJECT_PATH>', '<PROJECT_PATH>']
439 INFO: checking Analysis
459 INFO: Building because <PROJECT_PATH>\test.pdf changed
459 INFO: Initializing module dependency graph...
463 INFO: Initializing module graph hooks...
466 INFO: Analyzing base_library.zip ...
4303 INFO: Analyzing hidden import 'win32event'
4303 INFO: Analyzing hidden import 'winerror'
4403 INFO: Analyzing hidden import 'win32api'
4403 INFO: Analyzing hidden import 'pynput.keyboard'
4469 INFO: Processing pre-safe import module hook six.moves
5037 INFO: Analyzing hidden import 'keylogger'
5037 ERROR: Hidden import 'keylogger' not found
5053 INFO: running Analysis Analysis-00.toc
5071 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by <PYTHON_INSTALL>\python.exe
5905 INFO: Caching module hooks...
5921 INFO: Analyzing <PROJECT_PATH>\test.pdf
5938 INFO: Loading module hooks...
5938 INFO: Loading module hook "hook-encodings.py"...
6038 INFO: Loading module hook "hook-pydoc.py"...
6054 INFO: Loading module hook "hook-Xlib.py"...
6355 INFO: Loading module hook "hook-xml.py"...
6655 INFO: Looking for ctypes DLLs
6690 INFO: Analyzing run-time hooks ...
6690 INFO: Looking for dynamic libraries
9074 INFO: Looking for eggs
9074 INFO: Using Python library <PYTHON_INSTALL>\python37.dll
9074 INFO: Found binding redirects:
[]
9074 INFO: Warnings written to <PROJECT_PATH>\build\test\warn-test.txt
9141 INFO: Graph cross-reference written to <PROJECT_PATH>\build\test\xref-test.html
9158 INFO: checking PYZ
9174 INFO: Building because toc changed
9174 INFO: Building PYZ (ZlibArchive) <PROJECT_PATH>\build\test\PYZ-00.pyz
9958 INFO: Building PYZ (ZlibArchive) completed successfully.
9975 INFO: checking PKG
9975 INFO: Building because toc changed
9975 INFO: Building PKG (CArchive) PKG-00.pkg
11743 INFO: Building PKG (CArchive) completed successfully.
11760 INFO: Bootloader <PYTHON_INSTALL>\Lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw.exe
11760 INFO: checking EXE
11777 INFO: Rebuilding EXE-00.toc because test.exe missing
11777 INFO: Building EXE from EXE-00.toc
11777 INFO: Copying icons from ['icon\\exe.ico']
11893 INFO: Writing icon resources...
12027 INFO: Updating manifest
12027 INFO: Updating resources
12027 INFO: Appending archive to EXE <PROJECT_PATH>\dist\test.exe
12210 INFO: Building EXE from EXE-00.toc completed successfully.

[*] Deleting Junk Files...
[+] Junk Files Removed Successfully!

[!] Failed To Generate Your Payload :(, Please Try Again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions