Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue importing soundcard #121

Open
UltimateDucc opened this issue Jan 23, 2021 · 8 comments
Open

Issue importing soundcard #121

UltimateDucc opened this issue Jan 23, 2021 · 8 comments

Comments

@UltimateDucc
Copy link

Importing soundcard:
import soundcard as sc

Error when the program is run:
Exception has occurred: OSError ctypes.util.find_library() did not manage to locate a library called 'ole32'

Python version is 3.8

@bastibe
Copy link
Owner

bastibe commented Jan 27, 2021

What version of Windows are you running? ole32 should be available in Windows 7, 8, 10.

@UltimateDucc
Copy link
Author

I am running on Windows 10.

@UltimateDucc
Copy link
Author

I also have multiple files called 'ole32.dll' installed on my system

@bastibe
Copy link
Owner

bastibe commented Jan 27, 2021

Frankly, I don't know Windows' internals particularly well, and don't know why ole32 is not available on your system. But here are a few things you can try:

Perhaps your Python is 32 bit and your ole32 is 64 bit?
Perhaps your Python is somehow configured to not search system libraries?
Perhaps you need to install some Visual C++ Redistributable?

Sorry to not being able to help...

@UltimateDucc
Copy link
Author

My python is 64-bit. Which Visual C++ Redistributable are affected/installed?

@bastibe
Copy link
Owner

bastibe commented Jan 30, 2021

I don't know. It was just an idea. As far as I know, you shouldn't need any of them, but I don't have a clean install of Windows here to test.

I would think that perhaps this is some kind of path issue. Is your ole32.dll in a directory that is part of your $PATH environment variable?

@UltimateDucc
Copy link
Author

There is no ole32 in the directories, where should I get ole32.dll from and where should I put it?

@bastibe
Copy link
Owner

bastibe commented Feb 3, 2021

It is usually in C:\Windows\System32, which should be on $PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants