Skip to content

Compilation error on code that works fine locally #20

@zhendrikse

Description

@zhendrikse

My wave equation program cannot be run because of some vague compilation error (see WaveEquation source code on beta testing server)

Error:PythonError: Traceback (most recent call last):
File "/lib/python312.zip/_pyodide/_base.py", line 606, in eval_code_async
.compile()
^^^^^^^^^
File "/lib/python312.zip/_pyodide/_base.py", line 297, in compile
self._gen.send(self.ast)
File "/lib/python312.zip/_pyodide/_base.py", line 166, in _parse_and_compile_gen
return compile(mod, filename, mode, flags, dont_inherit, optimize)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 66
SyntaxError: 'await' outside async function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions