title: Module python-twitter (github) giving error "No Module named cmdline" from shell
body: <p>I've just installed the latest python twitter build ( <a href="https://github.com/bear/python-twitter" rel="nofollow">https://github.com/bear/python-twitter</a> ) and I'm receiving the below error. I get it when I try to use "twitter" from the shell...the "pip install python-twitter" worked fine, except it uses outdated api. This one seemed it might be updated, but throws the below error.</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/local/bin/twitter", line 9, in &lt;module&gt;
      load_entry_point('twitter==1.12.1', 'console_scripts', 'twitter')()
    File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 353, in load_entry_point
      return get_distribution(dist).load_entry_point(group, name)
    File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2302, in load_entry_point
      return ep.load()
    File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2029, in load
      entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  ImportError: No module named cmdline
  </code></pre>
  
  <p>I'm having a hard time drilling down to what is causing this. Any thoughts?</p>
  
  <p>In response to comments, I'm posting the output for each step, to see why the error remains:</p>
  
  <h1>1</h1>
  
  <pre><code>pip uninstall twitter
  </code></pre>
  
  <p>response: </p>
  
  <pre><code>leo@production:~$ sudo pip uninstall twitter
  Uninstalling twitter:
    /usr/local/lib/python2.7/dist-packages/twitter-1.12.1-py2.7.egg
  Proceed (y/n)? y
    Successfully uninstalled twitter
  </code></pre>
  
  <h1>2</h1>
  
  <pre><code>sudo rm -rf /usr/lib/python2.7/site-packages/twitter-1.10.2-py2.7.egg
  </code></pre>
  
  <p>(silent)</p>
  
  <h1>3</h1>
  
  <pre><code>wget https://pypi.python.org/packages/source/t/twitter/twitter-1.12.1.tar.gz
  tar -xzf twitter*.tar.gz
  cd twitter*
  </code></pre>
  
  <p>(successful)</p>
  
  <h1>3</h1>
  
  <pre><code>sudo python setup.py build; sudo python setup.py install
  </code></pre>
  
  <p>Response:</p>
  
  <pre><code>p.py install
  running build
  running build_py
  running egg_info
  writing twitter.egg-info/PKG-INFO
  writing top-level names to twitter.egg-info/top_level.txt
  writing dependency_links to twitter.egg-info/dependency_links.txt
  writing entry points to twitter.egg-info/entry_points.txt
  reading manifest file 'twitter.egg-info/SOURCES.txt'
  writing manifest file 'twitter.egg-info/SOURCES.txt'
  running install
  running bdist_egg
  running egg_info
  writing twitter.egg-info/PKG-INFO
  writing top-level names to twitter.egg-info/top_level.txt
  writing dependency_links to twitter.egg-info/dependency_links.txt
  writing entry points to twitter.egg-info/entry_points.txt
  reading manifest file 'twitter.egg-info/SOURCES.txt'
  writing manifest file 'twitter.egg-info/SOURCES.txt'
  installing library code to build/bdist.linux-x86_64/egg
  running install_lib
  running build_py
  creating build/bdist.linux-x86_64/egg
  creating build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/follow.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/api.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/twitter_globals.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/ansi.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/stream.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/ircbot.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/timezones.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/auth.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/archiver.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/stream_example.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/cmdline.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/util.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/logger.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/oauth2.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/oauth.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/__init__.py -&gt; build/bdist.linux-x86_64/egg/twitter
  copying build/lib.linux-x86_64-2.7/twitter/oauth_dance.py -&gt; build/bdist.linux-x86_64/egg/twitter
  byte-compiling build/bdist.linux-x86_64/egg/twitter/follow.py to follow.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/api.py to api.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/twitter_globals.py to twitter_globals.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/ansi.py to ansi.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/stream.py to stream.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/ircbot.py to ircbot.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/timezones.py to timezones.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/auth.py to auth.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/archiver.py to archiver.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/stream_example.py to stream_example.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/cmdline.py to cmdline.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/util.py to util.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/logger.py to logger.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/oauth2.py to oauth2.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/oauth.py to oauth.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/__init__.py to __init__.pyc
  byte-compiling build/bdist.linux-x86_64/egg/twitter/oauth_dance.py to oauth_dance.pyc
  creating build/bdist.linux-x86_64/egg/EGG-INFO
  copying twitter.egg-info/PKG-INFO -&gt; build/bdist.linux-x86_64/egg/EGG-INFO
  copying twitter.egg-info/SOURCES.txt -&gt; build/bdist.linux-x86_64/egg/EGG-INFO
  copying twitter.egg-info/dependency_links.txt -&gt; build/bdist.linux-x86_64/egg/EGG-INFO
  copying twitter.egg-info/entry_points.txt -&gt; build/bdist.linux-x86_64/egg/EGG-INFO
  copying twitter.egg-info/top_level.txt -&gt; build/bdist.linux-x86_64/egg/EGG-INFO
  copying twitter.egg-info/zip-safe -&gt; build/bdist.linux-x86_64/egg/EGG-INFO
  creating 'dist/twitter-1.12.1-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
  removing 'build/bdist.linux-x86_64/egg' (and everything under it)
  Processing twitter-1.12.1-py2.7.egg
  Copying twitter-1.12.1-py2.7.egg to /usr/local/lib/python2.7/dist-packages
  Adding twitter 1.12.1 to easy-install.pth file
  Installing twitter-log script to /usr/local/bin
  Installing twitter script to /usr/local/bin
  Installing twitterbot script to /usr/local/bin
  Installing twitter-follow script to /usr/local/bin
  Installing twitter-stream-example script to /usr/local/bin
  Installing twitter-archiver script to /usr/local/bin
  
  Installed /usr/local/lib/python2.7/dist-packages/twitter-1.12.1-py2.7.egg
  Processing dependencies for twitter==1.12.1
  Finished processing dependencies for twitter==1.12.1
  </code></pre>