Hey everyone.
I come here very frustrated.
It took a very long time to get ERPNext working, and now, basically out of the blue it just stopped working.
After hours (days) reading the forum, tried everything, and decided to do a clean install, so I deleted every file and folder I could find that was related to frappé/bench.
After the install, I got the following errors:
$ bench init frappe-bench
INFO:bench.utils:virtualenv -q env -p /usr/local/opt/python/bin/python2.7
Already using interpreter /usr/local/opt/python/bin/python2.7
INFO:bench.utils:./env/bin/pip -q install --upgrade pip
INFO:bench.utils:./env/bin/pip -q install wheel
INFO:bench.utils:./env/bin/pip -q install six
INFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit
INFO:bench.app:getting app frappe
INFO:bench.utils:git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --origin upstream
Cloning into ‘frappe’…
remote: Counting objects: 145430, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 145430 (delta 0), reused 1 (delta 0), pack-reused 145426
Receiving objects: 100% (145430/145430), 119.49 MiB | 4.37 MiB/s, done.
Resolving deltas: 100% (110774/110774), done.
(‘installing’, u’frappe’)
INFO:bench.app:installing frappe
INFO:bench.utils:frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe --no-cache-dir
Updating node libraries…
INFO:bench.utils:npm install
fsevents@1.1.3 install /Users/Carvalho/frappe-bench/node_modules/fsevents
node install
[fsevents] Success: “/Users/Carvalho/frappe-bench/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node” already installed
Pass --update-binary to reinstall or --build-from-source to recompile
uws@0.14.5 install /Users/Carvalho/frappe-bench/node_modules/uws
node-gyp rebuild > build_log.txt 2>&1 || exit 0
chromedriver@2.33.2 install /Users/Carvalho/frappe-bench/node_modules/chromedriver
node install.js
Downloading https://chromedriver.storage.googleapis.com/2.33/chromedriver_mac64.zip
Saving to /var/folders/5m/hjzx82j152n9bnnrn91dlt3h0000gn/T/chromedriver/chromedriver_mac64.zip
Received 782K…
Received 1568K…
Received 2352K…
Received 3136K…
Received 3920K…
Received 4704K…
Received 5299K total.
Extracting zip contents
Copying to target path /Users/Carvalho/frappe-bench/node_modules/chromedriver/lib/chromedriver
Fixing file permissions
Done. ChromeDriver binary available at /Users/Carvalho/frappe-bench/node_modules/chromedriver/lib/chromedriver/chromedriver
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN frappe@ No description
added 572 packages in 96.216s
Wrote css/frappe-web.css - 65.11 KB
Wrote js/frappe-web.min.js - 132.05 KB
Wrote js/control.min.js - 72.03 KB
Wrote js/dialog.min.js - 116.12 KB
Wrote css/desk.min.css - 309.31 KB
Wrote css/frappe-rtl.css - 32.49 KB
Wrote js/libs.min.js - 1.13 MB
Wrote js/desk.min.js - 459.48 KB
Wrote css/module.min.css - 2.08 KB
Wrote css/form.min.css - 4.47 KB
Wrote js/form.min.js - 195.68 KB
Wrote css/list.min.css - 15.04 KB
Wrote js/list.min.js - 149.73 KB
Wrote css/report.min.css - 7.89 KB
Wrote js/report.min.js - 260.01 KB
Wrote js/web_form.min.js - 247.55 KB
Wrote css/web_form.css - 24.42 KB
Wrote js/print_format_v3.min.js - 23.39 KB
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench==4.1.0’, ‘console_scripts’, ‘bench’)()
File “/usr/local/lib/python2.7/site-packages/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/bench/commands/make.py”, line 21, in init
verbose=verbose, clone_from=clone_from, skip_bench_mkdir=skip_bench_mkdir, skip_redis_config_generation=skip_redis_config_generation)
File “/usr/local/lib/python2.7/site-packages/bench/utils.py”, line 81, in init
setup_procfile(path)
File “/usr/local/lib/python2.7/site-packages/bench/config/procfile.py”, line 13, in setup_procfile
procfile = bench.env.get_template(‘Procfile’).render(
File “/usr/local/lib/python2.7/site-packages/jinja2/environment.py”, line 830, in get_template
return self._load_template(name, self.make_globals(globals))
File “/usr/local/lib/python2.7/site-packages/jinja2/environment.py”, line 804, in _load_template
template = self.loader.load(self, name, globals)
File “/usr/local/lib/python2.7/site-packages/jinja2/loaders.py”, line 113, in load
source, filename, uptodate = self.get_source(environment, name)
File “/usr/local/lib/python2.7/site-packages/jinja2/loaders.py”, line 235, in get_source
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: Procfile
And when trying to start the bench to create my sites:
$ bench start
[8013] [ERROR] Procfile does not exist or is not a file
I tried downloading the procfile from the GitHub repo, tried reinstalling jinja, node.
Tried reinstalling python. Deleted every possible connection from my old folder…
(Yes, I am running it from my frappe-bench folder.)
I really don’t understand what am I doing wrong.
Can anybody shed some light on this issue?
Cheers