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 10 - DLL error (post-installation)

See original GitHub issue

📚 Installation

Environment

I verified in python that my CUDA level is 10.1.

>>> import torch
>>> torch.version.cuda
'10.1'

I managed to install torch-scatter, and torch-sparse via the new pip wheels (thank you rusty1s).

${CUDA}='cu101'
pip install torch-scatter==latest+${CUDA} torch-sparse==latest+${CUDA} -f https://s3.eu-central-1.amazonaws.com/pytorch-geometric.com/whl/torch-1.4.0.html

I installed torch-geometric afterwards.

pip install torch-geometric

Testing…

>>> import torch
>>> import torch_geometric
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch_sparse\__init__.py", line 13, in <module>
    '_version', [osp.dirname(__file__)]).origin)
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch\_ops.py", line 106, in load_library
    ctypes.CDLL(path)
  File "C:\ProgramData\Anaconda3\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch_geometric\__init__.py", line 2, in <module>
    import torch_geometric.nn
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch_geometric\nn\__init__.py", line 2, in <module>
    from .data_parallel import DataParallel
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch_geometric\nn\data_parallel.py", line 5, in <module>
    from torch_geometric.data import Batch
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch_geometric\data\__init__.py", line 1, in <module>
    from .data import Data
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch_geometric\data\data.py", line 7, in <module>
    from torch_sparse import coalesce
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch_sparse\__init__.py", line 22, in <module>
    raise OSError(e)
OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed

It’s apparently missing a DLL. I am puzzled.

It appears to be torch-sparse.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rusty1scommented, Feb 18, 2020

That should explain the error. Please let me know if upgrading fixes the issue.

1reaction
rusty1scommented, Feb 18, 2020

I will look into it. Sorry!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 - DLL error (post-installation) · Issue #970 - GitHub
Installation Environment I verified in python that my CUDA level is 10.1. >>> import torch >>> torch.version.cuda '10.1' I managed to ...
Read more >
WSUS reinstallation and post install configuration fails
dll file which helps to ensure that sync starts. A) open command prompt with admin rights. B) C:\windows\Microsoft.NET\Framework64\v4.0.30319> ...
Read more >
Post-installation glitch with ORAEVRUS10.DLL - pls help
Hi I've installed 10g Express edition and everything is fine, except that the Windows 2003 Server event log is returning errors like this:...
Read more >
Example B1 issue (Windows): Post Installation guide
Hello ! I've recently achieved to download and install on windows10 Geant4 10_06_p01 without errors.So I'm trying to run example B1 as ...
Read more >
Documentation: 15: 17.5. Post-Installation Setup - PostgreSQL
On Cygwin, put the library directory in the PATH or move the .dll files into ... psql: error in loading shared libraries libpq.so.2.1:...
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