Skip to content

Commit

Permalink
Restore python x86 architecture requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoumis committed Mar 7, 2024
1 parent a7491d1 commit 6b253da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-package-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
architecture: 'x86'

- name: Install dependencies
run: pip install --upgrade pytest requests
Expand Down
7 changes: 7 additions & 0 deletions agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
if sys.version_info[:2] < (3, 6):
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")

AGENT_VERSION = "0.14"
AGENT_FEATURES = [
"execpy",
Expand Down

0 comments on commit 6b253da

Please sign in to comment.