Skip to content

Deprecation warnings inside the library #4513

@Gobot1234

Description

@Gobot1234

Running into a few warnings that should probably be updated or investigated

  Information: The server has started and is running.
/home/ANSYSDev/v261/commonfiles/CPython/3_10/linx64/Release/Ansys/PyFluentCore/ansys/fluent/core/__init__.py:152: PyFluentDeprecationWarning: 'DATAMODEL_USE_STATE_CACHE' is deprecated, use 'config.datamodel_use_state_cache' instead.
  warnings.warn(
    warnings.warn(
/home/ANSYSDev/v261/commonfiles/CPython/3_10/linx64/Release/Ansys/PyFluentCore/ansys/fluent/core/session.py:513: DeprecationWarning: Call to deprecated function (or staticmethod) field_info. (Use relevant ``field_data`` methods..) -- Deprecated since version 0.34.0.
  self.field_info,
    self.field_info,
/home/ANSYSDev/v261/commonfiles/CPython/3_10/linx64/Release/Ansys/PyFluentCore/ansys/fluent/core/session.py:523: DeprecationWarning: Call to deprecated function (or staticmethod) field_info. (Use relevant ``field_data`` methods..) -- Deprecated since version 0.34.0.
  self.field_info,

I can't find these 2's sources and the stacklevel seems to have been set incorrectly here as the frame is pointing to something internal

/home/jhilton-/pyfluent/.venv/lib/python3.12/site-packages/ansys/fluent/core/utils/deprecate.py:73: DeprecationWarning: Call to deprecated function (or staticmethod) launch_fluent. ('show_gui' and 'version' are deprecated. Use 'ui_mode' and 'dimension' instead.) -- Deprecated since version v0.22.dev0.

/home/ANSYSDev/v261/commonfiles/CPython/3_10/linx64/Release/Ansys/PyFluentCore/ansys/fluent/core/__init__.py:152: PyFluentDeprecationWarning: 'DATAMODEL_USE_STATE_CACHE' is deprecated, use 'config.datamodel_use_state_cache' instead.
  warnings.warn(

Metadata

Metadata

Assignees

Labels

good first issueBest way to start working on PyFluent development

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions