jookies / jasmin

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

Pypi getting some issues(/usr/local/bin/jasmind.py not found) #999

Open primeKal opened 3 years ago

primeKal commented 3 years ago

I have a debian buster os and wanted to install through the pypi model and followed the steps created the user and owned files to then but when i start systemctl, it gives error no file named jasmind.py. i think pip install jasmin did not install the py file at /usr/local/bin which the script jasmind.service points too.. what can i do? When i manually copy and paste the jasmind.py folder from /opt/bitnami/python/bin/jasmind.py, it gives an error like the one below

Aug 19 13:24:37 debian jasmind[16181]: return opener.open(url, data, timeout) Aug 19 13:24:37 debian jasmind[16181]: File "/opt/bitnami/python/lib/python3.7/urllib/request.py", line 510, in open Aug 19 13:24:37 debian jasmind[16181]: req = Request(fullurl, data) Aug 19 13:24:37 debian jasmind[16181]: File "/opt/bitnami/python/lib/python3.7/urllib/request.py", line 328, in init Aug 19 13:24:37 debian jasmind[16181]: self.full_url = url Aug 19 13:24:37 debian jasmind[16181]: File "/opt/bitnami/python/lib/python3.7/urllib/request.py", line 354, in full_url Aug 19 13:24:37 debian jasmind[16181]: self._parse() Aug 19 13:24:37 debian jasmind[16181]: File "/opt/bitnami/python/lib/python3.7/urllib/request.py", line 383, in _parse Aug 19 13:24:37 debian jasmind[16181]: raise ValueError("unknown url type: %r" % self.full_url) Aug 19 13:24:37 debian jasmind[16181]: builtins.ValueError: unknown url type: '//etc/jasmin//resource//amqp0-9-1.xml'

gekko-ch commented 2 years ago

Hi ever found a soultion, facing the same issue thx

UbuntuEvangelist commented 2 years ago

Try to use Ubuntu 20.04 LTS 64 bit Linux. Install python 3.8.x version and set default python version. Install pip pip 20.0.2 version and set default python version. Install Python: https://gist.github.com/UbuntuEvangelist/fe805176e61d927d11b139166bdbfd6d After install python 3.8.x version follow:

apt install python3-pip cd nano ~/.bashrc

Add below to lines into the bottom of ~/.bashrc file

alias python=python3 alias pip=pip3

Save & Exit ctrl+s and ctrl+x

alias python=python3 alias pip=pip3 source ~/.bashrc sudo apt update sudo apt upgrade -y python --version pip --version pip install txredisapi apt-get install python3-venv apt install redis rabbitmq-server -y pip install gunicorn pip install pip apt install pipx pipx install twisted --force pipx ensurepath

curl -s https://packagecloud.io/install/repositories/jookies/jasmin-sms-gateway/script.deb.sh | sudo bash apt-get install jasmin-sms-gateway apt update -y && apt upgrade -y

OR

curl -s https://setup.jasminsms.com/deb | sudo bash apt install jasmin-sms-gateway apt update -y && apt upgrade -y

systemctl enable jasmind systemctl start jasmind systemctl status jasmind

farirat commented 2 years ago

@primeKal what os/version you have ?

github-actions[bot] commented 8 months ago

Stale issue detected, remove stale label or comment or this will be closed soon.

avremy commented 7 months ago

Still having this issue on Debian, anyone ever found a solution ?