Multi Currency Payment - POS View - Solved

This is not the right command
Try

bench get-app GitHub - f-9t9it/pos_bahrain: POS enhancement for ERPNext

now it’s giving me another error

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/make.py”, line 41, in get_app
get_app(git_url, branch=branch)
File “/home/frappe/.bench/bench/app.py”, line 136, in get_app
install_app(app=app_name, bench_path=bench_path, verbose=verbose)
File “/home/frappe/.bench/bench/app.py”, line 172, in install_app
find_links=find_links))
File “/home/frappe/.bench/bench/utils.py”, line 161, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q -e ./apps/pos_bahrain

Coz you already have pos_bahrain folder inside app directory.

Delete the pos_bahrain directory and try that command again from frappe-bench directory

I just tried to install it on a fresh server and it worked fine without any error.

it worked , though the error wasn’t because i had the folder in the app directory but because i was installing it as sudo , it couldn’t bypass a command, so i just switched to root instantly by using sudo -s and it was able to fetch the app , and now just needed to do bench install-app pos_bahrain and it worked it appears now in erpnext .

Hello,

Thank you so much for this information.

Hello,

We are having a hard time installing version 11 but we did install the version 12. Can I ask for help how to install the version 11 please.

Thank you

Hello Dear,

Everything is mentioned on the bench repo.
Link > Bench - Easy Install

Use this command

python install.py --production --version 11 --python python2.7 --user [frappe-user]

use your login username instead of [frappe-user]

Hello,

we have error during installation,

root@erpnext11:~# wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
–2019-08-29 01:13:37-- https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.8.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.8.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 13353 (13K) [text/plain]
Saving to: ‘install.py.3’

install.py.3 100%[========================================================================>] 13.04K --.-KB/s in 0s

2019-08-29 01:13:37 (92.9 MB/s) - ‘install.py.3’ saved [13353/13353]

root@erpnext11:~# python install.py --production --version 11 --python python2.7 --user frappe
Get:1 Index of /ubuntu/ xenial InRelease [247 kB]
Hit:2 Index of /ubuntu/ xenial-updates InRelease
Hit:3 Index of /ubuntu/ xenial-backports InRelease
Get:4 Index of /ubuntu xenial-security InRelease [109 kB]
Fetched 356 kB in 5s (68.0 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libssl1.0-dev
E: Couldn’t find any package by glob ‘libssl1.0-dev’
E: Couldn’t find any package by regex ‘libssl1.0-dev’
Traceback (most recent call last):
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 21, in install_bench
‘sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel’
File “install.py”, line 226, in run_os_command
returncode = subprocess.check_call(command, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0-dev’ returned non-zero exit status 100
root@erpnext11:~#

Looks like you missed the previous command to run.

Update os

sudo apt-get update

You may have to install Python 2.7 (eg on Ubuntu 16.04+) by running

apt-get install python-minimal

You may also have to install build-essential and

python-setuptools by running apt-get install build-essential python-setuptools

After these you try the other command also make frappe user and grant sudo access to frappe

Hello,

we follow the steps but same error. Please see below

Steps

  1. apt-get update
  2. apt-get install python-minimal
  3. apt-get install build-essential python-setuptools
  4. wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
  5. sudo python install.py --production --version 11 --python python2.7 --user frappe

root@erpnext11:~# apt-get update
Get:1 Index of /ubuntu/ xenial InRelease [247 kB]
Hit:2 Index of /ubuntu/ xenial-updates InRelease
Hit:3 Index of /ubuntu/ xenial-backports InRelease
Hit:4 Index of /ubuntu xenial-security InRelease
Fetched 247 kB in 0s (627 kB/s)
Reading package lists… Done
root@erpnext11:~# apt-get install python-minimal
Reading package lists… Done
Building dependency tree
Reading state information… Done
python-minimal is already the newest version (2.7.12-1~16.04).
The following package was automatically installed and is no longer required:
grub-pc-bin
Use ‘apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
root@erpnext11:~# apt-get install build-essential python-setuptools
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version (12.1ubuntu2).
python-setuptools is already the newest version (20.7.0-1).
The following package was automatically installed and is no longer required:
grub-pc-bin
Use ‘apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
root@erpnext11:~# wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
–2019-08-29 07:20:34-- https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.8.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.8.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 13353 (13K) [text/plain]
Saving to: ‘install.py.5’

install.py.5 100%[===================>] 13.04K --.-KB/s in 0s

2019-08-29 07:20:34 (29.6 MB/s) - ‘install.py.5’ saved [13353/13353]

root@erpnext11:~# sudo python install.py --production --version 11 --python python2.7 --user frappe
Get:1 Index of /ubuntu/ xenial InRelease [247 kB]
Hit:2 Index of /ubuntu/ xenial-updates InRelease
Hit:3 Index of /ubuntu/ xenial-backports InRelease
Hit:4 Index of /ubuntu xenial-security InRelease
Fetched 247 kB in 0s (640 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libssl1.0-dev
E: Couldn’t find any package by glob ‘libssl1.0-dev’
E: Couldn’t find any package by regex ‘libssl1.0-dev’
Traceback (most recent call last):
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 21, in install_bench
‘sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel’
File “install.py”, line 226, in run_os_command
returncode = subprocess.check_call(command, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0-dev’ returned non-zero exit status 100

Try this command as recommended by the error

also this one

Hello,

Error Still,

root@erpnext11:~# sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel
sudo: yum: command not found
root@erpnext11:~# sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libssl1.0-dev
E: Couldn’t find any package by glob ‘libssl1.0-dev’
E: Couldn’t find any package by regex ‘libssl1.0-dev’
root@erpnext11:~#

Just use libssl1.0 and try.
Or skip libssl for now and try to install erpnext using the production command.

Check this

still have the same error encountered.

I think the package name has changed so first you need to find the name of the libssl package and then replace it in the script and then run the script.

This is little bit of technical but a basic for user with Linux knowledge.

I already replace the following:

  1. ‘sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl-dev’
  2. - libssl-dev
    

Then I have no idea what is causing this problem maybe you need to wait for the frappe team to look into this.
There are some people who resolved by using the link shared by clarkej above.

You should follow that thread and respond there as that is the right thread and not this one.