Just writing this as a reference in case I need to build diffvg on Windows in the future. Here are the steps I took to take to install diffvg.
Install Microsoft Visual C++
If you get an error with get_config_var('LIBDIR'), edit setup.py and change it to the path to your Python's include folder, for my portable installation it was C:\Users\James\scoop\apps\miniconda3\23.5.2-0\pkgs\python-3.10.12-he1021f5_0\include
If you get this: error : too few arguments for template template parameter "Tuple", follow the steps in this issue comment
If you get an error about the nmake generator, delete the build folder and try again
After this I was able to successfully build diffvg. However, I still encountered an error with module 'diffvg' has no attribute 'FilterType'. To fix this:
Just writing this as a reference in case I need to build diffvg on Windows in the future. Here are the steps I took to take to install diffvg.
get_config_var('LIBDIR')
, edit setup.py and change it to the path to your Python'sinclude
folder, for my portable installation it wasC:\Users\James\scoop\apps\miniconda3\23.5.2-0\pkgs\python-3.10.12-he1021f5_0\include
error : too few arguments for template template parameter "Tuple"
, follow the steps in this issue commentbuild
folder and try againAfter this I was able to successfully build diffvg. However, I still encountered an error with
module 'diffvg' has no attribute 'FilterType'
. To fix this:diffvg
file todiffvg.pyd
as instructed hereAfter this diffvg worked for me with no issues.