Not a directory: '/usr/local/frappe/frappe-bench/env/lib/'

Dear All,
Using FreeBSD and csh, I have installed my new Frappe bench (for ERPNext) inside a FreeBSD jail as follows. First, as root and using virtualenv, because I do not want pip to mess up my system install:

cd /usr/local
virtualenv --system-site-packages frappe
cd /usr/local/frappe
source bin/activate.csh
git clone bench-repo
pip install -e bench-repo
chown -R frappe:wheel /usr/local/frappe
chmod -R o-rwx /usr/local/frappe
rm -rf /root/.npm
rm -rf /root/.cache/pip

Then, as user frappe:

su - frappe
source bin/activate.csh
bench init frappe-bench
rm -rf ~/.npm
rm -rf ~/.cache/pip

I had the following issue with or without ERPNext on top, so allow me to give you the error right from the bench. I issue as user frappe:

bench serve

And I get:

 * Running on (Press CTRL+C to quit)
 * Restarting with polling reloader
 * Debugger is active!
 * Debugger pin code: 286-850-957
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/", line 801, in __bootstrap_inner
  File "/usr/local/frappe/frappe-bench/env/lib/python2.7/site-packages/watchdog/observers/", line 182, in run
  File "/usr/local/frappe/frappe-bench/env/lib/python2.7/site-packages/watchdog/observers/", line 78, in queue_events
    self._snapshot = self._take_snapshot()
  File "/usr/local/frappe/frappe-bench/env/lib/python2.7/site-packages/watchdog/observers/", line 74, in <lambda>,, stat=stat, listdir=listdir)
  File "/usr/local/frappe/frappe-bench/env/lib/python2.7/site-packages/watchdog/utils/", line 226, in __init__
    for p, st in walk(path):
  File "/usr/local/frappe/frappe-bench/env/lib/python2.7/site-packages/watchdog/utils/", line 211, in walk
    paths = [os.path.join(root, name) for name in listdir(root)]
OSError: [Errno 20] Not a directory: '/usr/local/frappe/frappe-bench/env/lib/'

This is pretty weird, because python has been installed, and why should bench look for a .zip file?
Any thoughts?
Thanks a lot,


Did you find a solution? I got the same error.