saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
https://docs.saltproject.io/salt/install-guide/en/latest/
Apache License 2.0
14.19k stars 5.48k forks source link

HTML Parser is not defined #28136

Closed ldelossa closed 6 years ago

ldelossa commented 9 years ago

Hey guys,

Was trying to run:

salt-run manage.up

To get a list of my minions and ran into this:

[root@salt-master salt]# salt-run manage.status
[INFO    ] Found minion id from generate_minion_id(): salt-master
[ERROR   ] Failed to import runners asam, this is due most likely to a syntax error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1151, in _load_module
    ), fn_, fpath, desc)
  File "/usr/lib/python2.7/site-packages/salt/runners/asam.py", line 58, in <module>
    class ASAMHTMLParser(HTMLParser):
NameError: name 'HTMLParser' is not defined
down:
up:
    - client01p

easy fix?

cachedout commented 9 years ago

What version of Salt do you have installed?

ldelossa commented 9 years ago

salt 2015.8.1-2437-gb8271c7 (Beryllium)

installed with boostrap url.

jfindlay commented 9 years ago

@ldelossa, thanks for the report. I don't see asam in the list of runners included at the head of the 2015.8 branch. Is it possible you picked up that module from somewhere else?

ldelossa commented 9 years ago

master:

curl -L https://bootstrap.saltstack.com -o install_salt.sh
sudo sh install_salt.sh -M

I also did a manual compile of python 2.7 and 3.4 - maybe missing something in my configure step?

jfindlay commented 9 years ago

@ldelossa, what is strange to me is the /usr/lib/python2.7/site-packages/salt/runners/asam.py file. I can't find it anywhere in the salt source tree. Do you know where this file may have come from? What happens if you (re)move this file and the corresponding *.pyc file.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.