Skip to content

doesn't work with OSX after installing with pip #1

@z0mbi3

Description

@z0mbi3

I get this error when I type import structfmt:

scalpel:~ miguel$ python
Python 2.7.12 (default, Oct 11 2016, 05:20:59)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import structfmt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/structfmt/__init__.py", line 2, in <module>
    from .structfmt import struct_format, struct_named_format
  File "/usr/local/lib/python2.7/site-packages/structfmt/structfmt.py", line 2, in <module>
    from .StructNamedFormatter import StructNamedFormatter
  File "/usr/local/lib/python2.7/site-packages/structfmt/StructNamedFormatter.py", line 79
    def bool(self, *fields, mapper=None):
                                 ^
SyntaxError: invalid syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions