Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed connection in unit testing yields bogus error #1031

Closed
akaszynski opened this issue Apr 9, 2022 · 1 comment
Closed

failed connection in unit testing yields bogus error #1031

akaszynski opened this issue Apr 9, 2022 · 1 comment
Assignees

Comments

@akaszynski
Copy link
Collaborator

When using export PYMAPDL_START_INSTANCE=False, you get an attribute error when you fail to connect:

        if not connected:
            raise IOError(
>               f"Unable to connect to MAPDL gRPC instance at {self._target_str}"
            )
E           AttributeError: 'MapdlGrpc' object has no attribute '_target_str'

src/ansys/mapdl/core/mapdl_grpc.py:383: AttributeError
@akaszynski akaszynski self-assigned this Apr 9, 2022
@germa89
Copy link
Collaborator

germa89 commented Apr 11, 2022

I encounter this error while working on docker.

I believe it is because there is no MAPDL instance which PyMAPDL can connect to in the specified port and address, then when fails to connect (if not connected) it raise the IOError but that attribute _target_str does not exist. This attribute is actually _channel_str. This bug was introduced in #996 and fixed in #1025.

I'm closing the issue, but feel free to reopen it.

@germa89 germa89 closed this as completed Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants