question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with compiling for Python 3.5 under Windows 10 x64

See original GitHub issue

I had a problem when tried to compile this library. The problem was the following: Compiler said thet the following definitions from python-crfsuite/crfsuite/include/os.h conflict with such definitions from system <math.h>: #define isfinite _finite #define snprintf _snprintf

I changed them to the following: #define my_isfinite _finite #define my_snprintf _snprintf And also fixed all places in the library where these definitions are used, and then everything compiled perfectly.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
nchervyakovcommented, Mar 1, 2017
3reactions
zvoddcommented, Mar 30, 2017

As a work around a manual build and install can be done (with git and Visual Studio 2014/2015 installed):

git clone "https://github.com/scrapinghub/python-crfsuite.git"
cd python-crfsuite
git clone "https://github.com/chokkan/crfsuite.git"
git clone "https://github.com/chokkan/liblbfgs"
python setup.py build
python setup.py install

Tested on Windows 10 Python 3.6 x64

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix pip for Python 3.5 not compiling extensions on ...
For 3.5 you need Visual C++ 14.0. Download the Community edition. cl.exe will be in: C:\Program Files (x86)\Microsoft Visual Studio ...
Read more >
Struggling to build Python on Windows 10 - Core Workflow
I am using the following hardware and software versions: Microsoft Windows 10 Home, Version 10.0. 19043 Build 19043. A x64-based PC.
Read more >
4. Using Python on Windows — Python 3.11.1 documentation
Python Launcher for Windows. New in version 3.3. The Python launcher for Windows is a utility which aids in locating and executing of...
Read more >
precompiling stdlib fails with missing DLL errors - Python tracker
I installed Python 3.5 on a Windows Server 2012 VM, twice (once the 32-bit, and once the 64-bit version). When it started throwing...
Read more >
Ctypes callbacks shows problem on Windows Python (64bit)
Note: everything works fine with 32bit Python on Windows and on 32bit ... ctypes.sizeof(callback_t) matches the one given by the C compiler.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found