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 Diffvg missing module

See original GitHub issue

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: image

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:7

github_iconTop GitHub Comments

9reactions
surjikalcommented, Sep 11, 2021

What worked for me, for whatever reason, is renaming the site-packages/diffvg-0.0.1-py3.8-win-amd64.egg/diffvg file to diffvg.pyd

1reaction
marzia-risocommented, Sep 11, 2021

@surjikal It worked for me too! Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 Missing Module - Microsoft Community
The issue seems to be due to some .dll file corrupted. I would suggest you to run SFC scan. a) Press 'Windows +...
Read more >
DiffVG/pybind11/tools/FindPythonLibsNew.cmake · ma-xu ...
This module finds the libraries corresponding to the Python ... VERSION will typically be like "2.7" on unix, and "27" on windows.
Read more >
diffq · PyPI
Differentiable Model Compression via Pseudo Quantization Noise. linter badge tests badge cov badge. DiffQ performs differentiable quantization using pseudo ...
Read more >
KeyError: pixel - pixray - Issues Antenna
Not running with pydiffvg drawer support No module named 'pydiffvg' ... git clone https://github.com/pixray/diffvg && cd diffvg && git submodule update ...
Read more >
CMake must be installed to build the following extensions: dlib ...
No need to install VSCode. I used create python virtual environment version 3.6 and installed dlib with wheel file as it was supporting...
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