ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
423 stars 120 forks source link

mapdl.download('all') and mapdl.download('everything') return errors #1020

Closed nmalsang closed 2 years ago

nmalsang commented 2 years ago

Describe the bug mapdl.download('all') and mapdl.download('everything') return errors:

download_errors_screenshots

To Reproduce Steps to reproduce the behavior:

  1. run on lab.ansysapis.com the notebook mapdl_vs_scipy.1.1ipynb attached here
  2. See error

mapdl_vs_scipy(1).ipynb.txt

Expected behavior download files as explained in the documentation

System Information:

Additional context Add any other context about the problem here.

Run a PyMAPDL report

Please run the following code wherever you are experiencing the bug and paste the output below. This report helps us track down bugs and it is critical to addressing your bug:

from ansys.mapdl import core as pymapdl
print(pymapdl.Report())
# Paste your results here
-------------------------------------------------------------------------------
PyMAPDL Software and Environment Report
-------------------------------------------------------------------------------
  Date: Tue Apr 05 14:59:53 2022 UTC

                OS : Linux
            CPU(s) : 8
           Machine : x86_64
      Architecture : 64bit
               RAM : 31.4 GiB
       Environment : Jupyter
        Mesa/X.org : GPU Vendor
llvmpipe (LLVM 12.0.0, 256 bits) : GPU Renderer
4.5 (Core Profile) Mesa 21.2.6 : GPU Version

  Python 3.9.7 | packaged by conda-forge | (default, Sep 29 2021, 19:20:46)
  [GCC 9.4.0]

        matplotlib : 3.5.1
             numpy : 1.22.2
           pyvista : 0.33.3
           appdirs : 1.4.4
              tqdm : 4.63.0
            pyiges : 0.2.1
             scipy : 1.8.0
              grpc : 1.44.0
ansys.api.mapdl.v0 : 0.4.1
ansys.mapdl.reader : 0.51.10
   google.protobuf : 3.19.4
-------------------------------------------------------------------------------

Ansys Installation
******************
Unable to locate any Ansys installations

Ansys Environment Variables
***************************
ANSYSLM_PORT_6000_TCP_ADDR     10.0.26.246
ANSYSLM_PORT_1055_TCP          tcp://10.0.26.246:1055
ANSYSLM_PORT_2325_TCP          tcp://10.0.26.246:2325
ANSYSLM_PORT_6000_TCP_PROTO    tcp
ANSYSLM_PORT                   tcp://10.0.26.246:1055
ANSYSLM_PORT_1055_TCP_PORT     1055
ANSYSLM_PORT_2325_TCP_PROTO    tcp
ANSYSLM_SERVICE_PORT           1055
ANSYSLM_SERVICE_PORT_PORT2     2325
ANSYSLM_PORT_6000_TCP_PORT     6000
ANSYSLM_SERVICE_PORT_PORT3     6000
ANSYSLM_SERVICE_HOST           10.0.26.246
ANSYSLM_PORT_1055_TCP_PROTO    tcp
ANSYSLM_PORT_6000_TCP          tcp://10.0.26.246:6000
ANSYSLM_PORT_2325_TCP_ADDR     10.0.26.246
ANSYSLM_PORT_1055_TCP_ADDR     10.0.26.246
ANSYSLM_PORT_2325_TCP_PORT     2325
ANSYSLM_SERVICE_PORT_PORT1     1055

E0405 14:59:53.137296750    1281 fork_posix.cc:70]           Fork support is only compatible with the epoll1 and poll polling strategies
germa89 commented 2 years ago

Hi @nmalsang

The documentation is not correct. It seems I forgot to update the "Example" section in the docstring.

As mentioned in #928 it is preferred to not use 'all' and 'everything'.

Basically, if you want the old function, use mapdl._download(). And for downloading multiple files use the new mapdl.download(). To download the whole working directory, use mapdl.download_project().