question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

oppia_tools Invalid Syntax

See original GitHub issue

when running python -m scripts.start ’ I got this error

File "/Users/nikil/Desktop/opensource/oppia/scripts/start.py", line 31, in <module>
    from . import install_third_party_libs
  File "scripts/install_third_party_libs.py", line 42, in <module>
    import python_utils  # isort:skip
  File "python_utils.py", line 34, in <module>
    import yaml  # isort:skip
  File "/Users/nikil/Desktop/opensource/oppia/../oppia_tools/pyyaml-5.1.2/yaml/__init__.py", line 374
    class YAMLObject(metaclass=YAMLObjectMetaclass):
                              ^
SyntaxError: invalid syntax

How can solve this issue?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinlee12commented, Dec 7, 2019

okay, let’s go with that approach.

1reaction
kevintab95commented, Dec 6, 2019

Hi @ShivanshRakesh, sounds good. I’ve assigned this issue to you. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid Syntax in Python: Common Reasons for SyntaxError
When the interpreter encounters invalid syntax in Python code, it will raise a SyntaxError exception and provide a traceback with some helpful information...
Read more >
An syntaxError: invalid syntax at the line of else operator in the ...
In the 10th line from the end (marked by "# Error arises here (!)") at the line of the "else" operator, I get...
Read more >
SyntaxError in Python: How to Handle Invalid Syntax in Python
In this tutorial, I will teach you how to handle SyntaxError in Python, including numerous strategies for handling invalid syntax in Python.
Read more >
Installation fails due to python's "SyntaxError: invalid syntax"
Installation fails due to python's "SyntaxError: invalid syntax" #364. Open. mmokrejs opened this issue on Apr 20, 2017 · 1 comment.
Read more >
Python 3 Debugging SyntaxError: invalid syntax - YouTube
Causes of the Python 3 error message SyntaxError: invalid syntax are examined, along with how to correct the error in each case.0:00 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found