New Kivy Installation: AttributeError: 'module' Object Has No Attribute 'require'
Solution 1:
It's showing error because of the File name you are saving the file with name 'kivy.py' which inturn is contradicting with kivy core package. Try renaming the file Hope it helps.
Solution 2:
So it seems more likely to me that your issue is with the ide. In fact if I was a betting man I'd bet everything I have that your IDE is the issue.
Please go through my answer and try the two scripts I posted. The most important thing you NEED to do now is paste the python code into notepad and run it through your command line.
If it works, you know what your issue is. If it doesn't try all the steps I've listed below. It's very possible that your ide is pointing to the wrong path(s) or something along those lines.
Try the following things please.
Step 1:
python -m pip list
Locate your kivy install and verify it's there, and it's version. You should see something like
Kivy (1.10.0)
Kivy-Garden (0.1.4)
kivy.deps.angle (0.1.4)
kivy.deps.glew (0.1.9)
kivy.deps.sdl2 (0.1.17)
If you see that stuff copy paste the below example and try running it.
Step 2: Script
import kivy
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text='Hello world')
if __name__ == '__main__':
MyApp().run()
If you get the same errors.
Try the following python -m pip show kivy
You should see something like
Name: Kivy
Version: 1.10.0
Summary: A software library for rapid development of hardware-accelerated
multitouch applications.
Home-page: http://kivy.org
Author: Kivy Team and other contributors
Author-email: kivy-dev@googlegroups.com
License: MIT
Location: c:\python36-32\lib\site-packages
Requires: pygments, Kivy-Garden, docutils
If you see this and even if you don't run the following command
python -m pip check kivy
This will tell you if you've met all the required dependencies for kivy. If not go through and install them.
There could be issues that I can't help you with based off of the current information that I have so my last piece of advice would be to do this as a last resort.
python -m pip uninstall kivy
python -m pip install kivy==1.10.0
Update: I've never used power shell so I don't know how it operates. Try using the command promot. Also you're using Anacondas IDE but are you also using Anaconda Python? If so certain commands are different and you'd have to bypass it and use the official tools. To make sure it's not a compatibility issue. https://docs.continuum.io/anaconda/faq
From what I see in the error code your kivy install is there and fine. Which means it's directly related to spider.
Post a Comment for "New Kivy Installation: AttributeError: 'module' Object Has No Attribute 'require'"