I’m following a youtube tutorial and trying to install and import kivy into vscode, I used the commanded in the vscode terimal “pip install kivy” which installed what I am assuming is the latest version of kivy. When I hover over kivy.app and kivy.uix.label a command window pops up and says “Import “kivy.app” could not be resolved”
from kivy.app import App
from kivy.uix.label import Label
class BasicApp(App):
def build(self):
label = Label(text="Hello World")
return label
app = BasicApp()
app.run
When ran, I get these two errors.
File "/Users/bob/Desktop/projects/Python PRO/kivyapps/kivy.py", line 1, in <module>
import kivy
File "/Users/bob/Desktop/projects/Python PRO/kivyapps/kivy.py", line 2, in <module>
from kivy import App
ImportError: cannot import name 'App' from partially initialized module 'kivy' (most likely due to a circular import) (/Users/bob/Desktop/projects/Python PRO/kivyapps/kivy.py)
I’ve tried following some guides and instructions on the kivy website but nothing has worked, please help.