-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Before submitting the issue
- I have checked for Compatibility issues
- I have searched among the existing issues
- I am using a Python virtual environment
Description of the bug
A quick call to a problem with python 3.14, which I discovered recently. This is not related #2279, since I'm able to run the not yet patched d6f103d on my system, see below.
Call to ansys.dpf.core.examples.find_simple_bar() fails under python 3.14 with
TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'
Steps To Reproduce
Run
import sys
from ansys.dpf import core as dpf
from ansys.dpf.core import examples
print("Python", sys.version, sys.platform)
print("Version", dpf.__version__)
server = dpf.connect_to_server()
print(server)
bar = examples.find_simple_bar(server=server)
print(bar)
Under python 3.13 I have
Python 3.13.8 (main, Oct 7 2025, 16:19:32) [Clang 20.1.4 ] darwin
Version 0.14.2.dev0
DPF Server: {'server_ip': '172.18.0.2', 'server_port': 50052, 'server_process_id': 9, 'server_version': '9.0', 'os': 'posix'}
/tmp/dataProcessingTemp140736792086272/ASimpleBar.rst
While 3.14 fails with
Python 3.14.0 (main, Oct 7 2025, 16:07:00) [Clang 20.1.4 ] darwin
Version 0.14.2.dev0
DPF Server: {'server_ip': '172.18.0.2', 'server_port': 50052, 'server_process_id': 9, 'server_version': '9.0', 'os': 'posix'}
Traceback (most recent call last):
File "<stdin>", line 9, in <module>
File "/Users/miccoli/src/foss/pydpf-core/src/ansys/dpf/core/examples/downloads.py", line 1680, in find_simple_bar
return _download_file(
"result_files", "ASimpleBar.rst", should_upload, server, return_local_path
)
File "/Users/miccoli/src/foss/pydpf-core/src/ansys/dpf/core/examples/downloads.py", line 116, in _download_file
local_path = _retrieve_file(url, filename, directory)
File "/Users/miccoli/src/foss/pydpf-core/src/ansys/dpf/core/examples/downloads.py", line 96, in _retrieve_file
local_examples_download_path = Path(LOCAL_DOWNLOADED_EXAMPLES_PATH)
File "/Users/miccoli/Library/Application Support/uv/python/cpython-3.14.0-macos-aarch64-none/lib/python3.14/pathlib/__init__.py", line 150, in __init__
raise TypeError(
...<2 lines>...
f"not {type(path).__name__!r}")
TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'
Which Operating System causes the issue?
MacOS
Which DPF/Ansys version are you using?
DPF Server 2025.1.pre0
Which Python version causes the issue?
3.14
Installed packages
-e file:///Users/miccoli/src/foss/pydpf-core
grpcio==1.75.1
importlib-metadata==8.7.0
numpy==2.3.3
packaging==25.0
protobuf==6.32.1
psutil==7.1.0
setuptools==80.9.0
tqdm==4.67.1
typing-extensions==4.15.0
zipp==3.23.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working