Error installing in MAcOS

Hello,I`m trying to install in my MacOS, I install bench without problem, but when I try to install frappe, I got these error:

bench init frappe-bench && cd frappe-bench
Already using interpreter /usr/local/opt/python/bin/python2.7
Cloning into 'frappe'...
remote: Counting objects: 65669, done.
remote: Compressing objects: 100% (366/366), done.
remote: Total 65669 (delta 181), reused 0 (delta 0)
Receiving objects: 100% (65669/65669), 28.35 MiB | 296.00 KiB/s, done.
Resolving deltas: 100% (46696/46696), done.
Checking connectivity... done.
installing frappe
Compiling /Users/fellipeh/Developer/python/frappe/frappe-bench/env/build/gunicorn/gunicorn/workers/_gaiohttp.py ...
  File "/Users/fellipeh/Developer/python/frappe/frappe-bench/env/build/gunicorn/gunicorn/workers/_gaiohttp.py", line 68
    yield from self.wsgi.close()
             ^
SyntaxError: invalid syntax

Wrote ./assets/js/frappe-web.min.js - 90k
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/css/frappe.css - 222k
Wrote ./assets/css/frappe-web.css - 163k
Wrote ./assets/js/editor.min.js - 27k
Wrote ./assets/js/frappe.min.js - 609k
Wrote ./assets/js/slickgrid.min.js - 105k
Wrote ./assets/js/canvasResize.min.js - 22k
crontab: no crontab for fellipeh
Bench frappe-bench initialized

When I try to start, I got these error:

$ bench start
/Users/fellipeh/.rbenv/versions/2.1.5/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'foreman' (>= 0) among 65 total gem(s) (Gem::LoadError)
	from /Users/fellipeh/.rbenv/versions/2.1.5/lib/ruby/2.1.0/rubygems/dependency.rb:309:in `to_spec'
	from /Users/fellipeh/.rbenv/versions/2.1.5/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
	from /usr/local/bin/foreman:22:in `<main>'

hi man,

have you installed home-brew?
You need the package manager to be able to use the install-scripts provided by ERPNext.

Best,
Dan

Hey!

Yes, I install all requirements (MariaDB, Redis, Memcached) with HomeBrew.

But I install Frappe with Bench, according with this site: GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps on manual install

Cheers!

for install time error check this out. in short error can be ignored

for bench start error install foreman gem and try running bench start again

gem install foreman

You can ignore the syntax error.
You might have a broken install of foreman (bench prefers foreman over honcho). bench start should start working after you remove foreman.

Thanks Man!!!

Works fine now, I can now start bench…

But Redis inform some error:

 Cannot connect to redis://localhost:6379//: Error 61 connecting to localhost:6379. Connection refused..

I install Redis with HomeBrew, any ideia how to fix that?

Cheers!

Can you check if redis is running or not?

I found the problem, when I install using homebrew they don’t create a plist file correctly, I made manual changes and works fine now!