Skip to content

SyntaxError: invalid character in identifier #8

Open
@wannaphong

Description

@wannaphong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions