Hi guys, Just started working on the frappe
(frappe_bench) ➜ frappe_bench bench init .
ERROR: Bench instance already exists at .
(frappe_bench) ➜ frappe_bench bench init frappe-bench
Setting Up Environment
$ python3 -m venv env
$ /Users/victor/Documents/dev/frappe_bench/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /Users/victor/Documents/dev/frappe_bench/frappe-bench/env/bin/python -m pip install --quiet wheel
Getting frappe
$ git clone https://github.com/frappe/frappe.git --depth 1 --origin upstream
Cloning into 'frappe'...
remote: Enumerating objects: 3142, done.
remote: Counting objects: 100% (3142/3142), done.
remote: Compressing objects: 100% (2819/2819), done.
remote: Total 3142 (delta 429), reused 1288 (delta 227), pack-reused 0
Receiving objects: 100% (3142/3142), 15.90 MiB | 10.50 MiB/s, done.
Resolving deltas: 100% (429/429), done.
Installing frappe
$ /Users/victor/Documents/dev/frappe_bench/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /Users/victor/Documents/dev/frappe_bench/frappe-bench/apps/frappe
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/jd/9pmzdgzj4cx0m4d2r0qhjknh0000gn/T/pip-install-0q3si04x/cairocffi_370ac34f6171431ebe0cc3596a9e2d52/setup.py", line 10, in <module>
setup(
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/__init__.py", line 86, in setup
_install_setup_requires(attrs)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/dist.py", line 875, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/pkg_resources/__init__.py", line 789, in resolve
dist = best[req.key] = env.best_match(
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1075, in best_match
return self.obtain(req, installer)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1087, in obtain
return installer(requirement)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/dist.py", line 945, in fetch_build_egg
return fetch_build_egg(self, req)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/installer.py", line 87, in fetch_build_egg
wheel.install_as_egg(dist_location)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/wheel.py", line 96, in install_as_egg
self._install_as_egg(destination_eggdir, zf)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/wheel.py", line 104, in _install_as_egg
self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/wheel.py", line 148, in _convert_metadata
os.rename(dist_info, egg_info)
OSError: [Errno 66] Directory not empty: '/private/var/folders/jd/9pmzdgzj4cx0m4d2r0qhjknh0000gn/T/pip-install-0q3si04x/cairocffi_370ac34f6171431ebe0cc3596a9e2d52/.eggs/cffi-1.15.1-py3.10-macosx-11.1-arm64.egg/cffi-1.15.1.dist-info' -> '/private/var/folders/jd/9pmzdgzj4cx0m4d2r0qhjknh0000gn/T/pip-install-0q3si04x/cairocffi_370ac34f6171431ebe0cc3596a9e2d52/.eggs/cffi-1.15.1-py3.10-macosx-11.1-arm64.egg/EGG-INFO'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cairocffi
error: subprocess-exited-with-error
× python setup.py clean did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/jd/9pmzdgzj4cx0m4d2r0qhjknh0000gn/T/pip-install-0q3si04x/cairocffi_370ac34f6171431ebe0cc3596a9e2d52/setup.py", line 10, in <module>
setup(
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/__init__.py", line 86, in setup
_install_setup_requires(attrs)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/dist.py", line 875, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/pkg_resources/__init__.py", line 789, in resolve
dist = best[req.key] = env.best_match(
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1075, in best_match
return self.obtain(req, installer)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1087, in obtain
return installer(requirement)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/dist.py", line 945, in fetch_build_egg
return fetch_build_egg(self, req)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/installer.py", line 87, in fetch_build_egg
wheel.install_as_egg(dist_location)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/wheel.py", line 96, in install_as_egg
self._install_as_egg(destination_eggdir, zf)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/wheel.py", line 104, in _install_as_egg
self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
File "/Users/victor/Documents/dev/frappe_bench/frappe-bench/env/lib/python3.10/site-packages/setuptools/wheel.py", line 148, in _convert_metadata
os.rename(dist_info, egg_info)
OSError: [Errno 66] Directory not empty: '/private/var/folders/jd/9pmzdgzj4cx0m4d2r0qhjknh0000gn/T/pip-install-0q3si04x/cairocffi_370ac34f6171431ebe0cc3596a9e2d52/.eggs/cffi-1.15.1-py3.10-macosx-11.1-arm64.egg/cffi-1.15.1.dist-info' -> '/private/var/folders/jd/9pmzdgzj4cx0m4d2r0qhjknh0000gn/T/pip-install-0q3si04x/cairocffi_370ac34f6171431ebe0cc3596a9e2d52/.eggs/cffi-1.15.1-py3.10-macosx-11.1-arm64.egg/EGG-INFO'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for cairocffi
DEPRECATION: cairocffi was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. pip 23.1 will enforce this behaviour change. A possible replacement is to fix the wheel build issue reported above. Discussion can be found at https://github.com/pypa/pip/issues/8368
$ yarn install
Traceback (most recent call last):
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/site-packages/bench/commands/make.py", line 68, in init
init(
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/site-packages/bench/utils/render.py", line 105, in wrapper_fn
return fn(*args, **kwargs)
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/site-packages/bench/utils/system.py", line 79, in init
get_app(
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/site-packages/bench/app.py", line 444, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/site-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/site-packages/bench/app.py", line 242, in install
install_app(
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/site-packages/bench/app.py", line 581, in install_app
bench.run("yarn install", cwd=app_path)
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/site-packages/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/site-packages/bench/utils/__init__.py", line 154, in exec_cmd
return_code = subprocess.call(cmd, cwd=cwd, universal_newlines=True, env=env)
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Users/victor/miniconda3/envs/frappe_bench/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'yarn'
Tried everything from
brew install Cmake
And serach for couple days