Menu

Is it a bug? 'NoneType' and 'NoneType'

Help
Lukasz
2007-10-22
2012-09-19
  • Lukasz

    Lukasz - 2007-10-22

    Hi all
    I'm trying to build some small app in XCode - PyObjC+MySQLdb. Everything works great till I try to compile for Deployment.
    I tried in Intel and PPC with exactly same result:

    Building target “Deployment” of project “Match” with configuration “Deployment”

    Checking Dependencies
    ExternalBuildToolExecution Deployment
    ..... thousand of lines here and at the end:

    Thinning /Users/Lukasz/Xcode/PS/Match/build/Deployment/Match.app/Contents/Resources/Python/lib-dynload/_codecs_iso2022.so to ppc, i386
    Traceback (most recent call last):
    File "/Users/Lukasz/Xcode/PS/Match/setup.py", line 59, in ?
    setup(**setup_options)
    File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
    File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
    File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 389, in run
    self._run()
    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 510, in _run
    self.run_normal()
    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 570, in run_normal
    self.create_binaries(py_files, pkgdirs, extensions, loader_files)
    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 672, in create_binaries
    platfiles = mm.run()
    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachOStandalone.py", line 147, in run
    node.write(f)
    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 330, in write
    arch.write(fileobj)
    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 207, in write
    self.synchronize_size()
    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 199, in synchronize_size
    if (self.total_size + self.sizediff) > self.low_offset:
    TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'

    Somebody knows what's going on?

     
    • Skip Montanaro

      Skip Montanaro - 2007-10-22

      Whatever it is, it doesn't look like a problem with mysql-python. I suggest you ask on the Mac Python mailing list: pythonmac-sig@python.org.

      Skip

       
      • Lukasz

        Lukasz - 2007-10-22

        Possible... but this error appears ONLY with MySQLdb... I don't know what to think. Lot of problems with installing MySQLdb, it's why I think problem is somewhere here. Does anybody successfully installed, developed and deployed apps with XCode, python and MySQLdb? Any help appreciated..

        Ł

         
        • Skip Montanaro

          Skip Montanaro - 2007-10-22

          I've used MySQL a lot with Python on my Mac. Like most folks I get the compiler tools from the Apple Xcode distribution.

          Skip

           
          • Lukasz

            Lukasz - 2007-10-23

            Hi Skip,

            I'm hobbyist, using Development tools for "mind training" rather. Last time i had an idea how to improve my office environment - I start to fight more seriously.
            First I installed 1.2.2 - with problems, some answers I found on this list, but I couldn't compile.
            Next I found nice package for mac. version 1.2.1. Compiling with XCode was possible, but problems with encoding starts: same program worked different way (much worse - unicode) than with 1.2.2. So, i went back to 1.2.2. But after few days of hard fight no result with compiling. It's why I'm suspecting MySQLdb.

            What configuration you have? Installing was soothly? Some tricks? I tried on two macs, PPC and Intel with identical (no) result. What I'm doing wrong? :-( Help!

            Ł

             

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.