Just noticed this when nuking my DB and running prepare-dev.py.
I was seeing:
Using Djblets media from /media/Projects/djblets/djblets/media
Traceback (most recent call last):
File "./contrib/internal/prepare-dev.py", line 145, in <module>
File "./contrib/internal/prepare-dev.py", line 132, in main
File "./contrib/internal/prepare-dev.py", line 76, in install_media
site.link_pkg_dir("djblets", "media", os.path.join(media_path, "djblets"))
File "/media/Projects/reviewboard/reviewboard/cmdline/rbsite.py", line 506, in link_pkg_dir
OSError: [Errno 2] No such file or directory
Apparently, link_pkg_dir was attempting to create the media folder at htdocs/media/djblets instead of reviewboard/htdocs/media/djblets.
Just tested locally. prepare-dev.py runs correctly and created my development environment successfully.