Skip to content

fix: cannot import name '_RetAddress' from '_socket' (unknown location)#35

Merged
MatthiasBienvenu merged 2 commits intomainfrom
refactor
Mar 1, 2026
Merged

fix: cannot import name '_RetAddress' from '_socket' (unknown location)#35
MatthiasBienvenu merged 2 commits intomainfrom
refactor

Conversation

@Cbampeta
Copy link
Copy Markdown
Collaborator

on the pi I have this for sshProgramme:
Traceback (most recent call last):
File "/home/intech/CoVAPSy/src/high_level/scripts/launch_serveur.py", line 6, in
from high_level import Serveur
File "/home/intech/CoVAPSy/src/high_level/src/high_level/init.py", line 1, in
from .serveur import Serveur
File "/home/intech/CoVAPSy/src/high_level/src/high_level/serveur.py", line 23, in
from programs.car import AIProgram
File "/home/intech/CoVAPSy/src/high_level/src/programs/init.py", line 7, in
from .ssh_programme import SshProgramme
File "/home/intech/CoVAPSy/src/high_level/src/programs/ssh_programme.py", line 1, in
from _socket import _RetAddress
ImportError: cannot import name '_RetAddress' from '_socket' (unknown location)

So i delete the import and made the output of the fonction just str or None type (and basicely i use it like an str)

Copy link
Copy Markdown
Collaborator

@MatthiasBienvenu MatthiasBienvenu left a comment

Choose a reason for hiding this comment

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

ça ok mais j'ai laissé passé le ssh_programme et le SshProgramme

@MatthiasBienvenu MatthiasBienvenu self-requested a review March 1, 2026 19:04
@MatthiasBienvenu MatthiasBienvenu merged commit 6679a19 into main Mar 1, 2026
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

Successfully merging this pull request may close these issues.

2 participants