odwdinc / Python-SimConnect

Python interface for MSFS2020 SimConnect.dll
GNU Affero General Public License v3.0
270 stars 107 forks source link

FileNotFoundError SimConnect.dll #134

Closed Innercode closed 6 months ago

Innercode commented 6 months ago

Hi,

I getting an error when I try to initiate SimConnect. sm = SimConnect()

The error: FileNotFoundError: Could not find module 'C:\Code\SimConnect\venv\Lib\site-packages\SimConnect\SimConnect.dll' (or one of its dependencies). Try using the full path with constructor syntax.

The path is correct. Tried to replace the dll with a fresh SimConnect.dll from the SDK but the error stil exists.

Python version Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32

Innercode commented 6 months ago

Fixed it!

Was missing Visual C++ Redistributable for Visual Studio 2015