I'm very new to python and this error completly threw me (installing on SunOs 5.8):
>> python setup.py build
error in setup script: invalid distribution option 'platforms'
Exit 1
I've tried the previous version of MySQL-python (0.9.1) and got the same error, so I'm convinced it's me, but I'm not sure how!
I tried using the -v option and the error appears at this point:
import distutils.extension # precompiled from /usr/local/lib/python2.0/distutils/extension.pyc
error in setup script: invalid distribution option 'platforms'
If anyone could just point me in the right direction to sort this out please I'd be really grateful! (I had a look at the 1st 25 posts and couldn't see anything similar.)
Regards,
Maria
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try placing a # at the beginning of line 110 in setup.py. That should fix the problem at least for the time being and allow you to install.
It looks like distutils for Python 2.0 (and maybe only on Solaris) did not support the platforms field. Upgrading to a newer version of Python may help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-03-04
Thanks for your help, it worked fine!
I'll look into getting a new version of python on our systems (may take some time as there maybe other implications for other people).
Regards,
Maria
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm very new to python and this error completly threw me (installing on SunOs 5.8):
>> python setup.py build
error in setup script: invalid distribution option 'platforms'
Exit 1
I've tried the previous version of MySQL-python (0.9.1) and got the same error, so I'm convinced it's me, but I'm not sure how!
I tried using the -v option and the error appears at this point:
import distutils.extension # precompiled from /usr/local/lib/python2.0/distutils/extension.pyc
error in setup script: invalid distribution option 'platforms'
If that's any help.
I checked these in setup.py and they seem fine:
include_dirs = [
'/usr/include/mysql', '/usr/local/include/mysql',
'/usr/local/mysql/include/mysql'
]
library_dirs = [
'/usr/lib/mysql', '/usr/local/lib/mysql',
'/usr/local/mysql/lib/mysql'
]
If anyone could just point me in the right direction to sort this out please I'd be really grateful! (I had a look at the 1st 25 posts and couldn't see anything similar.)
Regards,
Maria
Try placing a # at the beginning of line 110 in setup.py. That should fix the problem at least for the time being and allow you to install.
It looks like distutils for Python 2.0 (and maybe only on Solaris) did not support the platforms field. Upgrading to a newer version of Python may help.
Thanks for your help, it worked fine!
I'll look into getting a new version of python on our systems (may take some time as there maybe other implications for other people).
Regards,
Maria
It says in the README you need Distutils-1.0.2, included in Python 2.1 or later.
Yes, I read the README...I have version 1.0.3
DATA
__file__ = '/usr/lib/python2.2/distutils/__init__.pyc'
__name__ = 'distutils'
__path__ = ['/usr/lib/python2.2/distutils']
__revision__ = '$Id: __init__.py,v 1.22 2001/10/05 20:43:09 theller Ex...
__version__ = '1.0.3'
VERSION
1.0.3
Still no luck...I'm keeping at it tho...
Oops...that last one got away from me...meant for another post...Pardons...