macholib errors when installing PyInstaller 2.1 on Python 2.4 or 2.5

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

macholib errors when installing PyInstaller 2.1 on Python 2.4 or 2.5

Paul Baker
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: macholib errors when installing PyInstaller 2.1 on Python 2.4 or 2.5

Raoul Snyman

macholib is used on OS X


On Mon, 11 May 2015, 15:13 Paul Baker <[hidden email]> wrote:
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: macholib errors when installing PyInstaller 2.1 on Python 2.4 or 2.5

Paul Baker
> macholib is used on OS X

Only on OS X? So it is OK for me to ignore the macholib errors on Windows?

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: macholib errors when installing PyInstaller 2.1 on Python 2.4 or 2.5

Raoul Snyman
I presume so. I'm just another user of PyInstaller :-)

On Sun, May 24, 2015 at 6:03 PM Paul Baker <[hidden email]> wrote:
> macholib is used on OS X

Only on OS X? So it is OK for me to ignore the macholib errors on Windows?

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.