moyix / pdbparse

Python code to parse Microsoft PDB files
Other
309 stars 83 forks source link

installation issues #38

Open tregua87 opened 7 years ago

tregua87 commented 7 years ago

Hi! I am trying to install pdbparse on a Windows 10 machine, I have python 3.6 installed and I have also installed Visual Studio 2015 with C++ (and C++ programs are built properly).

I launch a classic pip installation like:

pip install pdbparse

As error I got:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\flavio\AppData\Local\Programs\Python\Python36\include -IC:\Users\flavio\AppData\Local\Programs\Python\Python36\include /Tcsrc/undname.c /Fobuild\temp.win-amd64-3.6\Release\src/undname.obj undname.c src/undname.c(22): fatal error C1083: Cannot open include file: 'assert.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2

I tryied also to compile the last version from repo by using python setup.py build. Getting the same result.

I tryied also to set all the environment variables by using vcvarsall.bat, but apparently it does not work.

I am pretty sure I am missing something. But I don't get what.

May you help me please?

lucasg commented 7 years ago

Unfortunately assert.h is not bundled with Visual Studio : you need to install the Windows SDK to have access to OS-level includes. That's why it is a real pain in the ass to build C Extensions for Python on Windows.

Morevoer, I've spotted some issues that currently break the build. I'll try to fix thoses this week.

tregua87 commented 6 years ago

Hi! thank you very much for the support. I know it is very tedious, but Windows is a boundary of my project. I will check asap. Thanks again :)