title: New Kivy installation: AttributeError: 'module' object has no attribute 'require'
body: <p>kivy 1.10.0, python 3.4.5, windows 10, using Anaconda's Spyder IDE</p>
  
  <p>After much trouble trying to install kivy on my windows 10 computer, I was able to...sort of. I downgraded python to the most recent supported version.</p>
  
  <p>I put in kivy's stock code to make sure it's working:</p>
  
  <pre><code>import kivy
  kivy.require('1.0.6') # replace with your current kivy version !
  
  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()
  </code></pre>
  
  <p>Changing my version to 1.10.0. But I got the following error and trace back:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):</p>
    
    <p>File "&#60;ipython-input-6-498c1728e978>", line 1, in 
        runfile('C:/Users/Andrew/Documents/Programming/Kivvv/UsageExample.py',  wdir='C:/Users/Andrew/Documents/Programming/Kivvv')</p>
    
    <p>File "C:\Users\Andrew\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 866, in runfile
        execfile(filename, namespace)</p>
    
    <p>File "C:\Users\Andrew\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
        exec(compile(f.read(), filename, 'exec'), namespace)</p>
    
    <p>File "C:/Users/Andrew/Documents/Programming/Kivvv/UsageExample.py", line 12, in 
        kivy.require('1.10.0') # replace with your current kivy version !</p>
    
    <p>AttributeError: 'module' object has no attribute 'require'</p>
  </blockquote>
  
  <p>Also ran</p>
  
  <pre><code>print(dir(kivy))
  </code></pre>
  
  <p>which returned this list:</p>
  
  <blockquote>
    <p>['<strong>doc</strong>', '<strong>loader</strong>', '<strong>name</strong>', '<strong>package</strong>', '<strong>path</strong>', '<strong>spec</strong>']</p>
  </blockquote>
  
  <p>My guess is that kivy didn't install properly, but I've had so many troubles installing it that I don't want to reinstalling it until that is clearly the next best option. </p>
  
  <p>Also, if it helps, when running the kivy installation process on the kivy website, several steps return an error regarding "splitlines" even though each step successfully finishes--</p>
  
  <blockquote>
    <p>Exception:</p>
    
    <p>Traceback (most recent call last):</p>
    
    <p>File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main</p>
  
  <pre><code>status = self.run(options, args)
  </code></pre>
    
    <p>File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\commands\install.py", line 335, in run</p>
  
  <pre><code>wb.build(autobuilding=True)
  </code></pre>
    
    <p>File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\wheel.py", line 749, in build</p>
  
  <pre><code>self.requirement_set.prepare_files(self.finder)
  </code></pre>
    
    <p>File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files</p>
  
  <pre><code>ignore_dependencies=self.ignore_dependencies))
  </code></pre>
    
    <p>File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\req\req_set.py", line 666, in _prepare_file</p>
  
  <pre><code>check_dist_requires_python(dist)
  </code></pre>
    
    <p>File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\utils\packaging.py", line 48, in check_dist_requires_python</p>
  
  <pre><code>feed_parser.feed(metadata)
  </code></pre>
    
    <p>File "C:\Users\Andrew\Anaconda3\lib\email\feedparser.py", line 177, in feed</p>
  
  <pre><code>self._input.push(data)
  </code></pre>
    
    <p>File "C:\Users\Andrew\Anaconda3\lib\email\feedparser.py", line 100, in push</p>
  
  <pre><code>parts = data.splitlines(True)
  </code></pre>
    
    <p>AttributeError: 'NoneType' object has no attribute 'splitlines'</p>
  </blockquote>
  
  <p>Not sure if it make a difference, but I decided to include it in case it is a good clue to what's going on.</p>
  
  <p>Thanks so much!!!</p>
  
  <p>Update, 5-12-17:</p>
  
  <p>I went ahead and tried the program by pasting it in notepad and running it from there, but I got the same error message.</p>
  
  <p>I then did</p>
  
  <pre><code>python -m pip list 
  </code></pre>
  
  <p>in the powershell, and none of these popped up:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>It looks like kivy didn't install after all. After trying to run the installation again, here is what my computer shoots back at me:</p>
  
  <pre><code>PS C:\Users\Andrew&gt; python -m pip install kivy
  Collecting kivy
    Using cached Kivy-1.10.0-cp34-cp34m-win_amd64.whl
  Collecting Kivy-Garden&gt;=0.1.4 (from kivy)
    Using cached kivy-garden-0.1.4.tar.gz
  Requirement already satisfied: docutils in 
  c:\users\andrew\anaconda3\lib\site-packages (from kivy)
  Requirement already satisfied: pygments in 
  c:\users\andrew\anaconda3\lib\site-packages (from kivy)
  Exception:
  Traceback (most recent call last):
    File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\basecommand.py", 
  line 215, in main
      status = self.run(options, args)
    File "C:\Users\Andrew\Anaconda3\lib\site-
  packages\pip\commands\install.py", line 335, in run
      wb.build(autobuilding=True)
    File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\wheel.py", line 749, in build
      self.requirement_set.prepare_files(self.finder)
    File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
      ignore_dependencies=self.ignore_dependencies))
    File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\req\req_set.py", line 666, in _prepare_file
      check_dist_requires_python(dist)
    File "C:\Users\Andrew\Anaconda3\lib\site-packages\pip\utils\packaging.py", line 48, in check_dist_requires_python
      feed_parser.feed(metadata)
    File "C:\Users\Andrew\Anaconda3\lib\email\feedparser.py", line 177, in feed
      self._input.push(data)
    File "C:\Users\Andrew\Anaconda3\lib\email\feedparser.py", line 100, in push
      parts = data.splitlines(True)
  AttributeError: 'NoneType' object has no attribute 'splitlines'
  </code></pre>
  
  <p>Since I'm not getting that "kivy installed" message, it looks like this "splitlines" attribute error is preventing the installation from finishing. Any idea how I can fix this?</p>