Skip to content

Crashing when attempting to run #3

Open
@Hajto

Description

Using python3 (3.13.1)
Traceback (most recent call last):
  File "/Users/hajto/Downloads/fake-x1c/fake_x1c/fake_x1c.py", line 57, in <module>
    main(args.printerip, args.printername)
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hajto/Downloads/fake-x1c/fake_x1c/fake_x1c.py", line 28, in main
    interfaces = socket.getaddrinfo(host=socket.gethostname(), port=None, family=socket.AF_INET)
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/socket.py", line 975, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno 8] nodename nor servname provided, or not known

I am calling following poetry run fake_x1c/fake_x1c.py 10.12.10.xxx XXX-XXX-XXX. Obfuscated the values with XXX. The acutal call did not had x-es.

socket.gethostname() returns 'Hajtos-MacBook-Pro.local'

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions