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.

Compilation error on Windows 10 with VS2019

See original GitHub issue

Compilation fails with the following error: ...\pytorch_scatter\csrc\cpu\scatter_cpu.cpp(81): error C2975: 'REDUCE': invalid template argument for 'Reducer', expected compile-time constant expression

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:30 (14 by maintainers)

github_iconTop GitHub Comments

5reactions
rusty1scommented, Feb 11, 2020

I identified the issue! The following lines are missing in all extensions:

#ifdef _WIN32
#include <Python.h>
PyMODINIT_FUNC PyInit__scatter(void) { return NULL; }
#endif

I will run some more tests and will release a new version soon! Sorry for all the trouble 😃

4reactions
rusty1scommented, Mar 2, 2020

Windows installation indeed needs some fixes to Pytorch, see here. I am still unsure why the installation of the binaries does not work for some. Can you try to do:

pip install https://s3.eu-central-1.amazonaws.com/pytorch-geometric.com/whl/torch-1.4.0/torch_scatter-latest%2Bcu101-cp37-cp37m-win_amd64.whl
Read more comments on GitHub >

github_iconTop Results From Across the Web

Compilation error visual studio 2019 - Microsoft Q&A
Good afternoon, I have the following problem in visual basic whenever I compile either several lines of code or a single one, I...
Read more >
Compilation errors with VS-2019 - Stack Overflow
Found it! I created a small project with just the code of interest to post as an example of code and everything was...
Read more >
Compile errors for external headers - Visual Studio Feedback
The include path for VC++ Directories in my VS2019 v16.9.6 is M:\Source\Include;M:\vcpkg\installed\x64-windows\include;$(IncludePath) and it did not change in ...
Read more >
Compilation error in VS2019 from "cabbageCopyFile" new ...
A bit stuck, because for now I can build, but I really wanted to test this new opcode ! I am using Windows...
Read more >
Compilation error on Windows 10 - ROOT Forum
ROOT Version:_ ROOT 6.26.04 Platform: Windows 10 Compiler: Visual Studio 16 2019 Dear All, I've followed the installation instructions ...
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