diffvg: Windows Diffvg missing module
Environment
Windows 10 , Python Version 3.7.4
Problem
After installation using python setup install I get this
Using c:\programdata\anaconda3\lib\site-packages
Finished processing dependencies for diffvg==0.0.1
But when running the example single circle i get this
(base) D:\GitHub\AI projects\diffvg\apps>python single_circle.py
Traceback (most recent call last):
File "single_circle.py", line 1, in <module>
import pydiffvg
File "C:\ProgramData\Anaconda3\lib\site-packages\diffvg-0.0.1-py3.7-win-amd64.egg\pydiffvg\__init__.py", line 4, in <module>
from .render_pytorch import *
File "C:\ProgramData\Anaconda3\lib\site-packages\diffvg-0.0.1-py3.7-win-amd64.egg\pydiffvg\render_pytorch.py", line 2, in <module>
import diffvg
ModuleNotFoundError: No module named 'diffvg'
Testing if diffvg is available:
(base) D:\GitHub\AI projects\diffvg\apps>python -c "import diffvg"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'diffvg'
Also checking the package exists on the folder:

Could there be something wrong with compilation or something like that? Also is it possible to have a compiled version? I don’t mind for which OS. hopefully for non CUDA.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 7
- Comments: 16
What worked for me, for whatever reason, is renaming the
site-packages/diffvg-0.0.1-py3.8-win-amd64.egg/diffvgfile todiffvg.pyd@surjikal It worked for me too! Thank you!