Skip to content

export_field_file throws ERROR_GRAPHICS_REQUIRED warnings #6241

Closed
@nathmay

Description

@nathmay

Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

Description of the bug

I am using export_field_file with an HFSS application object. This is throwing a graphics warning, although I believe the export file option should not need graphics. Export functionalities seem to be working perfectly otherwise.

Steps To Reproduce

app = Hfss(....)
app.analyze()
app.post.export_field_file("ComplexMag_E")

The above is throwing the following warnings:

\.venv\Lib\site-packages\ansys\aedt\core\visualization\plot\pyvista.py:55: UserWarning: Graphics dependencies are required. Please install the ``graphics`` target to use this method. You can install it by running `pip install pyaedt[graphics]` or `pip install pyaedt[all]`.
  warnings.warn(ERROR_GRAPHICS_REQUIRED)
\.venv\Lib\site-packages\ansys\aedt\core\visualization\plot\matplotlib.py:53: UserWarning: Graphics dependencies are required. Please install the ``graphics`` target to use this method. You can install it by running `pip install pyaedt[graphics]` or `pip install pyaedt[all]`.
  warnings.warn(ERROR_GRAPHICS_REQUIRED)

Which Operating System are you using?

Windows

Which Python version are you using?

3.11

Installed packages

about-time==4.2.1
alive-progress==3.2.0
annotated-types==0.7.0
ansys-api-fluent==0.3.28
ansys-api-platform-instancemanagement==1.1.0
ansys-api-tools-filetransfer==0.1.1
ansys-fluent-core==0.26.1
ansys-platform-instancemanagement==1.1.2
ansys-pythonnet==3.1.0rc4
ansys-tools-filetransfer==0.1.0
ansys-units==0.3.2
attrs==24.2.0
beartype==0.19.0
bracex==2.5.post1
bump-my-version==0.28.1
certifi==2024.8.30
cffi==1.17.1
cfgv==3.4.0
charset-normalizer==3.4.0
click==8.1.7
clr-loader==0.2.6
colorama==0.4.6
contourpy==1.3.1
coverage==7.6.4
cycler==0.12.1
defusedxml==0.7.1
distlib==0.3.9
docker==7.1.0
filelock==3.16.1
fonttools==4.54.1
fpdf2==2.8.1
grapheme==0.6.0
grpcio==1.67.1
grpcio-health-checking==1.62.3
identify==2.6.2
idna==3.10
importlib-metadata==8.5.0
iniconfig==2.0.0
joblib==1.4.2
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
kiwisolver==1.4.7
lxml==5.3.0
markdown-it-py==3.0.0
matplotlib==3.9.2
mdurl==0.1.2
nltk==3.9.1
nodeenv==1.9.1
numpy==1.26.4
packaging==24.2
pandas==2.2.3
pillow==11.0.0
platformdirs==4.3.6
pluggy==1.5.0
plumbum==1.9.0
pooch==1.8.2
pre-commit==4.0.1
prompt-toolkit==3.0.36
protobuf==4.25.5
psutil==6.1.0
pyaedt==0.17.0
pycparser==2.22
pydantic==2.9.2
pydantic-core==2.23.4
pydantic-settings==2.6.1
pyedb==0.31.0
pygments==2.18.0
pyparsing==3.2.0
pytest==8.3.3
pytest-cov==6.0.0
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
pytz==2024.2
pyvista==0.44.1
pywin32==308
pyyaml==6.0.2
questionary==2.0.1
referencing==0.35.1
regex==2024.11.6
requests==2.32.3
rich==13.9.4
rich-click==1.8.3
rpds-py==0.21.0
rpyc==6.0.1
rtree==1.3.0
ruamel-yaml==0.18.6
ruamel-yaml-clib==0.2.12
scikit-rf==1.4.1
scipy==1.14.1
scooby==0.10.0
six==1.16.0
toml==0.10.2
tomli-w==1.2.0
tomlkit==0.13.2
tqdm==4.67.0
typing-extensions==4.12.2
tzdata==2024.2
urllib3==2.2.3
virtualenv==20.27.1
vtk==9.3.1
wcmatch==10.0
wcwidth==0.2.13
zipp==3.21.0

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions