FAQ
Hi all!

It seems that salt-master breaks when I run a clean install and run
`pkg.upgrade`.

I can make the system work back up by downgrading the specific packages,
but I thought you should know about it.

     apt-get install python-zmq=14.0.1-1build2 libzmq3=4.0.4+dfsg-2

I’m unsure whether or not it is expected or if I’m missing something.

Keep up the good work!

Renoir
~


# How it breaks

Distribution: Ubuntu 14.04.1 LTS

Packages:

   - libzmq3:
             new: 4.0.5-1chl1~trusty1
             old: 4.0.4+dfsg-2

   - python-zmq:
             new: 14.1.1-1chl1~trusty1
             old: 14.0.1-1build2

With those, when I try to run salt, it breaks with the following stack
trace:

root@salt:/srv/salt# salt-master -l debug
***truncated***
[INFO ] Setting up the Salt Master
[ERROR ] An un-handled exception was caught by salt's global exception
handler:
ImportError: No module named cffi
Traceback (most recent call last):
   File "/usr/bin/salt-master", line 10, in <module>
     salt_master()
   File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45, in
salt_master
     master.start()
   File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145, in
start
     self.prepare()
   File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126, in
prepare
     import salt.master
   File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
<module>
     import zmq
   File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
<module>
     from zmq.backend import *
   File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line 29,
in <module>
     _ns = select_backend('zmq.backend.cffi')
   File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line 31,
in select_backend
     mod = __import__(name, fromlist=public_api)
   File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
