Python ModuleNotFoundError?

Hi, I just downloaded Python and installed SimConnect. However, when I try to run it, it doesn't find the file. So I

 pip show simconnect

and he showed me this:

Name: SimConnect

Version: 0.4.26

Summary: Adds a pythonic wrapper for SimConnect SDK.

Home page: https://github.com/odwdinc/Python-SimConnect

Author: Anthony Pray

Author email: anthony.pray@gmail.com

License: AGPL 3.0

Location: C:\Users\Sven\AppData\Local\Programs\Python\Python312\Lib\site-packages

Requires:

Required by:
My scripts path, where SimConnect can also be found:
C:\Users\Sven\AppData\Local\Programs\Python\Python312\Scripts

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
23 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Fab1anDev
8 months ago

Make a requirements.txt and insert the module. pip install -r requirements.txt

Fab1anDev
8 months ago
Reply to  SvenHunting

Top.

Fab1anDev
8 months ago

Link: http://0x0.st/X9bt.tar.gz. You need Winrar or 7z.

Fab1anDev
8 months ago

So it works with me. Tk was the name (always…). From the Arch Repos

Fab1anDev
8 months ago

How is the Tkinter Library called? Did you know that you installed the above pypi? Are there other ways now?

Fab1anDev
8 months ago

What are you programming about? VSCode did you save that?

Fab1anDev
8 months ago

Old silence.. Try that. I'm on the phone.

 import tkinter as tk from SimConnect import * def get_data_on_click():  # Verbindung zum Simulator herstellen  conn = simconnect.SimConnect()   # Daten abrufen  data = conn.GetData()   # Codegenerator verwenden, um den Code zu generieren  generated_code = generate_code(data)   # Generierten Code in einem Textfeld anzeigen  text_output.delete(1.0, tk.END)  # Löschen des vorherigen Textes  text_output.insert(tk.END, generated_code) # GUI erstellen root = tk.Tk() root.title("MSFS2020 Data Tool") # Button zum Datenabruf get_data_button = tk.Button(root, text="Daten abrufen", command=get_data_on_click) get_data_button.pack() # Textfeld für den generierten Code text_output = tk.Text(root, height=10, width=50) text_output.pack() # GUI starten root.mainloop() input("Drücken Sie Enter, um das Programm zu beenden...")
Fab1anDev
8 months ago

Show the error message(In the code block)

Fab1anDev
8 months ago

Best of all on good question.

Look at the Docs. That’s why they’re here:D.

from SimConnect import *

and not

import simconnect
Fab1anDev
8 months ago

from SimConnect import *

Next time use a code block.

Fab1anDev
8 months ago

then show your code

crimsonfire
8 months ago

kA too inaccurate, but would anyway use a virtual environment, you have significantly less waste in the system of witness what you need net

cleanercode
8 months ago

I don’t know what you’re trying to do.

But modules have to be imported.

from SimConnect import *