I am seeing the following macholib errors when installing PyInstaller
2.1 on Python 2.4 or 2.5. These seem to be caused by macholib 1.5 no
longer supporting Python 2.5 and earlier
[http://pythonhosted.org//macholib/changelog.html#macholib-1-5].

On Windows, despite these errors, the installation completes and
PyInstaller seems to work correctly. I assume macholib is unused on
Windows, so is it OK for me to ignore these errors?

----

C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\MachO.py:68:
Warning: 'with' will become a reserved keyword in Python 2.6
  File "C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\MachO.py",
line 68
    with open(filename, 'rb') as fp:
            ^
SyntaxError: invalid syntax

C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\MachOStandalone.py:130:
Warning: 'with' will become a reserved keyword in Python 2.6
  File 
"C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\MachOStandalone.py",
line 130
    with open(fn, 'rb+') as f:
            ^
SyntaxError: invalid syntax

  File "C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\macho_dump.py",
line 20
    print(path, file=fp)
                    ^
SyntaxError: invalid syntax

  File "C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\macho_find.py",
line 7
    print(path, file=fp)
                    ^
SyntaxError: invalid syntax

  File "C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\ptypes.py",
line 115
    return size, len(struct.unpack(format, b'\x00' * size))
                                                 ^
SyntaxError: invalid syntax

  File "C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\SymbolTable.py",
line 38
    nlists.append((cmd, strtab[cmd.n_un:strtab.find(b'\x00', cmd.n_un)]))
                                                          ^
SyntaxError: invalid syntax

C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\util.py:144:
Warning: 'as' will become a reserved keyword in Python 2.6
  File "C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\util.py",
line 144
    except (IOError, os.error) as why:
                                ^
SyntaxError: invalid syntax

  File "C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\_cmdline.py",
line 12
    print('%s: %s: No such file or directory' % (sys.argv[0], path),
file=sys.stderr)
                                                                         ^
SyntaxError: invalid syntax

  File "C:\Python25\Lib\site-packages\PyInstaller\lib\macholib\__main__.py",
line 13
    file=sys.stderr)
        ^
SyntaxError: invalid syntax

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to