Skip to content

[BUG]: --fakeds errors with connection refused #12

@auscompgeek

Description

@auscompgeek

Problem description

netconsole --fakeds 10.47.74.2 errors:

Traceback (most recent call last):
  File "/home/davo/dev/frc/thedropbears/pycrescendo/.venv/bin/netconsole", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/davo/dev/frc/thedropbears/pycrescendo/.venv/lib/python3.12/site-packages/netconsole/netconsole.py", line 256, in main
    run(args.address, fakeds=args.fakeds)
  File "/home/davo/dev/frc/thedropbears/pycrescendo/.venv/lib/python3.12/site-packages/netconsole/netconsole.py", line 236, in run
    ds.start(address)
  File "/home/davo/dev/frc/thedropbears/pycrescendo/.venv/lib/python3.12/site-packages/netconsole/_fakeds.py", line 17, in start
    self.tcp_socket = socket.create_connection((address, 1740), timeout=3.0)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/socket.py", line 865, in create_connection
    raise exceptions[0]
  File "/usr/lib64/python3.12/socket.py", line 850, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

Operating System

Linux

Installed Python Packages

╭──────────────────────────┬────────────┬──────────╮
│ name                     │ version    │ location │
├──────────────────────────┼────────────┼──────────┤
│ appdirs                  │ 1.4.4      │          │
│ attrs                    │ 23.2.0     │          │
│ bcrypt                   │ 4.1.2      │          │
│ cffi                     │ 1.16.0     │          │
│ cryptography             │ 41.0.7     │          │
│ flexcache                │ 0.3        │          │
│ flexparser               │ 0.3.1      │          │
│ hypothesis               │ 6.97.4     │          │
│ iniconfig                │ 2.0.0      │          │
│ mypy                     │ 1.8.0      │          │
│ mypy-extensions          │ 1.0.0      │          │
│ numpy                    │ 1.26.3     │          │
│ packaging                │ 23.2       │          │
│ paramiko                 │ 3.4.0      │          │
│ phoenix6                 │ 24.2.0     │          │
│ photonlibpy              │ 2024.3.1   │          │
│ Pint                     │ 0.23       │          │
│ pip                      │ 23.2.1     │          │
│ pluggy                   │ 1.3.0      │          │
│ pycparser                │ 2.21       │          │
│ pyfrc                    │ 2024.0.1   │          │
│ PyNaCl                   │ 1.5.0      │          │
│ pynetconsole             │ 2.0.4      │          │
│ pyntcore                 │ 2024.3.2.1 │          │
│ pytest                   │ 8.0.0      │          │
│ pytest-integration       │ 0.2.3      │          │
│ pytest-reraise           │ 2.1.2      │          │
│ robotpy                  │ 2024.3.2.2 │          │
│ robotpy-apriltag         │ 2024.3.2.1 │          │
│ robotpy-cli              │ 2024.0.0   │          │
│ robotpy-hal              │ 2024.3.2.1 │          │
│ robotpy-halsim-gui       │ 2024.3.2.1 │          │
│ robotpy-installer        │ 2024.2.2   │          │
│ robotpy-navx             │ 2024.1.1   │          │
│ robotpy-rev              │ 2024.2.4   │          │
│ robotpy-wpilib-utilities │ 2024.1.0   │          │
│ robotpy-wpimath          │ 2024.3.2.1 │          │
│ robotpy-wpinet           │ 2024.3.2.1 │          │
│ robotpy-wpiutil          │ 2024.3.2.1 │          │
│ setuptools               │ 69.0.3     │          │
│ sortedcontainers         │ 2.4.0      │          │
│ tomli                    │ 2.0.1      │          │
│ tomlkit                  │ 0.12.3     │          │
│ typing_extensions        │ 4.9.0      │          │
│ wpilib                   │ 2024.3.2.1 │          │
╰──────────────────────────┴────────────┴──────────╯

Reproducible example code

netconsole --fakeds 10.47.74.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions