Giter Club home page Giter Club logo

Comments (4)

cmower avatar cmower commented on June 14, 2024

Hi @zhuhongwu0918 , thanks for raising this issue. I'm unable to reproduce the error. Could you let me know exactly what you run that produces this error, please also let me know the version of python and pip, and your OS.

from optas.

cmower avatar cmower commented on June 14, 2024

I have just looked into this further and I am quite sure that you are running an older version of Python that is not supported by OpTaS (i.e. Python 3.6). The error you show is coming from the use of f-strings in builder.py.

See this example

$ python3.6
Python 3.6.15 (default, Apr 25 2022, 01:55:53) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 234
>>> print(f"Hello {a=}")
  File "<fstring>", line 1
    (a=)
      ^
SyntaxError: invalid syntax

$ python
Python 3.8.10 (default, Nov 14 2022, 12:59:47) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 234
>>> print(f"Hello {a=}")
Hello a=234

Probably the best thing is to upgrade your version of Python to 3.8 and re-run the tests - make sure python is linked to the correct version of Python.

from optas.

cmower avatar cmower commented on June 14, 2024

Please let me know if this resolves your issue?

from optas.

cmower avatar cmower commented on June 14, 2024

I am closing this issue.

I am quite certain that the issue you are experiencing is due to the version of Python you are running (i.e. 3.6). Since the latest merge #119, we are testing support for 3.7>=.

Please consider upgrading your version of python.

If the issue persists with a later version of python (i.e. 3.7, 3.8, or 3.9) then please re-open.

from optas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.