Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6939993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:41:48+00:00 2026-05-27T12:41:48+00:00

I was trying to compile some C++ source that uses scons as its build

  • 0

I was trying to compile some C++ source that uses scons as its build system. On my 64 bit windows machine with python 3.2.X (64 bit) and what I thought was python 2.7.X (32 bit) I would get the following error when trying to run scons:

scons: *** no platform named ‘win32’

I was fairly certain that my 2.7 installation was 32 bit, because in the past I’d tried using scons with a 64 bit system and it had outright refused to function. I spent an hour or so playing with it, tried repairing the install, poking around on google/SO, etc. but couldn’t find a solution. Finally I uninstalled python 2.7 using both a 32 and a 64 bit installer (I guess I must’ve had both installed in the same location?), uninstalled scons, deleted the remaining python27 folder and reinstalled 32 bit python and scons.

Now scons works!

Since I hadn’t found a solution on SO, I thought I should post mine, but I’d also like to know what causes this error?

What causes the scons error “no platform named ‘win32′”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:41:48+00:00Added an answer on May 27, 2026 at 12:41 pm

    I have actually had this problem myself. This is caused by the scons.bat using the wrong python library. Somehow the installation gets screwed up and when you run things in 2.7 it tries using the libraries from python 3. I solved this quite simply by editing the scons.bat script, and setting python path and python home in the script.

    The changes are shown here.

    Set PYTHONHOME=C:\Python27\
    Set PYTHONPATH=C:\Python27\Lib\;C:\MinGW\bin;C:\Python27\Lib\site-packages
    Set PATH=%PYTHONHOME%;%PYTHONPATH%;%PATH%
    
    ...
    more stuff here
    ...
    :WinNT
    setlocal
    @REM ensure the script will be executed with the Python it was installed for
    set path=%~dp0;%~dp0..;%path%
    c:\Python27\python -c "from os.path import join; import sys; sys.path = [ join  (sys.prefix, 'Lib', 'site-packages', 'scons-2.0.1'), join(sys.prefix, 'Lib', 'site-    packages', 'scons'), join(sys.prefix, 'scons-2.0.1'), join(sys.prefix, 'scons')] +   sys.path; import SCons.Script; SCons.Script.main()" %*
    endlocal & set SCONS_ERRORLEVEL=%ERRORLEVEL%
    

    After this it works fine as long as I specify this scons.bat script for running scons.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While trying to compile my project, that uses some third party headers, with mingw
I was recently fighting some problems trying to compile an open source library on
When trying to compile a file that include winnt.h via windows.h, I get the
Im trying to compile a binary of an open-source project so that our users
I am trying to build some kernel modules I added to my Ubuntu source
I am trying to use Java Compiler API to compile some java class. That
I'm trying to compile some other people's wrapper program on a large system, in
I'm trying to compile an open source project on windows under mingw/msys. The makefile
I am trying to compile the Python bindings for OpenSSL (pyOpenSSL) on Windows Vista
I'm trying to compile some code which contains the following declaration, because I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.