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 7744979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:53:56+00:00 2026-06-01T09:53:56+00:00

I have Microsoft Visual Studio 2008 on Windows/XP. I am trying to install a

  • 0

I have Microsoft Visual Studio 2008 on Windows/XP. I am trying to install a Python package that has a C extension. Normally, you type “setup.py install” to do this interactively.

The problem I have is this: If I type “setup.py install” at the cmd prompt, it shows me the compilation error like this:

creating build\temp.win32-2.7\Release\src
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\include -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python27\PC /Tcsrc/PixCte_FixY.c /Fobuild\temp.win32-2.7\Release\src/PixCte_FixY.obj PixCte_FixY.c
c:\python27\include\pyconfig.h(227) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command '"c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2

But if I type “setup.py install > logfile 2>&1”, the log file says

building 'acstools.PixCte_FixY' extension
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\include -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python27\PC /Tcsrc/PixCte_FixY.c /Fobuild\temp.win32-2.7\Release\src/PixCte_FixY.obj
error: command '"c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2

So it reported that the compilation failed, but not a clue about what the problem was.

So, my question is: How can I collect the complete compiler output into a file?

  • 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-06-01T09:53:58+00:00Added an answer on June 1, 2026 at 9:53 am

    I guess there is no good answer. I happened across this workaround:

    I used this python program:

    import sys
    import subprocess
    
    print sys.argv
    
    cmd = [ sys.executable, "setup.py" ] + sys.argv[1:]
    
    p = subprocess.Popen( cmd, stdout=subprocess.PIPE,
        stderr=subprocess.STDOUT, shell=False,
        creationflags = subprocess.CREATE_NEW_PROCESS_GROUP )
    while 1 :
        n = p.stdout.read(256)
        if n == '' :
            break
        sys.stdout.write(n)
    p.wait()
    

    I named it “runsetup.py”. Now instead of “setup.py install” I use “runsetup.py install”. Somehow, cl.exe sees something different about its environment and actually prints all the error messages.

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

Sidebar

Related Questions

I'm using Microsoft Visual Studio 2008 (VC9) to compile a project that has a
We have a database project in Visual Studio 2008 that has been working great.
I have an application that I am porting to Microsoft Visual Studio 2008 that
I am newbie to Windows Azure application. I have downloaded the Microsoft Visual Studio
I'm trying to run Microsoft's .NET Framework Configuration Tool (Mscorcfg.msc). I have Visual Studio
Okay, this is getting stupid, I have Microsoft Visual Studio 2008, was working fine,
I have: Microsoft Visual Studio 2008 Team Explorer Version 9.0.21022.8 When I go to
Here's the scenario: Platform: Windows IDE: Microsoft Visual Studio 2008 Language: C# .NET framework:
i have installed Licensed Visual Studio 2008 on my Windows Server 2008 Pc. (I
I have a Visual Studio 2008 Windows Mobile 6.5.3 ARMV4I project. I check for

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.