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.

Windows installation

See original GitHub issue

The library compiles without errors under Windows (Windows 10, Python 3.8, torch 1.6, VS2019). However, running examples results in: python single_circle.py Traceback (most recent call last): File "single_circle.py", line 1, in <module> import pydiffvg File "C:\conda\envs\NR\lib\site-packages\diffvg-0.0.1-py3.8-win-amd64.egg\pydiffvg\__init__.py", line 4, in <module> from .render_pytorch import * File "C:\conda\envs\NR\lib\site-packages\diffvg-0.0.1-py3.8-win-amd64.egg\pydiffvg\render_pytorch.py", line 18, in <module> class RenderFunction(torch.autograd.Function): File "C:\conda\envs\NR\lib\site-packages\diffvg-0.0.1-py3.8-win-amd64.egg\pydiffvg\render_pytorch.py", line 27, in RenderFunction filter = pydiffvg.PixelFilter(type = diffvg.FilterType.box, AttributeError: module 'diffvg' has no attribute 'FilterType'

dir(diffvg) ['__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']

Any advice?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
d00ML0rDzcommented, Feb 23, 2022

Renaming the site-packages/diffvg-0.0.1-py3.8-win-amd64.egg/diffvg file to diffvg.pyd seems to have fixed this for me.

0reactions
IzhanVarskycommented, Sep 15, 2022

Renaming the site-packages/diffvg-0.0.1-py3.8-win-amd64.egg/diffvg file to diffvg.pyd seems to have fixed this for me.

Hi, thank you! This helped me to solve the problem “ModuleNotFoundError: No module named ‘diffvg’” in “pydiffvg\render_pytorch.py” file. I use win10 with pip.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create installation media for Windows - Microsoft Support
You can use installation media (a USB flash drive or DVD) to install a new copy of Windows, perform a clean installation, or...
Read more >
Window Installation at The Home Depot
We replace and install top quality windows in vinyl, wood, and storm protection styles from America's leading brands. Schedule a free virtual or...
Read more >
Windows installers - PostgreSQL
This installer can run in graphical or silent install modes. The installer is designed to be a straightforward, fast way to get up...
Read more >
Window Replacement & Installation Services from Lowe's
One year of protection comes standard with window installation, and windows are backed by a Double Lifetime Labor Protection Plan.
Read more >
How to Install New Windows and Flash Them
Window installation is more complicated these days. But it's not hard if you know what you're doing. Let this Marvin Window installation instructor...
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