Installation problem?

52 views
Skip to first unread message

Tak Yeon

unread,
Sep 14, 2009, 12:12:58 PM9/14/09
to Twython Talk
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__']



Ryan McGrath

unread,
Sep 14, 2009, 12:20:20 PM9/14/09
to twytho...@googlegroups.com
Hey Tak,

Can you try something for me? Instead of "import twython", try "from twython import twython", and let me know if it works after that.

- Ryan

Tak Yeon

unread,
Sep 14, 2009, 12:52:05 PM9/14/09
to Twython Talk
Uh oh.... it works!
Thank you so~ much!


On Sep 14, 12:20 pm, Ryan McGrath <ryan.mcgra...@gmail.com> wrote:
> Hey Tak,
> Can you try something for me? Instead of "import twython", try "from twython
> import twython", and let me know if it works after that.
>
> - Ryan
>

Ryan McGrath

unread,
Sep 14, 2009, 1:09:25 PM9/14/09
to twytho...@googlegroups.com
Yeah, this is an issue some people have been encountering. Not sure what it is - if you'd like, you can file it as a bug over at GitHub.

- Ryan
Reply all
Reply to author
Forward
0 new messages