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

improve x86 Python requirements docs; #1680 #1681

Merged
merged 1 commit into from
Jul 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
sys.exit("You are running an incompatible version of Python, please use >= 3.6")

# You must run x86 version not x64
# The analysis process interacts with low-level Windows libraries that need a
# x86 Python to be running.
# (see https://github.com/kevoreilly/CAPEv2/issues/1680)
if sys.maxsize > 2**32 and sys.platform == "win32":
sys.exit("You should install python3 x86! not x64")

Expand Down
5 changes: 4 additions & 1 deletion docs/book/src/installation/guest/requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ Python is a strict requirement for the CAPE guest component (*analyzer*) to run
.. note::

Please note that only 32-bit (x86) versions of Python3 are
supported at this time for Windows. For other it can be 64-bit(x64).
supported at this time for Windows, due to the way the analyzer
interacts with low-level Windows libraries. Using a 64-bit version
of Python will crash the analyzer in Windows. For other platforms the
version of Python can be 64-bit (x64).

You can download the proper `Windows`_ / `Linux`_ installer from the `official website`_.
Python versions > 3.6 are preferred.
Expand Down