ModuleNotFoundError : No module named 'salt.loaded'

95 views
Skip to first unread message

mouhannad Khashfeh

unread,
Oct 12, 2021, 9:55:18 AM10/12/21
to Salt-users
Hi All,

I was working on salt-sproxy on my Ubuntu, for some years, and all was good.

Recently I moved to MacOS, and I am not able to make it working anymore.
Needed packages are installed as mentioned below.

Receive the error:

[DEBUG   ] Results of YAML rendering:
OrderedDict([('10.232.1.16', OrderedDict([('grains', OrderedDict([('default', 'empty')]))]))])
[PROFILE ] Time (in seconds) to render '/etc/salt/roster' using 'yaml' renderer: 0.00036716461181640625
[DEBUG   ] Glob matching on dict_items([('10.232.1.16', {'minion_opts': OrderedDict([('grains', OrderedDict([('default', 'empty')]))])})]) ? 10.232.1.16
[DEBUG   ] The target expression "10.232.1.16" (glob) matched the following:
[DEBUG   ] ['10.232.1.16']
[DEBUG   ] LazyLoaded user.get_specific_user
[INFO    ] 1 devices matched the target, executing in 1 batches
[DEBUG   ] Executing sproxy normal run on the following devices (16 batch size):
[DEBUG   ] ['10.232.1.16']
[DEBUG   ] Starting execution for 10.232.1.16
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/spawn.py", line 126, in _main
    self = reduction.pickle.load(from_parent)
ModuleNotFoundError: No module named 'salt.loaded'
ERROR: Minions returned with non-zero exit code
[DEBUG   ] LazyLoaded local_cache.prep_jid
[DEBUG   ] Using pkg_resources to load entry points
[DEBUG   ] LazyLoaded nested.output



My packages are:

sh-3.2# salt-sproxy --versions
Salt Version:
           Salt: 3003.3
    Salt SProxy: 2021.6.1

Dependency Versions:
        Ansible: Not Installed
           cffi: 1.12.2
       dateutil: 2.8.0
      docker-py: Not Installed
          gitdb: 4.0.5
      gitpython: 3.1.12
         Jinja2: 2.11.3
     junos-eznc: 2.6.3
       jxmlease: 1.0.3
        libgit2: Not Installed
       M2Crypto: Not Installed
           Mako: 1.0.7
   msgpack-pure: Not Installed
 msgpack-python: 1.0.2
         NAPALM: 3.3.1
       ncclient: 0.6.12
        Netmiko: 3.4.0
       paramiko: 2.8.0
      pycparser: 2.19
       pycrypto: Not Installed
   pycryptodome: 3.9.8
         pyeapi: 0.8.4
         pygit2: Not Installed
       PyNetBox: Not Installed
          PyNSO: Not Installed
         Python: 3.8.5 (v3.8.5:580fbb018f, Jul 20 2020, 12:11:27)
   python-gnupg: 0.4.4
         PyYAML: 5.4.1
          PyZMQ: 19.0.0
            scp: 0.14.1
          smmap: 3.0.2
        textfsm: 1.1.2
        timelib: 0.2.4
        Tornado: 4.5.3
            ZMQ: 4.3.2

System Versions:
           dist: darwin 20.3.0
         locale: utf-8
        machine: x86_64
        release: 20.3.0
         system: Darwin
        version: 10.16 x86_64


Any idea, please?

Thanks in advance,
Mou

Reply all
Reply to author
Forward
0 new messages