TypeError Traceback (most recent call last)
Cell In[49], line 8
5 rocky_exe_path = Path(r"C:\Program Files\ANSYS Inc\v231\Rocky\bin\Rocky.exe") # Use raw string
7 # Convert the path to a string and launch
----> 8 rocky = pyrocky.launch_rocky(rocky_exe=str(rocky_exe_path), headless=False)
File ~.conda\anacodo\Lib\site-packages\ansys\rocky\core\launcher.py:92, in launch_rocky(rocky_exe, headless, server_port)
90 # Rocky.exe call returned to soon, something happen
91 if rocky_process.returncode is not None:
---> 92 raise RockyLaunchError(f"Error launching Rocky:\n {' '.join(cmd)}")
94 client = connect_to_rocky(port=server_port)
96 # TODO: A more elegant way to find out that Rocky Pyro server started.
TypeError: sequence item 0: expected str instance, WindowsPath found
π Steps to reproduce
I need to use Pyrocky for simulation of Packed bed
π» Which operating system are you using?
Windows
π Which ANSYS version are you using?
ANSYS 2023r1
π Which Python version are you using?
3.9
π¦ Installed packages
Requirement already satisfied: ansys-rocky-core in c:\users\a1904956\.conda\anacodo\lib\site-packages (0.2.0)
Requirement already satisfied: importlib-metadata>=4.0 in c:\users\a1904956\.conda\anacodo\lib\site-packages (from ansys-rocky-core) (6.0.0)
Requirement already satisfied: Pyro5>=5.13 in c:\users\a1904956\.conda\anacodo\lib\site-packages (from ansys-rocky-core) (5.15)
Requirement already satisfied: numpy<3.0,>=1.19 in c:\users\a1904956\.conda\anacodo\lib\site-packages (from ansys-rocky-core) (1.24.3)
Requirement already satisfied: zipp>=0.5 in c:\users\a1904956\.conda\anacodo\lib\site-packages (from importlib-metadata>=4.0->ansys-rocky-core) (3.11.0)
Requirement already satisfied: serpent>=1.41 in c:\users\a1904956\.conda\anacodo\lib\site-packages (from Pyro5>=5.13->ansys-rocky-core) (1.41)
π Before submitting the issue
π Description of the bug
TypeError Traceback (most recent call last) Cell In[49], line 8 5 rocky_exe_path = Path(r"C:\Program Files\ANSYS Inc\v231\Rocky\bin\Rocky.exe") # Use raw string 7 # Convert the path to a string and launch ----> 8 rocky = pyrocky.launch_rocky(rocky_exe=str(rocky_exe_path), headless=False)
File ~.conda\anacodo\Lib\site-packages\ansys\rocky\core\launcher.py:92, in launch_rocky(rocky_exe, headless, server_port) 90 # Rocky.exe call returned to soon, something happen 91 if rocky_process.returncode is not None: ---> 92 raise RockyLaunchError(f"Error launching Rocky:\n {' '.join(cmd)}") 94 client = connect_to_rocky(port=server_port) 96 # TODO: A more elegant way to find out that Rocky Pyro server started.
TypeError: sequence item 0: expected str instance, WindowsPath found
π Steps to reproduce
I need to use Pyrocky for simulation of Packed bed
π» Which operating system are you using?
Windows
π Which ANSYS version are you using?
ANSYS 2023r1
π Which Python version are you using?
3.9
π¦ Installed packages