Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Ftrack: Fix receive of host ip on MacOs #4288

Merged

Conversation

iLLiCiTiT
Copy link
Member

Brief description

Fix issue with getting host IP address on MacOs machines.

Description

There are 2 ways how host IP is tried to receive. If both fail N/A is used instead.

Testing notes:

  1. Start ftrack event server on MacOs machine -> report if other issues with appear

@iLLiCiTiT iLLiCiTiT self-assigned this Jan 6, 2023
@iLLiCiTiT iLLiCiTiT added type: bug Something isn't working module: Ftrack labels Jan 6, 2023
@iLLiCiTiT iLLiCiTiT requested a review from 64qam January 6, 2023 14:47
@64qam
Copy link
Member

64qam commented Jan 6, 2023

It's not working, got the same error messages

  File "start.py", line 1151, in boot
  File "/Applications/OpenPype 3.14.9.app/Contents/MacOS/dependencies/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Applications/OpenPype 3.14.9.app/Contents/MacOS/dependencies/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Applications/OpenPype 3.14.9.app/Contents/MacOS/dependencies/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Applications/OpenPype 3.14.9.app/Contents/MacOS/dependencies/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Applications/OpenPype 3.14.9.app/Contents/MacOS/dependencies/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/pypeclub/Library/Application Support/openpype/3.14/openpype-v3.14.10-nightly.6/openpype/cli.py", line 340, in run
    runpy.run_path(script, run_name="__main__", )
  File "/Users/pype.club/.pyenv/versions/3.7.9/lib/python3.7/runpy.py", line 263, in run_path
  File "/Users/pype.club/.pyenv/versions/3.7.9/lib/python3.7/runpy.py", line 96, in _run_module_code
  File "/Users/pype.club/.pyenv/versions/3.7.9/lib/python3.7/runpy.py", line 85, in _run_code
  File "/Users/pypeclub/Library/Application Support/openpype/3.14/openpype-v3.14.10-nightly.6/openpype/modules/ftrack/scripts/sub_event_status.py", line 32, in <module>
    host_ip = socket.gethostbyname(socket.gethostname())
socket.gaierror: [Errno 8] nodename nor servname provided, or not known

antirotor
antirotor previously approved these changes Jan 6, 2023
Copy link
Member

@antirotor antirotor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks ok

@antirotor antirotor dismissed their stale review January 6, 2023 16:43

dismissing because I am stupid :)

@iLLiCiTiT iLLiCiTiT merged commit 4fcf8b8 into develop Jan 6, 2023
@iLLiCiTiT iLLiCiTiT deleted the bugfix/OP-4707_Event-server-launching-failed-on-Mac branch January 6, 2023 17:16
@github-actions github-actions bot added this to the next-patch milestone Jan 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
module: Ftrack type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants