SofaDefrost / SoftRobots.DesignOptimization

Open Source Framework directed towards Design Optimization of Soft Robots using SOFA
GNU Affero General Public License v3.0
6 stars 6 forks source link

An error occurs when running the design optimization. #2

Open R-Ayanami opened 1 month ago

R-Ayanami commented 1 month ago

Hi, I am following the quick start steps, and everything ran smoothly up to the sensitivity analysis. However, when I try to run the optimization, it throws an error and stops. I am using the SensorFinger project as it is. What should I do? Here is the some outputs of my code. $python3 main.py -n SensorFinger -op 0 -o -ni 100

Load optimization problem config number 0
Starting design optimization.
---------------------------------------
Checking SOFA_ROOT and SOFAPYTHON3_ROOT
Using environment variable SOFA_ROOT: /home/<username>/SOFA/v22.12.00
---------------------------------------
[ERROR]   [PythonScript] OperationalError: (sqlite3.OperationalError) database is locked
[SQL: INSERT INTO alembic_version (version_num) VALUES ('v2.6.0.a')]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
  File "main.py", line 109, in <module>
    main()
  File "main.py", line 99, in main
    optimization_lib.optimize(Config, id_config=id_config, n_iter=args.n_iter, solver_library_name=args.solver_library, solver_name=args.solver_name, plot_results=not args.no_plot)
R-Ayanami commented 1 month ago

This is the answer for this problem. https://stackoverflow.com/questions/75966804/how-can-i-solve-the-error-regarding-the-storages-in-optuna Sorry.