Using find_mechanical on Linux
Closed this issue ยท 2 comments
CollinsJnr-001 commented
๐ Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
๐ Description of the bug
For a Linux OS does the find_mechanical work?
from ansys.mechanical.core import find_mechanical
wb_exe = find_mechanical(241)[0]
'Ansys Inc\v241\aisol\bin\winx64\AnsysWBU.exe'
When I run the code it doesn't return any path and when I check the folder
/Ansys Inc/v232/aisol/bin/linx64/
I don't find the AnsysWBU.exe file
๐ Steps to reproduce
from ansys.mechanical.core import find_mechanical
wb_exe = find_mechanical(241)[0]
๐ป Which operating system are you using?
Linux
๐ Which ANSYS version are you using?
v232
๐ Which Python version are you using?
3.8
๐ฆ Installed packages
ansys-api-mechanical==0.1.1
ansys-api-platform-instancemanagement==1.0.0
ansys-mechanical-core==0.10.4
ansys-mechanical-env==0.1.5
ansys-platform-instancemanagement==1.1.2
ansys-pythonnet==3.1.0rc3
ansys-tools-path==0.4.1
appdirs==1.4.4
asttokens @ file:///opt/conda/conda-bld/asttokens_1646925590279/work
backcall @ file:///home/ktietz/src/ci/backcall_1611930011877/work
cffi==1.16.0
click==8.1.7
clr-loader==0.2.6
decorator @ file:///opt/conda/conda-bld/decorator_1643638310831/work
executing @ file:///opt/conda/conda-bld/executing_1646925071911/work
grpcio==1.60.1
importlib-metadata==7.0.1
ipython @ file:///croot/ipython_1691532092695/work
jedi @ file:///tmp/build/80754af9/jedi_1644315233700/work
matplotlib-inline @ file:///opt/conda/conda-bld/matplotlib-inline_1662014470464/work
mkl-fft @ file:///croot/mkl_fft_1695058164594/work
mkl-random @ file:///croot/mkl_random_1695059800811/work
mkl-service==2.4.0
numpy @ file:///work/mkl/numpy_and_numpy_base_1682953417311/work
parso @ file:///opt/conda/conda-bld/parso_1641458642106/work
pexpect @ file:///tmp/build/80754af9/pexpect_1605563209008/work
pickleshare @ file:///tmp/build/80754af9/pickleshare_1606932040724/work
platformdirs==4.2.0
prompt-toolkit @ file:///croot/prompt-toolkit_1704404351921/work
protobuf==3.20.3
ptyprocess @ file:///tmp/build/80754af9/ptyprocess_1609355006118/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
pure-eval @ file:///opt/conda/conda-bld/pure_eval_1646925070566/work
pycparser==2.21
Pygments @ file:///croot/pygments_1684279966437/work
scipy==1.10.1
six @ file:///tmp/build/80754af9/six_1644875935023/work
stack-data @ file:///opt/conda/conda-bld/stack_data_1646927590127/work
tqdm==4.66.2
traitlets==5.14.1
typing_extensions @ file:///croot/typing_extensions_1705599297034/work
wcwidth==0.2.13
zipp==3.17.0
RobPasMue commented
@dipinknair - could you help him out? Also, transferring issue to PyMechanical repo
CollinsJnr-001 commented
save-ansys-path --name mechanical "/user/ansys_inc/v232/aisol/.workbench"
find-mechanical
232 /user/ansys_inc/v232/aisol/.workbench
thank you @RobPasMue
@dipinknair already help out