Manual install: bench command crash!

Hi,

I try to unstall frappe, but till so far unsuccesful. I tried the easy install for both development and production, but those give errors (see my other posts). And the manual install too. I am getting a bit nervous, thinking that it is almost impossible to install erpnext yourself.

when I type this command, it crashes:

frappe@PAVILION:~$ bench init frappe-bench

Now I am trying manual install,

frappe@PAVILION:~$ bench init frappe-bench
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 444, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: MarkupSafe>=0.23
frappe@PAVILION:~$

any ideas, suggestions?

Hi @pee ,

please check the command you have run.use the following command:
“bench init frappe-bench && cd frappe-bench”
try to Install pre-requisites,first if you are use fresh system
Python 2.7
MariaDB
Redis
WKHTMLtoPDF with patched QT (required for pdf generation)
please check for mannual installation:
https://frappe.github.io/frappe/user/en/bench/guides/manual-setup.html

Hi @sagar, Of course I installed all the prerequisites. I split up the dual command "bench init frappe-bench && cd frappe-bench".
It is the same as the two single commands:

$ bench init frappe-bench
$ cd frappe-bench

I did that for better troubleshooting
Anyway that is not the source of the problem.

The point is that the bench command crashes.
Any ideas what can have gone wrong

@pee

it is a single command

Thanks

Does not look like Frappe issue, try upgrading pip and also see if google can help.

or install missing module

pip install markupsafe
or
sudo pip install markupsafe