Hello!
Thanks for your nice twitter API.
I'm not an expert in programming but trying to install twython on my
Windows XP, Python2.6
I've installed it as below:
-----------------------------------------------------------------------------------------------------------------------
C:\twython>python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to twython.egg-info\requires.txt
writing twython.egg-info\PKG-INFO
writing top-level names to twython.egg-info\top_level.txt
writing dependency_links to twython.egg-info\dependency_links.txt
reading manifest file 'twython.egg-info\SOURCES.txt'
writing manifest file 'twython.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build\bdist.win32\egg
creating build\bdist.win32\egg\twython
copying build\lib\twython\twython.py -> build\bdist.win32\egg\twython
copying build\lib\twython.py -> build\bdist.win32\egg
copying build\lib\twython2k.py -> build\bdist.win32\egg
byte-compiling build\bdist.win32\egg\twython\twython.py to twython.pyc
byte-compiling build\bdist.win32\egg\twython.py to twython.pyc
byte-compiling build\bdist.win32\egg\twython2k.py to twython2k.pyc
Creating missing __init__.py for twython
byte-compiling build\bdist.win32\egg\twython\__init__.py to
__init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying twython.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying twython.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying twython.egg-info\dependency_links.txt -> build\bdist.win32\egg
\EGG-INFO
copying twython.egg-info\requires.txt -> build\bdist.win32\egg\EGG-
INFO
copying twython.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-
INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist\twython-0.8-py2.6.egg' and adding 'build
\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing twython-0.8-py2.6.egg
Removing c:\python26\lib\site-packages\twython-0.8-py2.6.egg
Copying twython-0.8-py2.6.egg to c:\python26\lib\site-packages
twython 0.8 is already the active version in easy-install.pth
Installed c:\python26\lib\site-packages\twython-0.8-py2.6.egg
Processing dependencies for twython==0.8
Searching for simplejson==2.0.9
Best match: simplejson 2.0.9
Processing simplejson-2.0.9-py2.6.egg
simplejson 2.0.9 is already the active version in easy-install.pth
Using c:\python26\lib\site-packages\simplejson-2.0.9-py2.6.egg
Searching for setuptools==0.6c9
Best match: setuptools 0.6c9
Processing setuptools-0.6c9-py2.6.egg
setuptools 0.6c9 is already the active version in easy-install.pth
Installing easy_install-script.py script to C:\Python26\Scripts
Installing easy_install.exe script to C:\Python26\Scripts
Installing
easy_install-2.6-script.py script to C:\Python26\Scripts
Installing easy_install-2.6.exe script to C:\Python26\Scripts
Using c:\python26\lib\site-packages\setuptools-0.6c9-py2.6.egg
Finished processing dependencies for twython==0.8
-----------------------------------------------------------------------------------------------------------------------
This seems to be successful, but when I try to setup Twython in
Python2.6,
It gives out an error saying there's no setup method.
>>> twitter = twython.setup(authtype="Basic", username="example", password="example")
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: 'module' object has no attribute 'setup'
>>> dir(twython)
['__builtins__', '__doc__', '__file__', '__loader__', '__name__',
'__package__', '__path__']