Menu

MySQL-python-0.9.2 python setup.py build

Help
Anonymous
2003-03-03
2012-09-19
  • Anonymous

    Anonymous - 2003-03-03

    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

     
    • Greg Fortune

      Greg Fortune - 2003-03-03

      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.

       
    • Anonymous

      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

       
    • Andy Dustman

      Andy Dustman - 2003-03-08

      It  says in the README you need Distutils-1.0.2, included in Python 2.1 or later.

       
      • Bob Ourso

        Bob Ourso - 2003-03-08

        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...

         
    • Bob Ourso

      Bob Ourso - 2003-03-08

      Oops...that last one got away from me...meant for another post...Pardons...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.