Comments (4)
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.
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.
Please let me know if this resolves your issue?
from optas.
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)
- Support Euler angles rather than only RPY in RobotModel HOT 1
- Documentation builds incorrectly HOT 1
- Visualizer and draw_sphere are missing HOT 3
- Add unit test that runs example.py HOT 1
- Deprecate spatialmath.py HOT 1
- Missing Matplotlib in deps
- Issue with visualizer HOT 4
- Fix instructions for installing from source
- Add safe percentage (or similar) in enforce_model_limits
- OSQP did_solve fails
- For two-arm robot, there happens incorrect geometric and analytical Jacobians HOT 5
- Add unit test for dual arm robot.
- Installation - sudo pip install . HOT 3
- Support for additional robot description formats
- Consider re-vamping visualizer
- Remove git rebase leftover
- Some functions need deprecating
- get_link_position_function() happens problem for mobile dual-arm robot
- `optas.Visualize.sphere` throwing TypeError in Python 3.12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optas.