Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error with latest HEAD #92

Closed
bararchy opened this issue Jul 29, 2015 · 2 comments
Closed

Compile error with latest HEAD #92

bararchy opened this issue Jul 29, 2015 · 2 comments

Comments

@bararchy
Copy link

(cd src; make all)
make[1]: Entering directory '/home/unshadow/Desktop/git-projects/libinjection/src'
./sqlparse2c.py < sqlparse_data.json > libinjection_sqli_data.h
  File "./sqlparse2c.py", line 51
    """
      ^
SyntaxError: invalid syntax
Makefile:50: recipe for target 'libinjection_sqli_data.h' failed
make[1]: *** [libinjection_sqli_data.h] Error 1
make[1]: Leaving directory '/home/unshadow/Desktop/git-projects/libinjection/src'
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 2

@bararchy
Copy link
Author

Looking at the issue a little bit more, I can see that becuase I use Arch Linux the default Python version is 3, changing #!/usr/bin/env python to #!/usr/bin/env python2 raised the following error:

(cd src; make all)
make[1]: Entering directory '/home/unshadow/Desktop/git-projects/libinjection/src'
./sqlparse2c.py < sqlparse_data.json > libinjection_sqli_data.h
Traceback (most recent call last):
  File "./sqlparse2c.py", line 131, in <module>
    sys.exit(toc(json.load(sys.stdin)))
  File "/usr/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Makefile:50: recipe for target 'libinjection_sqli_data.h' failed
make[1]: *** [libinjection_sqli_data.h] Error 1
make[1]: Leaving directory '/home/unshadow/Desktop/git-projects/libinjection/src'
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 2

WGH- added a commit to WGH-/libinjection that referenced this issue Dec 17, 2018
Fixes compilation failures in distributions that have 'python' refer
to Python 3.

See issue client9#92.
zimmerle pushed a commit to libinjection/libinjection that referenced this issue Sep 16, 2020
Fixes compilation failures in distributions that have 'python' refer
to Python 3.

See issue client9/libinjection#92.

That was originally posted at: client9/libinjection#144
@zimmerle
Copy link
Contributor

Safe to be closed as consequence of #144.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants