jookies / jasmin

Jasmin - Open source SMS gateway
http://jasminsms.com
Other
1.04k stars 556 forks source link

CentOS install process not working (ImportError: No module named conch) #278

Closed chrisleavoy closed 9 years ago

chrisleavoy commented 9 years ago

Followed the documentation, using the official CentOS 7 AMI. Packages install cleanly but service fails to start with missing modules:

[root@ip-10-2-30-253 init.d]# service jasmind start
Starting jasmind system service jasmind                    [  OK  ]
[root@ip-10-2-30-253 init.d]# Traceback (most recent call last):
  File "/usr/bin/jasmind", line 22, in <module>
    from jasmin.protocols.cli.factory import JCliFactory
  File "/usr/lib/python2.7/site-packages/jasmin/protocols/cli/factory.py", line 6, in <module>
    from jasmin.protocols.cli.jcli import JCliProtocol
  File "/usr/lib/python2.7/site-packages/jasmin/protocols/cli/jcli.py", line 6, in <module>
    from jasmin.protocols.cli.protocol import CmdProtocol
  File "/usr/lib/python2.7/site-packages/jasmin/protocols/cli/protocol.py", line 3, in <module>
    from twisted.conch import recvline
ImportError: No module named conch

yum output was:

Installed:
  python-jasmin.noarch 0:0.6.39-1.el7.centos                                                                                                                                                                                          

Dependency Installed:
  SOAPpy.noarch 0:0.11.6-17.el7              at.x86_64 0:3.1.13-17.el7_0.1           avahi-libs.x86_64 0:0.6.31-14.el7            bc.x86_64 0:1.06.95-13.el7                              cups-client.x86_64 1:1.6.3-17.el7_1.1      
  cups-libs.x86_64 1:1.6.3-17.el7_1.1        ed.x86_64 0:1.9-4.el7                   erlang-asn1.x86_64 0:R16B-03.10.el7          erlang-compiler.x86_64 0:R16B-03.10.el7                 erlang-crypto.x86_64 0:R16B-03.10.el7      
  erlang-erts.x86_64 0:R16B-03.10.el7        erlang-hipe.x86_64 0:R16B-03.10.el7     erlang-inets.x86_64 0:R16B-03.10.el7         erlang-kernel.x86_64 0:R16B-03.10.el7                   erlang-mnesia.x86_64 0:R16B-03.10.el7      
  erlang-os_mon.x86_64 0:R16B-03.10.el7      erlang-otp_mibs.x86_64 0:R16B-03.10.el7 erlang-public_key.x86_64 0:R16B-03.10.el7    erlang-runtime_tools.x86_64 0:R16B-03.10.el7            erlang-sasl.x86_64 0:R16B-03.10.el7        
  erlang-sd_notify.x86_64 0:0.1-1.el7        erlang-snmp.x86_64 0:R16B-03.10.el7     erlang-ssl.x86_64 0:R16B-03.10.el7           erlang-stdlib.x86_64 0:R16B-03.10.el7                   erlang-syntax_tools.x86_64 0:R16B-03.10.el7
  erlang-tools.x86_64 0:R16B-03.10.el7       erlang-xmerl.x86_64 0:R16B-03.10.el7    jemalloc.x86_64 0:3.6.0-1.el7                lksctp-tools.x86_64 0:1.0.13-3.el7                      m2crypto.x86_64 0:0.21.1-15.el7            
  m4.x86_64 0:1.4.16-9.el7                   mailx.x86_64 0:12.5-12.el7_0            patch.x86_64 0:2.7.1-8.el7                   psmisc.x86_64 0:22.20-8.el7                             pyOpenSSL.x86_64 0:0.13.1-3.el7            
  pyserial.noarch 0:2.6-5.el7                python-dateutil.noarch 0:1.5-7.el7      python-fpconst.noarch 0:0.7.3-12.el7         python-twisted-core.x86_64 0:12.2.0-4.el7               python-twisted-web.x86_64 0:12.1.0-4.el7   
  python-zope-interface.x86_64 0:4.0.5-4.el7 rabbitmq-server.noarch 0:3.3.5-4.el7    redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 redis.x86_64 0:2.8.19-2.el7                
  spax.x86_64 0:1.5.2-11.el7                 time.x86_64 0:1.7-45.el7               
farirat commented 9 years ago

This is a known issue with Centos package, here's a workaround:

yum install python-pip
pip install twisted

Then you can start Jasmin

chrisleavoy commented 9 years ago

Thanks for the quick response, that worked. Breadcrumbs:

sudo yum install -y make  python-pip python-devel libffi-devel openssl-devel
chown jasmin /var/log/jasmin /var/run/jasmin /etc/jasmin/store
farirat commented 9 years ago

you're the man ! thx