pseudo-python icon indicating copy to clipboard operation
pseudo-python copied to clipboard

SyntaxError: invalid character in identifier

Open wannaphong opened this issue 8 years ago • 0 comments

I using Python 3.5.1 in ubuntu. I installed version of pseudo-python. a.py

data1 = int(input("Num : "))
max = 12
min = 1
while min<=max:
    print("%d * %d = %d" % (data1,min,data1*min))
    min+=1
$ pseudo-python a.py csharp
Traceback (most recent call last):
  File "/usr/local/bin/pseudo-python", line 9, in <module>
    load_entry_point('pseudo-python==0.2.28', 'console_scripts', 'pseudo-python')()
  File "/usr/local/lib/python3.5/dist-packages/pseudo_python/main.py", line 60, in main
    node = pseudo_python.translate(source)
  File "/usr/local/lib/python3.5/dist-packages/pseudo_python/__init__.py", line 6, in translate
    return pseudo_python.ast_translator.ASTTranslator(pseudo_python.parser.parse(source), source).translate()
  File "/usr/local/lib/python3.5/dist-packages/pseudo_python/parser.py", line 5, in parse
    x = ast.parse(source)
  File "/usr/lib/python3.5/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 1
    data1 = int(input("Num : "))
         ^
SyntaxError: invalid character in identifier

wannaphong avatar May 23 '16 11:05 wannaphong