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

[BUG] salt-ssh [ERROR ] 'PathDistribution' object has no attribute '_normalized_name' #61819

Closed
1 of 6 tasks
javiroman opened this issue Mar 21, 2022 · 4 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug broken, incorrect, or confusing behavior info-needed waiting for more info needs-triage Salt-SSH

Comments

@javiroman
Copy link

javiroman commented Mar 21, 2022

Description
Simple salt-ssh command raise error.

Setup

conda create -n salt python=3
conda activate salt
(salt) pip install salt
(salt) salt-ssh --verison
salt-ssh 3004

(salt) cat config/master 
root_dir: ./
ssh_use_home_key: True
file_roots:
  base:
    - ./rootfs
(salt) cat config/roster 
host1:
  host: 10.0.0.3
  sudo: True
  priv: /home/user/.ssh/private_key
  user: vagrant
(salt) salt-ssh -c config -i host1 test.ping
[ERROR   ] 'PathDistribution' object has no attribute '_normalized_name'
  • on-prem machine
  • VM (Virtualbox, KVM, etc. please specify)
  • VM running on a cloud service, please be explicit and add details
  • container (Kubernetes, Docker, containerd, etc. please specify)
  • or a combination, please be explicit
  • jails if it is FreeBSD

Steps to Reproduce the behavior
(Include debug logs if possible and relevant)

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
PASTE HERE

Additional context
Add any other context about the problem here.

@javiroman javiroman added Bug broken, incorrect, or confusing behavior needs-triage labels Mar 21, 2022
@welcome
Copy link

welcome bot commented Mar 21, 2022

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@OrangeDog
Copy link
Contributor

OrangeDog commented Mar 22, 2022

This appears to be caused by an incompatible / broken Python installation.
pypa/pipenv#4883

I see you're using conda. That may be the problem. What python is installed on 10.0.0.3?
Please also provide the full versions report from the master.

@OrangeDog OrangeDog added Salt-SSH info-needed waiting for more info labels Mar 22, 2022
@javiroman
Copy link
Author

You are right, it's an issue of Python 3.10.
I'm using Python 3.10.0 in the conda environment, changing for example to Python 3.9.7, salt-ssh works again.

Many thanks for your help.

@OrangeDog
Copy link
Contributor

As far as I can tell, 3.10.1 should also work. Basically anything other than 3.10.0, which has this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior info-needed waiting for more info needs-triage Salt-SSH
Projects
None yet
Development

No branches or pull requests

3 participants