Unable to export Keyword file
- Dominant language
- Python
- Stars
- 35
- Forks
- 14
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 11
Description
### 🔍 Before submitting the issue
- [x] I have searched among the existing issues
- [x] I am using a Python virtual environment
### 🐞 Description of the bug
This get_abaqus_simulation_data is a beta API. The behavior and implementation may change in future.
CRITICAL - - logger - handle_exception - Uncaught exception
Traceback (most recent call last):
File "d:\2025\g2\saf-cli_310\battery-characterization_bkp\tests\unit\test_cell_format_creation.py", line 88, in
test_cell_type_pouch()
File "d:\2025\g2\saf-cli_310\battery-characterization_bkp\tests\unit\test_cell_format_creation.py", line 25, in test_cell_type_pouch
cell_pouch = geometry.CellFormat(
File "d:\2025\g2\saf-cli_310\battery-characterization_bkp\src\ansys\solutions\battery_characterization\solution\scripts\geometry.py", line 290, in __init__
prime.FileIO(model).export_lsdyna_keyword_file(
File "D:\2025\g2\saf-cli_310\battery-characterization_bkp\.venv\lib\site-packages\ansys\meshing\prime\core\fileio.py", line 588, in export_lsdyna_keyword_file
sim_data = json.loads(super().get_abaqus_simulation_data(0))
File "C:\Users\vpallapa\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\vpallapa\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\vpallapa\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
### 📝 Steps to reproduce
Trying to export simple mesh file into Dyna file (pyprime-0.9.5), Ansys 25.2
### 💻 Which operating system are you using?
Windows
### 📀 Which ANSYS version are you using?
252
### 🐍 Which Python version are you using?
3.10
### 📦 Installed packages
```shell
ansys-meshing-prime="^0.9.5"
```
Contributor guide
Research direction
Start by running tests/unit/test_cell_format_creation.py and inspect the CellFormat call at line 25, geometry.py line 290, and the FileIO.export_lsdyna_keyword_file entry point shown in the traceback. Compare the get_abaqus_simulation_data result with the JSON parsing failure when exporting the simple mesh; done means the reported Windows Python 3.10 reproduction exports the Dyna keyword file successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100