line 12, in <module>
     from zmq.backend.cffi import (constants, error, message, context,
socket,
   File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
line 4, in <module>
     from ._cffi import C, c_constant_names
   File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py", line
20, in <module>
     from cffi import FFI
ImportError: No module named cffi
Traceback (most recent call last):
   File "/usr/bin/salt-master", line 10, in <module>
     salt_master()
   File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45, in
salt_master
     master.start()
   File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145, in
start
     self.prepare()
   File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126, in
prepare
     import salt.master
   File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
<module>
     import zmq
   File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
<module>
     from zmq.backend import *
   File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line 29,
in <module>
     _ns = select_backend('zmq.backend.cffi')
   File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line 31,
in select_backend
     mod = __import__(name, fromlist=public_api)
   File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
line 12, in <module>
     from zmq.backend.cffi import (constants, error, message, context,
socket,
   File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
line 4, in <module>
     from ._cffi import C, c_constant_names
   File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py", line
20, in <module>
     import zmq
   File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
<module>
     from zmq.backend import *
   File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line 29,
in <module>
     _ns = select_backend('zmq.backend.cffi')
   File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line 31,
in select_backend
     mod = __import__(name, fromlist=public_api)
   File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
line 12, in <module>
     from zmq.backend.cffi import (constants, error, message, context,
socket,
   File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
line 4, in <module>
     from ._cffi import C, c_constant_names
   File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py", line
20, in <module>
     from cffi import FFI
ImportError: No module named cffi

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Stephen Spencer at Nov 23, 2014 at 10:05 pm
    Is cffi installed? It is a requirement for the pyzmq bindings to function.

    Out of curiosity, what has caused you to upgrade zmq and not the rest of
    your system packages?

    -S
    On Nov 23, 2014 3:23 PM, "Renoir Boulanger" wrote:

    Hi all!

    It seems that salt-master breaks when I run a clean install and run
    `pkg.upgrade`.

    I can make the system work back up by downgrading the specific packages,
    but I thought you should know about it.

    apt-get install python-zmq=14.0.1-1build2 libzmq3=4.0.4+dfsg-2

    I'm unsure whether or not it is expected or if I'm missing something.

    Keep up the good work!

    Renoir
    ~


    # How it breaks

    Distribution: Ubuntu 14.04.1 LTS

    Packages:

    - libzmq3:
    new: 4.0.5-1chl1~trusty1
    old: 4.0.4+dfsg-2

    - python-zmq:
    new: 14.1.1-1chl1~trusty1
    old: 14.0.1-1build2

    With those, when I try to run salt, it breaks with the following stack
    trace:

    root@salt:/srv/salt# salt-master -l debug
    ***truncated***
    [INFO ] Setting up the Salt Master
    [ERROR ] An un-handled exception was caught by salt's global exception
    handler:
    ImportError: No module named cffi
    Traceback (most recent call last):
    File "/usr/bin/salt-master", line 10, in <module>
    salt_master()
    File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45, in
    salt_master
    master.start()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145, in
    start
    self.prepare()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126, in
    prepare
    import salt.master
    File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
    <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line
    29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line 31,
    in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py", line
    20, in <module>
    from cffi import FFI
    ImportError: No module named cffi
    Traceback (most recent call last):
    File "/usr/bin/salt-master", line 10, in <module>
    salt_master()
    File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45, in
    salt_master
    master.start()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145, in
    start
    self.prepare()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126, in
    prepare
    import salt.master
    File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
    <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line
    29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line 31,
    in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py", line
    20, in <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line
    29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line 31,
    in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py", line
    20, in <module>
    from cffi import FFI
    ImportError: No module named cffi

    --
    You received this message because you are subscribed to the Google Groups
    "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Renoir Boulanger at Nov 23, 2014 at 10:47 pm
    No, cffi wasn’t installed.

    Once I installed through apt-get, and upgraded again, I get the following

         apt-get install python-cffi
         apt-get upgrade
         service salt-master restart
         salt-master --versions

    compilation terminated.
    /usr/lib/python2.7/dist-packages/zmq/backend/cffi/__pycache__/_cffi__x7800562fx84b24606.c:2:20:
    fatal error: Python.h: No such file or directory
      #include <Python.h>
                         ^

    **truncated***

    compilation terminated.
                Salt: 2014.7.0
              Python: 2.7.6 (default, Mar 22 2014, 22:59:56)
              Jinja2: 2.7.2
            M2Crypto: 0.21.1
      msgpack-python: 0.3.0
        msgpack-pure: Not Installed
            pycrypto: 2.6.1
             libnacl: Not Installed
              PyYAML: 3.10
               ioflo: Not Installed
               PyZMQ: Not Installed
                RAET: Not Installed
                 ZMQ: Not Installed
                Mako: 0.9.1


    On Sunday, November 23, 2014 5:05:24 PM UTC-5, Stephen Spencer wrote:

    Is cffi installed? It is a requirement for the pyzmq bindings to function.

    Out of curiosity, what has caused you to upgrade zmq and not the rest of
    your system packages?

    -S
    On Nov 23, 2014 3:23 PM, "Renoir Boulanger" <ren...@gmail.com
    <javascript:>> wrote:
    Hi all!

    It seems that salt-master breaks when I run a clean install and run
    `pkg.upgrade`.

    I can make the system work back up by downgrading the specific packages,
    but I thought you should know about it.

    apt-get install python-zmq=14.0.1-1build2 libzmq3=4.0.4+dfsg-2

    I’m unsure whether or not it is expected or if I’m missing something.

    Keep up the good work!

    Renoir
    ~


    # How it breaks

    Distribution: Ubuntu 14.04.1 LTS

    Packages:

    - libzmq3:
    new: 4.0.5-1chl1~trusty1
    old: 4.0.4+dfsg-2

    - python-zmq:
    new: 14.1.1-1chl1~trusty1
    old: 14.0.1-1build2

    With those, when I try to run salt, it breaks with the following stack
    trace:

    root@salt:/srv/salt# salt-master -l debug
    ***truncated***
    [INFO ] Setting up the Salt Master
    [ERROR ] An un-handled exception was caught by salt's global exception
    handler:
    ImportError: No module named cffi
    Traceback (most recent call last):
    File "/usr/bin/salt-master", line 10, in <module>
    salt_master()
    File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45, in
    salt_master
    master.start()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145, in
    start
    self.prepare()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126, in
    prepare
    import salt.master
    File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
    <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line
    29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line 31,
    in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py", line
    20, in <module>
    from cffi import FFI
    ImportError: No module named cffi
    Traceback (most recent call last):
    File "/usr/bin/salt-master", line 10, in <module>
    salt_master()
    File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45, in
    salt_master
    master.start()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145, in
    start
    self.prepare()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126, in
    prepare
    import salt.master
    File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
    <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line
    29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line 31,
    in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py", line
    20, in <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line
    29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line 31,
    in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py", line
    20, in <module>
    from cffi import FFI
    ImportError: No module named cffi

    --
    You received this message because you are subscribed to the Google Groups
    "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to salt-users+...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Renoir Boulanger at Nov 23, 2014 at 10:53 pm
    Sorry, sent too quickly.

    Like I said, its a fresh instance of Ubuntu 14.04.1, and I follow salt
    installation directives described in [0].

    Exception is that I don’t follow exactly the `update_zmq` block because
    that version of Ubuntu doesn’t find `zeromq` package anymore.

    HTH

    Renoir
    ~

       [0]: http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html
    On Sunday, November 23, 2014 5:47:43 PM UTC-5, Renoir Boulanger wrote:

    No, cffi wasn’t installed.

    Once I installed through apt-get, and upgraded again, I get the following

    apt-get install python-cffi
    apt-get upgrade
    service salt-master restart
    salt-master --versions

    compilation terminated.
    /usr/lib/python2.7/dist-packages/zmq/backend/cffi/__pycache__/_cffi__x7800562fx84b24606.c:2:20:
    fatal error: Python.h: No such file or directory
    #include <Python.h>
    ^

    **truncated***

    compilation terminated.
    Salt: 2014.7.0
    Python: 2.7.6 (default, Mar 22 2014, 22:59:56)
    Jinja2: 2.7.2
    M2Crypto: 0.21.1
    msgpack-python: 0.3.0
    msgpack-pure: Not Installed
    pycrypto: 2.6.1
    libnacl: Not Installed
    PyYAML: 3.10
    ioflo: Not Installed
    PyZMQ: Not Installed
    RAET: Not Installed
    ZMQ: Not Installed
    Mako: 0.9.1


    On Sunday, November 23, 2014 5:05:24 PM UTC-5, Stephen Spencer wrote:

    Is cffi installed? It is a requirement for the pyzmq bindings to
    function.

    Out of curiosity, what has caused you to upgrade zmq and not the rest of
    your system packages?

    -S
    On Nov 23, 2014 3:23 PM, "Renoir Boulanger" wrote:

    Hi all!

    It seems that salt-master breaks when I run a clean install and run
    `pkg.upgrade`.

    I can make the system work back up by downgrading the specific packages,
    but I thought you should know about it.

    apt-get install python-zmq=14.0.1-1build2 libzmq3=4.0.4+dfsg-2

    I’m unsure whether or not it is expected or if I’m missing something.

    Keep up the good work!

    Renoir
    ~


    # How it breaks

    Distribution: Ubuntu 14.04.1 LTS

    Packages:

    - libzmq3:
    new: 4.0.5-1chl1~trusty1
    old: 4.0.4+dfsg-2

    - python-zmq:
    new: 14.1.1-1chl1~trusty1
    old: 14.0.1-1build2

    With those, when I try to run salt, it breaks with the following stack
    trace:

    root@salt:/srv/salt# salt-master -l debug
    ***truncated***
    [INFO ] Setting up the Salt Master
    [ERROR ] An un-handled exception was caught by salt's global exception
    handler:
    ImportError: No module named cffi
    Traceback (most recent call last):
    File "/usr/bin/salt-master", line 10, in <module>
    salt_master()
    File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45, in
    salt_master
    master.start()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145, in
    start
    self.prepare()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126, in
    prepare
    import salt.master
    File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
    <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line
    29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line
    31, in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py",
    line 20, in <module>
    from cffi import FFI
    ImportError: No module named cffi
    Traceback (most recent call last):
    File "/usr/bin/salt-master", line 10, in <module>
    salt_master()
    File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45, in
    salt_master
    master.start()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145, in
    start
    self.prepare()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126, in
    prepare
    import salt.master
    File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
    <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line
    29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line
    31, in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py",
    line 20, in <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py", line
    29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line
    31, in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py",
    line 20, in <module>
    from cffi import FFI
    ImportError: No module named cffi

    --
    You received this message because you are subscribed to the Google
    Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send
    an email to salt-users+...@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Stephen Spencer at Nov 23, 2014 at 11:09 pm
    That is a very strange way to package something. You need to install the
    python-dev package to get past this error.

    -S
    On Nov 23, 2014 4:53 PM, "Renoir Boulanger" wrote:

    Sorry, sent too quickly.

    Like I said, its a fresh instance of Ubuntu 14.04.1, and I follow salt
    installation directives described in [0].

    Exception is that I don't follow exactly the `update_zmq` block because
    that version of Ubuntu doesn't find `zeromq` package anymore.

    HTH

    Renoir
    ~

    [0]: http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html
    On Sunday, November 23, 2014 5:47:43 PM UTC-5, Renoir Boulanger wrote:

    No, cffi wasn't installed.

    Once I installed through apt-get, and upgraded again, I get the following

    apt-get install python-cffi
    apt-get upgrade
    service salt-master restart
    salt-master --versions

    compilation terminated.
    /usr/lib/python2.7/dist-packages/zmq/backend/cffi/__pycache__/_cffi__x7800562fx84b24606.c:2:20:
    fatal error: Python.h: No such file or directory
    #include <Python.h>
    ^

    **truncated***

    compilation terminated.
    Salt: 2014.7.0
    Python: 2.7.6 (default, Mar 22 2014, 22:59:56)
    Jinja2: 2.7.2
    M2Crypto: 0.21.1
    msgpack-python: 0.3.0
    msgpack-pure: Not Installed
    pycrypto: 2.6.1
    libnacl: Not Installed
    PyYAML: 3.10
    ioflo: Not Installed
    PyZMQ: Not Installed
    RAET: Not Installed
    ZMQ: Not Installed
    Mako: 0.9.1


    On Sunday, November 23, 2014 5:05:24 PM UTC-5, Stephen Spencer wrote:

    Is cffi installed? It is a requirement for the pyzmq bindings to
    function.

    Out of curiosity, what has caused you to upgrade zmq and not the rest of
    your system packages?

    -S
    On Nov 23, 2014 3:23 PM, "Renoir Boulanger" wrote:

    Hi all!

    It seems that salt-master breaks when I run a clean install and run
    `pkg.upgrade`.

    I can make the system work back up by downgrading the specific
    packages, but I thought you should know about it.

    apt-get install python-zmq=14.0.1-1build2 libzmq3=4.0.4+dfsg-2

    I'm unsure whether or not it is expected or if I'm missing something.

    Keep up the good work!

    Renoir
    ~


    # How it breaks

    Distribution: Ubuntu 14.04.1 LTS

    Packages:

    - libzmq3:
    new: 4.0.5-1chl1~trusty1
    old: 4.0.4+dfsg-2

    - python-zmq:
    new: 14.1.1-1chl1~trusty1
    old: 14.0.1-1build2

    With those, when I try to run salt, it breaks with the following stack
    trace:

    root@salt:/srv/salt# salt-master -l debug
    ***truncated***
    [INFO ] Setting up the Salt Master
    [ERROR ] An un-handled exception was caught by salt's global
    exception handler:
    ImportError: No module named cffi
    Traceback (most recent call last):
    File "/usr/bin/salt-master", line 10, in <module>
    salt_master()
    File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45, in
    salt_master
    master.start()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145,
    in start
    self.prepare()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126,
    in prepare
    import salt.master
    File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
    <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py",
    line 29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line
    31, in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py",
    line 20, in <module>
    from cffi import FFI
    ImportError: No module named cffi
    Traceback (most recent call last):
    File "/usr/bin/salt-master", line 10, in <module>
    salt_master()
    File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45, in
    salt_master
    master.start()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145,
    in start
    self.prepare()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126,
    in prepare
    import salt.master
    File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
    <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py",
    line 29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line
    31, in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py",
    line 20, in <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70, in
    <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py",
    line 29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line
    31, in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py",
    line 20, in <module>
    from cffi import FFI
    ImportError: No module named cffi

    --
    You received this message because you are subscribed to the Google
    Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send
    an email to salt-users+...@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups
    "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Joe Healy at Nov 23, 2014 at 11:19 pm
    Renoir,

    Thanks for reporting this. Looks like the Chris Lea packages are broken in
    some way. What I am taking away from this thread is that there are broken
    zmq packages available.

    Given our current documentation advises adding these for 12.04, we should
    probably update the documentation...

    Joe



    On Mon, Nov 24, 2014 at 10:09 AM, Stephen Spencer wrote:

    That is a very strange way to package something. You need to install the
    python-dev package to get past this error.

    -S
    On Nov 23, 2014 4:53 PM, "Renoir Boulanger" wrote:

    Sorry, sent too quickly.

    Like I said, its a fresh instance of Ubuntu 14.04.1, and I follow salt
    installation directives described in [0].

    Exception is that I don’t follow exactly the `update_zmq` block because
    that version of Ubuntu doesn’t find `zeromq` package anymore.

    HTH

    Renoir
    ~

    [0]:
    http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html
    On Sunday, November 23, 2014 5:47:43 PM UTC-5, Renoir Boulanger wrote:

    No, cffi wasn’t installed.

    Once I installed through apt-get, and upgraded again, I get the following

    apt-get install python-cffi
    apt-get upgrade
    service salt-master restart
    salt-master --versions

    compilation terminated.
    /usr/lib/python2.7/dist-packages/zmq/backend/cffi/__pycache__/_cffi__x7800562fx84b24606.c:2:20:
    fatal error: Python.h: No such file or directory
    #include <Python.h>
    ^

    **truncated***

    compilation terminated.
    Salt: 2014.7.0
    Python: 2.7.6 (default, Mar 22 2014, 22:59:56)
    Jinja2: 2.7.2
    M2Crypto: 0.21.1
    msgpack-python: 0.3.0
    msgpack-pure: Not Installed
    pycrypto: 2.6.1
    libnacl: Not Installed
    PyYAML: 3.10
    ioflo: Not Installed
    PyZMQ: Not Installed
    RAET: Not Installed
    ZMQ: Not Installed
    Mako: 0.9.1


    On Sunday, November 23, 2014 5:05:24 PM UTC-5, Stephen Spencer wrote:

    Is cffi installed? It is a requirement for the pyzmq bindings to
    function.

    Out of curiosity, what has caused you to upgrade zmq and not the rest
    of your system packages?

    -S
    On Nov 23, 2014 3:23 PM, "Renoir Boulanger" wrote:

    Hi all!

    It seems that salt-master breaks when I run a clean install and run
    `pkg.upgrade`.

    I can make the system work back up by downgrading the specific
    packages, but I thought you should know about it.

    apt-get install python-zmq=14.0.1-1build2 libzmq3=4.0.4+dfsg-2

    I’m unsure whether or not it is expected or if I’m missing something.

    Keep up the good work!

    Renoir
    ~


    # How it breaks

    Distribution: Ubuntu 14.04.1 LTS

    Packages:

    - libzmq3:
    new: 4.0.5-1chl1~trusty1
    old: 4.0.4+dfsg-2

    - python-zmq:
    new: 14.1.1-1chl1~trusty1
    old: 14.0.1-1build2

    With those, when I try to run salt, it breaks with the following stack
    trace:

    root@salt:/srv/salt# salt-master -l debug
    ***truncated***
    [INFO ] Setting up the Salt Master
    [ERROR ] An un-handled exception was caught by salt's global
    exception handler:
    ImportError: No module named cffi
    Traceback (most recent call last):
    File "/usr/bin/salt-master", line 10, in <module>
    salt_master()
    File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45,
    in salt_master
    master.start()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145,
    in start
    self.prepare()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126,
    in prepare
    import salt.master
    File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
    <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70,
    in <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py",
    line 29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line
    31, in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py",
    line 20, in <module>
    from cffi import FFI
    ImportError: No module named cffi
    Traceback (most recent call last):
    File "/usr/bin/salt-master", line 10, in <module>
    salt_master()
    File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 45,
    in salt_master
    master.start()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 145,
    in start
    self.prepare()
    File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 126,
    in prepare
    import salt.master
    File "/usr/lib/python2.7/dist-packages/salt/master.py", line 20, in
    <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70,
    in <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py",
    line 29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line
    31, in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py",
    line 20, in <module>
    import zmq
    File "/usr/lib/python2.7/dist-packages/zmq/__init__.py", line 70,
    in <module>
    from zmq.backend import *
    File "/usr/lib/python2.7/dist-packages/zmq/backend/__init__.py",
    line 29, in <module>
    _ns = select_backend('zmq.backend.cffi')
    File "/usr/lib/python2.7/dist-packages/zmq/backend/select.py", line
    31, in select_backend
    mod = __import__(name, fromlist=public_api)
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/__init__.py",
    line 12, in <module>
    from zmq.backend.cffi import (constants, error, message, context,
    socket,
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/constants.py",
    line 4, in <module>
    from ._cffi import C, c_constant_names
    File "/usr/lib/python2.7/dist-packages/zmq/backend/cffi/_cffi.py",
    line 20, in <module>
    from cffi import FFI
    ImportError: No module named cffi

    --
    You received this message because you are subscribed to the Google
    Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send
    an email to salt-users+...@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups
    "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups
    "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Wolodja Wentland at Nov 24, 2014 at 10:23 am

    On Sun, Nov 23, 2014 at 13:23 -0800, Renoir Boulanger wrote:
    Hi all!

    It seems that salt-master breaks when I run a clean install and run
    `pkg.upgrade`.
    Distribution: Ubuntu 14.04.1 LTS

    Packages:

    - libzmq3:
    new: 4.0.5-1chl1~trusty1
    old: 4.0.4+dfsg-2

    - python-zmq:
    new: 14.1.1-1chl1~trusty1
    old: 14.0.1-1build2
    The version you upgraded to is, I assume, the one that comes from the
    third-party PPA mentioned in [0] for Ubuntu 12.04. You shouldn't require that as
    you are using 14.04 and I would also strongly recommend to, if possible, not use
    any PPAs at all as they contain packages of unknown quality. The packages in
    chris-lea/zeromq are known to be broken and the recommendation might have to be
    reviewed.

    [0] http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html#zeromq-4
    --
    Wolodja Wentland <babilen@gmail.com>

    4096R/CAF14EFC
    081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC

    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Renoir B. at Nov 24, 2014 at 2:13 pm
    .
    On Nov 24, 2014 5:23 AM, "Wolodja Wentland" wrote:
    On Sun, Nov 23, 2014 at 13:23 -0800, Renoir Boulanger wrote:
    Hi all!

    It seems that salt-master breaks when I run a clean install and run
    `pkg.upgrade`.
    Distribution: Ubuntu 14.04.1 LTS

    Packages:

    - libzmq3:
    new: 4.0.5-1chl1~trusty1
    old: 4.0.4+dfsg-2

    - python-zmq:
    new: 14.1.1-1chl1~trusty1
    old: 14.0.1-1build2
    The version you upgraded to is, I assume,
    the one that comes from the
    third-party PPA mentioned in [0] for
    Ubuntu 12.04.
    Fair enough. I didn't try without the PPA.

    [0] http://
    <http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html#zeromq-4>
    docs.saltstack.com
    <http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html#zeromq-4>
    /
    <http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html#zeromq-4>
    en
    <http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html#zeromq-4>
    /latest/topics/installation/
    <http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html#zeromq-4>
    ubuntu.html#zeromq-4
    <http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html#zeromq-4>
    You shouldn't require
    that as you are using 14.04 and I would
    also strongly recommend to, if possible,
    not use any PPAs at all as they contain
    packages of unknown quality. The
    packages in chris-lea/zeromq are known
    to be broken and the recommendation
    might have to be reviewed.
    I agree with you. I also prefer using mainstream and tested packages, it's
    easier to maintain.

    Thanks.

    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Renoir Boulanger at Nov 24, 2014 at 4:09 pm
    Hi all,

    I wanted to confirm; installing on a new Ubuntu 14.04 without ppa, nor
    specifying package version works.

    As in my culture we would say: «j’t’ais dans é patates!» (I was in the
    potatoes).

    Thanks for your time!

    Regards Montréal, Qc.

    Renoir
    ~
    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupsalt-users @
postedNov 23, '14 at 9:23p
activeNov 24, '14 at 4:09p
posts9
users4

People

Translate

site design / logo © 2022 Grokbase