Skip to content

Commit

Permalink
Merge pull request #1681 from nbargnesi/improve-x86-req-docs
Browse files Browse the repository at this point in the history
improve x86 Python requirements docs; #1680
  • Loading branch information
doomedraven authored Jul 30, 2023
2 parents c04cc40 + 55b800e commit 7fa3b89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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

0 comments on commit 7fa3b89

Please sign in to comment.