Skip to content

<unknown>:1:1-1:2: fatal: unexpected .: expected (, +, -, @, [, `, assert, break, class, complex, continue, def, del, exec, float, for, from, global, ident, if, import, int, lambda, newline, nonlocal, not, pass, print, raise, return, strbegin, try, while, with, yield, { or ~ ../third_party/stdlib/StringIO.py #59

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

Closed
alanjds opened this issue Aug 21, 2018 · 1 comment
Labels
imported Imported from google/grumpy

Comments

@alanjds
Copy link

alanjds commented Aug 21, 2018

google#392 opened by @Leon2012 on Jan 27

<unknown>:1:1-1:2: fatal: unexpected .: expected (, +, -, @, [, `, assert, break, class, complex, continue, def, del, exec, float, for, from, global, ident, if, import, int, lambda, newline, nonlocal, not, pass, print, raise, return, strbegin, try, while, with, yield, { or ~
../third_party/stdlib/StringIO.py
^                                
Traceback (most recent call last):
  File "/temp/python/grumpy/build/bin/pydeps", line 63, in <module>
    main(parser.parse_args())
  File "/temp/python/grumpy/build/bin/pydeps", line 39, in main
    imports = imputil.collect_imports(args.modname, args.script, gopath)
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/imputil.py", line 199, in collect_imports
    mod = pythonparser.parse(py_contents)
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/__init__.py", line 59, in parse
    mode, flags, version, engine)
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/__init__.py", line 29, in parse_buffer
    return parser.file_input(), lexer.comments
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/parser.py", line 89, in outer_rule
    result = inner_rule(parser)
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/parser.py", line 151, in rule
    parser.diagnostic_engine.process(error)
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/diagnostic.py", line 165, in process
    raise Error(diagnostic)
grumpy.pythonparser.diagnostic.Error: <unknown>:1:1-1:2: fatal: unexpected .: expected (, +, -, @, [, `, assert, break, class, complex, continue, def, del, exec, float, for, from, global, ident, if, import, int, lambda, newline, nonlocal, not, pass, print, raise, return, strbegin, try, while, with, yield, { or ~
../third_party/stdlib/StringIO.py
^                                
<unknown>:1:1-1:2: fatal: unexpected .: expected (, +, -, @, [, `, assert, break, class, complex, continue, def, del, exec, float, for, from, global, ident, if, import, int, lambda, newline, nonlocal, not, pass, print, raise, return, strbegin, try, while, with, yield, { or ~
../third_party/stdlib/StringIO.py
^                                
Traceback (most recent call last):
  File "/temp/python/grumpy/build/bin/grumpc", line 106, in <module>
    sys.exit(main(parser.parse_args()))
  File "/temp/python/grumpy/build/bin/grumpc", line 53, in main
    mod = pythonparser.parse(py_contents)
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/__init__.py", line 59, in parse
    mode, flags, version, engine)
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/__init__.py", line 29, in parse_buffer
    return parser.file_input(), lexer.comments
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/parser.py", line 89, in outer_rule
    result = inner_rule(parser)
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/parser.py", line 151, in rule
    parser.diagnostic_engine.process(error)
  File "/temp/python/grumpy/build/lib/python2.7/site-packages/grumpy/pythonparser/diagnostic.py", line 165, in process
    raise Error(diagnostic)
grumpy.pythonparser.diagnostic.Error: <unknown>:1:1-1:2: fatal: unexpected .: expected (, +, -, @, [, `, assert, break, class, complex, continue, def, del, exec, float, for, from, global, ident, if, import, int, lambda, newline, nonlocal, not, pass, print, raise, return, strbegin, try, while, with, yield, { or ~
../third_party/stdlib/StringIO.py
^                                
make: *** [build/src/__python__/cStringIO/module.go] Error 1
vagrant@vagrant-ubuntu-trusty-64:/temp/python/grumpy$ python -V
Python 2.7.6
@alanjds alanjds added the imported Imported from google/grumpy label Aug 21, 2018
@alanjds
Copy link
Author

alanjds commented Sep 2, 2018

@Leon2012 Can you provide the script that produces this error?

I will close the issue for now. Please reopen when providing the script.

@alanjds alanjds closed this as completed Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported Imported from google/grumpy
Projects
None yet
Development

No branches or pull requests

1 participant