installing package in windows..

52 views
Skip to first unread message

Rajesh Sarpotdar

unread,
Jun 14, 2011, 8:13:26 AM6/14/11
to adns-python
when i am trying to install it using 'python setup.py install' i am
getting following error...

Traceback (most recent call last):
File "setup.py", line 22, in <module>
(sys.platform, os.name)
TypeError: exceptions must be old-style classes or derived from
BaseException, not str



please let me know what i am doing wrong...
thanks for time...

Andy Dustman

unread,
Jun 14, 2011, 8:40:01 AM6/14/11
to adns-python
I probably need to update the package for newer versions of Python.
See this for similar cases:

http://www.google.com/search?q=TypeError%3A+exceptions+must+be+old-style+classes+or+derived+from+BaseException

Andy Dustman

unread,
Jun 14, 2011, 11:09:07 AM6/14/11
to adns-python
It's not anything you're doing wrong. Historically, Python used to use
string-based exceptions, and these no longer work as of Python 2.6.
Fortunately you only need to change the raise statement at line 21 in
setup.py to raise a class-based exception. The bad news is, adns-
python has never been used on Windows, which is why an exception was
being raised in the first place. It appears someone has ported it to
Windows, which is news to me:

http://adns.jgaa.com/

Still, this means you are in uncharted territory, as far as I know. In
principle, it should be able to compiled on Windows now, but it needs
a new (or modified) setup.py.

On Jun 14, 8:13 am, Rajesh Sarpotdar <rajeshsrp...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages